@@ -4092,7 +4092,7 @@ int f_sys_getrlimit_x(struct event_filler_arguments *args) {
40924092 int64_t cur ;
40934093 int64_t max ;
40944094
4095- /* Parameter 1: res */
4095+ /* Parameter 1: res (type: PT_ERRNO) */
40964096 retval = (int64_t )(long )syscall_get_return_value (current , args -> regs );
40974097 res = val_to_ring (args , retval , 0 , false, 0 );
40984098 CHECK_RES (res );
@@ -4130,11 +4130,11 @@ int f_sys_getrlimit_x(struct event_filler_arguments *args) {
41304130 max = -1 ;
41314131 }
41324132
4133- /* Parameter 2: cur */
4133+ /* Parameter 2: cur (type: PT_INT64) */
41344134 res = val_to_ring (args , cur , 0 , false, 0 );
41354135 CHECK_RES (res );
41364136
4137- /* Parameter 3: max */
4137+ /* Parameter 3: max (type: PT_INT64) */
41384138 res = val_to_ring (args , max , 0 , false, 0 );
41394139 CHECK_RES (res );
41404140
@@ -4155,16 +4155,11 @@ int f_sys_setrlrimit_x(struct event_filler_arguments *args)
41554155 int64_t cur ;
41564156 int64_t max ;
41574157
4158- /* Parameter 1: res */
4158+ /* Parameter 1: res (type: PT_ERRNO) */
41594159 retval = (int64_t )(long )syscall_get_return_value (current , args -> regs );
41604160 res = val_to_ring (args , retval , 0 , false, 0 );
41614161 CHECK_RES (res );
41624162
4163- /* Parameter 2: resource */
4164- syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4165- res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4166- CHECK_RES (res );
4167-
41684163 /*
41694164 * Copy the user structure and extract cur and max
41704165 */
@@ -4191,14 +4186,19 @@ int f_sys_setrlrimit_x(struct event_filler_arguments *args)
41914186 max = -1 ;
41924187 }
41934188
4194- /* Parameter 3: cur */
4189+ /* Parameter 2: (type: PT_INT64) */
41954190 res = val_to_ring (args , cur , 0 , false, 0 );
41964191 CHECK_RES (res );
41974192
4198- /* Parameter 4 : max */
4193+ /* Parameter 3 : max (type: PT_INT64) */
41994194 res = val_to_ring (args , max , 0 , false, 0 );
42004195 CHECK_RES (res );
42014196
4197+ /* Parameter 4: resource (type: PT_ENUMFLAGS8) */
4198+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4199+ res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4200+ CHECK_RES (res );
4201+
42024202 return add_sentinel (args );
42034203}
42044204
@@ -4237,24 +4237,11 @@ int f_sys_prlimit_x(struct event_filler_arguments *args)
42374237 int64_t oldmax ;
42384238 pid_t pid = 0 ;
42394239
4240- /*
4241- * res
4242- */
4240+ /* Parameter 1: res (type: PT_ERRNO) */
42434241 retval = (int64_t )(long )syscall_get_return_value (current , args -> regs );
42444242 res = val_to_ring (args , retval , 0 , false, 0 );
42454243 CHECK_RES (res );
42464244
4247- /* Parameter 1: pid */
4248- syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4249- pid = (s32 )val ;
4250- res = val_to_ring (args , (s64 )pid , 0 , false, 0 );
4251- CHECK_RES (res );
4252-
4253- /* Parameter 2: resource (type: PT_ENUMFLAGS8) */
4254- syscall_get_arguments_deprecated (args , 1 , 1 , & val );
4255- res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4256- CHECK_RES (res );
4257-
42584245 /*
42594246 * Copy the user structure and extract cur and max
42604247 */
@@ -4308,22 +4295,35 @@ int f_sys_prlimit_x(struct event_filler_arguments *args)
43084295 }
43094296 }
43104297#endif
4311- /* Parameter 3 : newcur (PT_INT64)*/
4298+ /* Parameter 2 : newcur (type: PT_INT64) */
43124299 res = val_to_ring (args , newcur , 0 , false, 0 );
43134300 CHECK_RES (res );
4301+ CHECK_RES (res );
43144302
4315- /* Parameter 4 : newmax (PT_INT64)*/
4303+ /* Parameter 3 : newmax (type: PT_INT64) */
43164304 res = val_to_ring (args , newmax , 0 , false, 0 );
43174305 CHECK_RES (res );
4306+ CHECK_RES (res );
43184307
4319- /* Parameter 5 : oldcur (PT_INT64)*/
4308+ /* Parameter 4 : oldcur (type: PT_INT64) */
43204309 res = val_to_ring (args , oldcur , 0 , false, 0 );
43214310 CHECK_RES (res );
43224311
4323- /* Parameter 6 : oldmax (PT_INT64)*/
4312+ /* Parameter 5 : oldmax (type: PT_INT64) */
43244313 res = val_to_ring (args , oldmax , 0 , false, 0 );
43254314 CHECK_RES (res );
43264315
4316+ /* Parameter 6: pid (type: PT_INT64) */
4317+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4318+ pid = (s32 )val ;
4319+ res = val_to_ring (args , (s64 )pid , 0 , false, 0 );
4320+ CHECK_RES (res );
4321+
4322+ /* Parameter 7: resource (type: PT_ENUMFLAGS8) */
4323+ syscall_get_arguments_deprecated (args , 1 , 1 , & val );
4324+ res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4325+ CHECK_RES (res );
4326+
43274327 return add_sentinel (args );
43284328}
43294329
0 commit comments