@@ -7795,23 +7795,45 @@ int f_sys_semget_e(struct event_filler_arguments *args) {
77957795 unsigned long val ;
77967796 int res ;
77977797
7798- /*
7799- * key
7800- */
7798+ /* Parameter 1: key (type: PT_INT32) */
78017799 syscall_get_arguments_deprecated (args , 0 , 1 , & val );
78027800 res = val_to_ring (args , val , 0 , true, 0 );
78037801 CHECK_RES (res );
78047802
7805- /*
7806- * nsems
7807- */
7803+ /* Parameter 2: nsems (type: PT_INT32) */
78087804 syscall_get_arguments_deprecated (args , 1 , 1 , & val );
78097805 res = val_to_ring (args , val , 0 , true, 0 );
78107806 CHECK_RES (res );
78117807
7812- /*
7813- * semflg
7814- */
7808+ /* Parameter 3: semflg (type: PT_FLAGS32) */
7809+ syscall_get_arguments_deprecated (args , 2 , 1 , & val );
7810+ res = val_to_ring (args , semget_flags_to_scap (val ), 0 , true, 0 );
7811+ CHECK_RES (res );
7812+
7813+ return add_sentinel (args );
7814+ }
7815+
7816+ int f_sys_semget_x (struct event_filler_arguments * args ) {
7817+ int64_t retval ;
7818+ unsigned long val ;
7819+ int res ;
7820+
7821+ /* Parameter 1: res (type: PT_ERRNO) */
7822+ retval = (int64_t )syscall_get_return_value (current , args -> regs );
7823+ res = val_to_ring (args , retval , 0 , false, 0 );
7824+ CHECK_RES (res );
7825+
7826+ /* Parameter 2: key (type: PT_INT32) */
7827+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
7828+ res = val_to_ring (args , val , 0 , true, 0 );
7829+ CHECK_RES (res );
7830+
7831+ /* Parameter 3: nsems (type: PT_INT32) */
7832+ syscall_get_arguments_deprecated (args , 1 , 1 , & val );
7833+ res = val_to_ring (args , val , 0 , true, 0 );
7834+ CHECK_RES (res );
7835+
7836+ /* Parameter 4: semflg (type: PT_FLAGS32) */
78157837 syscall_get_arguments_deprecated (args , 2 , 1 , & val );
78167838 res = val_to_ring (args , semget_flags_to_scap (val ), 0 , true, 0 );
78177839 CHECK_RES (res );
@@ -7823,30 +7845,58 @@ int f_sys_semctl_e(struct event_filler_arguments *args) {
78237845 unsigned long val ;
78247846 int res ;
78257847
7826- /*
7827- * semid
7828- */
7848+ /* Parameter 1: semid (type: PT_INT32) */
78297849 syscall_get_arguments_deprecated (args , 0 , 1 , & val );
78307850 res = val_to_ring (args , val , 0 , true, 0 );
78317851 CHECK_RES (res );
78327852
7833- /*
7834- * semnum
7835- */
7853+ /* Parameter 2: semnum (type: PT_INT32) */
78367854 syscall_get_arguments_deprecated (args , 1 , 1 , & val );
78377855 res = val_to_ring (args , val , 0 , true, 0 );
78387856 CHECK_RES (res );
78397857
7840- /*
7841- * cmd
7842- */
7858+ /* Parameter 3: cmd (type: PT_FLAGS16) */
78437859 syscall_get_arguments_deprecated (args , 2 , 1 , & val );
78447860 res = val_to_ring (args , semctl_cmd_to_scap (val ), 0 , true, 0 );
78457861 CHECK_RES (res );
78467862
7847- /*
7848- * optional argument semun/val
7849- */
7863+ /* Parameter 4: val (type: PT_INT32) */
7864+ if (val == SETVAL )
7865+ syscall_get_arguments_deprecated (args , 3 , 1 , & val );
7866+ else
7867+ val = 0 ;
7868+ res = val_to_ring (args , val , 0 , true, 0 );
7869+ CHECK_RES (res );
7870+
7871+ return add_sentinel (args );
7872+ }
7873+
7874+ int f_sys_semctl_x (struct event_filler_arguments * args ) {
7875+ int64_t retval ;
7876+ int res ;
7877+ unsigned long val ;
7878+
7879+ /* Parameter 1: res (type: PT_ERRNO) */
7880+ retval = (int64_t )syscall_get_return_value (current , args -> regs );
7881+ res = val_to_ring (args , retval , 0 , false, 0 );
7882+ CHECK_RES (res );
7883+
7884+ /* Parameter 2: semid (type: PT_INT32) */
7885+ syscall_get_arguments_deprecated (args , 0 , 1 , & val );
7886+ res = val_to_ring (args , val , 0 , true, 0 );
7887+ CHECK_RES (res );
7888+
7889+ /* Parameter 3: semnum (type: PT_INT32) */
7890+ syscall_get_arguments_deprecated (args , 1 , 1 , & val );
7891+ res = val_to_ring (args , val , 0 , true, 0 );
7892+ CHECK_RES (res );
7893+
7894+ /* Parameter 4: cmd (type: PT_FLAGS16) */
7895+ syscall_get_arguments_deprecated (args , 2 , 1 , & val );
7896+ res = val_to_ring (args , semctl_cmd_to_scap (val ), 0 , true, 0 );
7897+ CHECK_RES (res );
7898+
7899+ /* Parameter 5: val (type: PT_INT32) */
78507900 if (val == SETVAL )
78517901 syscall_get_arguments_deprecated (args , 3 , 1 , & val );
78527902 else
0 commit comments