@@ -4345,16 +4345,11 @@ int f_sys_setrlrimit_x(struct event_filler_arguments *args)
4345
4345
int64_t cur ;
4346
4346
int64_t max ;
4347
4347
4348
- /* Parameter 1: res */
4348
+ /* Parameter 1: res (type: PT_ERRNO) */
4349
4349
retval = (int64_t )(long )syscall_get_return_value (current , args -> regs );
4350
4350
res = val_to_ring (args , retval , 0 , false, 0 );
4351
4351
CHECK_RES (res );
4352
4352
4353
- /* Parameter 2: resource */
4354
- syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4355
- res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4356
- CHECK_RES (res );
4357
-
4358
4353
/*
4359
4354
* Copy the user structure and extract cur and max
4360
4355
*/
@@ -4381,14 +4376,19 @@ int f_sys_setrlrimit_x(struct event_filler_arguments *args)
4381
4376
max = -1 ;
4382
4377
}
4383
4378
4384
- /* Parameter 3: cur */
4379
+ /* Parameter 2: (type: PT_INT64) */
4385
4380
res = val_to_ring (args , cur , 0 , false, 0 );
4386
4381
CHECK_RES (res );
4387
4382
4388
- /* Parameter 4 : max */
4383
+ /* Parameter 3 : max (type: PT_INT64) */
4389
4384
res = val_to_ring (args , max , 0 , false, 0 );
4390
4385
CHECK_RES (res );
4391
4386
4387
+ /* Parameter 4: resource (type: PT_ENUMFLAGS8) */
4388
+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4389
+ res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4390
+ CHECK_RES (res );
4391
+
4392
4392
return add_sentinel (args );
4393
4393
}
4394
4394
@@ -4427,25 +4427,12 @@ int f_sys_prlimit_x(struct event_filler_arguments *args)
4427
4427
int64_t oldmax ;
4428
4428
pid_t pid = 0 ;
4429
4429
4430
- /*
4431
- * res
4432
- */
4430
+ /* Parameter 1: res ((type: PT_ERRNO) */
4433
4431
retval = (int64_t )(long )syscall_get_return_value (current , args -> regs );
4434
4432
res = val_to_ring (args , retval , 0 , false, 0 );
4435
4433
if (unlikely (res != PPM_SUCCESS ))
4436
4434
return res ;
4437
4435
4438
- /* Parameter 1: pid */
4439
- syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4440
- pid = (s32 )val ;
4441
- res = val_to_ring (args , (s64 )pid , 0 , false, 0 );
4442
- CHECK_RES (res );
4443
-
4444
- /* Parameter 2: resource (type: PT_ENUMFLAGS8) */
4445
- syscall_get_arguments_deprecated (args , 1 , 1 , & val );
4446
- res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4447
- CHECK_RES (res );
4448
-
4449
4436
/*
4450
4437
* Copy the user structure and extract cur and max
4451
4438
*/
@@ -4499,25 +4486,32 @@ int f_sys_prlimit_x(struct event_filler_arguments *args)
4499
4486
}
4500
4487
}
4501
4488
#endif
4502
- /* Parameter 3 : newcur (PT_INT64)*/
4489
+ /* Parameter 2 : newcur (type: PT_INT64) */
4503
4490
res = val_to_ring (args , newcur , 0 , false, 0 );
4504
- if (unlikely (res != PPM_SUCCESS ))
4505
- return res ;
4491
+ CHECK_RES (res );
4506
4492
4507
- /* Parameter 4 : newmax (PT_INT64)*/
4493
+ /* Parameter 3 : newmax (type: PT_INT64) */
4508
4494
res = val_to_ring (args , newmax , 0 , false, 0 );
4509
- if (unlikely (res != PPM_SUCCESS ))
4510
- return res ;
4495
+ CHECK_RES (res );
4511
4496
4512
- /* Parameter 5 : oldcur (PT_INT64)*/
4497
+ /* Parameter 4 : oldcur (type: PT_INT64) */
4513
4498
res = val_to_ring (args , oldcur , 0 , false, 0 );
4514
- if (unlikely (res != PPM_SUCCESS ))
4515
- return res ;
4499
+ CHECK_RES (res );
4516
4500
4517
- /* Parameter 6 : oldmax (PT_INT64)*/
4501
+ /* Parameter 5 : oldmax (type: PT_INT64) */
4518
4502
res = val_to_ring (args , oldmax , 0 , false, 0 );
4519
- if (unlikely (res != PPM_SUCCESS ))
4520
- return res ;
4503
+ CHECK_RES (res );
4504
+
4505
+ /* Parameter 6: pid (type: PT_INT64) */
4506
+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
4507
+ pid = (s32 )val ;
4508
+ res = val_to_ring (args , (s64 )pid , 0 , false, 0 );
4509
+ CHECK_RES (res );
4510
+
4511
+ /* Parameter 7: resource (type: PT_ENUMFLAGS8) */
4512
+ syscall_get_arguments_deprecated (args , 1 , 1 , & val );
4513
+ res = val_to_ring (args , rlimit_resource_to_scap (val ), 0 , false, 0 );
4514
+ CHECK_RES (res );
4521
4515
4522
4516
return add_sentinel (args );
4523
4517
}
0 commit comments