2 * System call argument to DTrace register array converstion.
4 * DO NOT EDIT-- this file is automatically generated.
6 * This file is part of the DTrace syscall provider.
10 systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
12 int64_t *iarg = (int64_t *) uarg;
14 #define nosys linux_nosys
17 struct linux_exit_args *p = params;
18 iarg[0] = p->rval; /* int */
29 struct read_args *p = params;
30 iarg[0] = p->fd; /* int */
31 uarg[1] = (intptr_t) p->buf; /* char * */
32 uarg[2] = p->nbyte; /* u_int */
38 struct write_args *p = params;
39 iarg[0] = p->fd; /* int */
40 uarg[1] = (intptr_t) p->buf; /* char * */
41 uarg[2] = p->nbyte; /* u_int */
47 struct linux_open_args *p = params;
48 uarg[0] = (intptr_t) p->path; /* char * */
49 iarg[1] = p->flags; /* l_int */
50 iarg[2] = p->mode; /* l_int */
56 struct close_args *p = params;
57 iarg[0] = p->fd; /* int */
63 struct linux_waitpid_args *p = params;
64 iarg[0] = p->pid; /* l_pid_t */
65 uarg[1] = (intptr_t) p->status; /* l_int * */
66 iarg[2] = p->options; /* l_int */
72 struct linux_creat_args *p = params;
73 uarg[0] = (intptr_t) p->path; /* char * */
74 iarg[1] = p->mode; /* l_int */
80 struct linux_link_args *p = params;
81 uarg[0] = (intptr_t) p->path; /* char * */
82 uarg[1] = (intptr_t) p->to; /* char * */
88 struct linux_unlink_args *p = params;
89 uarg[0] = (intptr_t) p->path; /* char * */
95 struct linux_execve_args *p = params;
96 uarg[0] = (intptr_t) p->path; /* char * */
97 uarg[1] = (intptr_t) p->argp; /* uint32_t * */
98 uarg[2] = (intptr_t) p->envp; /* uint32_t * */
104 struct linux_chdir_args *p = params;
105 uarg[0] = (intptr_t) p->path; /* char * */
111 struct linux_time_args *p = params;
112 uarg[0] = (intptr_t) p->tm; /* l_time_t * */
118 struct linux_mknod_args *p = params;
119 uarg[0] = (intptr_t) p->path; /* char * */
120 iarg[1] = p->mode; /* l_int */
121 iarg[2] = p->dev; /* l_dev_t */
127 struct linux_chmod_args *p = params;
128 uarg[0] = (intptr_t) p->path; /* char * */
129 iarg[1] = p->mode; /* l_mode_t */
135 struct linux_lchown16_args *p = params;
136 uarg[0] = (intptr_t) p->path; /* char * */
137 iarg[1] = p->uid; /* l_uid16_t */
138 iarg[2] = p->gid; /* l_gid16_t */
144 struct linux_stat_args *p = params;
145 uarg[0] = (intptr_t) p->path; /* char * */
146 uarg[1] = (intptr_t) p->up; /* struct linux_stat * */
152 struct linux_lseek_args *p = params;
153 iarg[0] = p->fdes; /* l_uint */
154 iarg[1] = p->off; /* l_off_t */
155 iarg[2] = p->whence; /* l_int */
166 struct linux_mount_args *p = params;
167 uarg[0] = (intptr_t) p->specialfile; /* char * */
168 uarg[1] = (intptr_t) p->dir; /* char * */
169 uarg[2] = (intptr_t) p->filesystemtype; /* char * */
170 iarg[3] = p->rwflag; /* l_ulong */
171 uarg[4] = (intptr_t) p->data; /* void * */
175 /* linux_oldumount */
177 struct linux_oldumount_args *p = params;
178 uarg[0] = (intptr_t) p->path; /* char * */
184 struct linux_setuid16_args *p = params;
185 iarg[0] = p->uid; /* l_uid16_t */
201 struct linux_ptrace_args *p = params;
202 iarg[0] = p->req; /* l_long */
203 iarg[1] = p->pid; /* l_long */
204 iarg[2] = p->addr; /* l_long */
205 iarg[3] = p->data; /* l_long */
211 struct linux_alarm_args *p = params;
212 iarg[0] = p->secs; /* l_uint */
223 struct linux_utime_args *p = params;
224 uarg[0] = (intptr_t) p->fname; /* char * */
225 uarg[1] = (intptr_t) p->times; /* struct l_utimbuf * */
231 struct linux_access_args *p = params;
232 uarg[0] = (intptr_t) p->path; /* char * */
233 iarg[1] = p->amode; /* l_int */
239 struct linux_nice_args *p = params;
240 iarg[0] = p->inc; /* l_int */
251 struct linux_kill_args *p = params;
252 iarg[0] = p->pid; /* l_int */
253 iarg[1] = p->signum; /* l_int */
259 struct linux_rename_args *p = params;
260 uarg[0] = (intptr_t) p->from; /* char * */
261 uarg[1] = (intptr_t) p->to; /* char * */
267 struct linux_mkdir_args *p = params;
268 uarg[0] = (intptr_t) p->path; /* char * */
269 iarg[1] = p->mode; /* l_int */
275 struct linux_rmdir_args *p = params;
276 uarg[0] = (intptr_t) p->path; /* char * */
282 struct dup_args *p = params;
283 uarg[0] = p->fd; /* u_int */
289 struct linux_pipe_args *p = params;
290 uarg[0] = (intptr_t) p->pipefds; /* l_int * */
296 struct linux_times_args *p = params;
297 uarg[0] = (intptr_t) p->buf; /* struct l_times_argv * */
303 struct linux_brk_args *p = params;
304 iarg[0] = p->dsend; /* l_ulong */
310 struct linux_setgid16_args *p = params;
311 iarg[0] = p->gid; /* l_gid16_t */
322 struct linux_signal_args *p = params;
323 iarg[0] = p->sig; /* l_int */
324 iarg[1] = p->handler; /* l_handler_t */
328 /* linux_geteuid16 */
333 /* linux_getegid16 */
340 struct acct_args *p = params;
341 uarg[0] = (intptr_t) p->path; /* char * */
347 struct linux_umount_args *p = params;
348 uarg[0] = (intptr_t) p->path; /* char * */
349 iarg[1] = p->flags; /* l_int */
355 struct linux_ioctl_args *p = params;
356 iarg[0] = p->fd; /* l_uint */
357 iarg[1] = p->cmd; /* l_uint */
358 uarg[2] = p->arg; /* uintptr_t */
364 struct linux_fcntl_args *p = params;
365 iarg[0] = p->fd; /* l_uint */
366 iarg[1] = p->cmd; /* l_uint */
367 uarg[2] = p->arg; /* uintptr_t */
373 struct setpgid_args *p = params;
374 iarg[0] = p->pid; /* int */
375 iarg[1] = p->pgid; /* int */
386 struct umask_args *p = params;
387 iarg[0] = p->newmask; /* int */
393 struct chroot_args *p = params;
394 uarg[0] = (intptr_t) p->path; /* char * */
400 struct linux_ustat_args *p = params;
401 iarg[0] = p->dev; /* l_dev_t */
402 uarg[1] = (intptr_t) p->ubuf; /* struct l_ustat * */
408 struct dup2_args *p = params;
409 uarg[0] = p->from; /* u_int */
410 uarg[1] = p->to; /* u_int */
429 /* linux_sigaction */
431 struct linux_sigaction_args *p = params;
432 iarg[0] = p->sig; /* l_int */
433 uarg[1] = (intptr_t) p->nsa; /* l_osigaction_t * */
434 uarg[2] = (intptr_t) p->osa; /* l_osigaction_t * */
445 struct linux_ssetmask_args *p = params;
446 iarg[0] = p->mask; /* l_osigset_t */
450 /* linux_setreuid16 */
452 struct linux_setreuid16_args *p = params;
453 iarg[0] = p->ruid; /* l_uid16_t */
454 iarg[1] = p->euid; /* l_uid16_t */
458 /* linux_setregid16 */
460 struct linux_setregid16_args *p = params;
461 iarg[0] = p->rgid; /* l_gid16_t */
462 iarg[1] = p->egid; /* l_gid16_t */
466 /* linux_sigsuspend */
468 struct linux_sigsuspend_args *p = params;
469 iarg[0] = p->hist0; /* l_int */
470 iarg[1] = p->hist1; /* l_int */
471 iarg[2] = p->mask; /* l_osigset_t */
475 /* linux_sigpending */
477 struct linux_sigpending_args *p = params;
478 uarg[0] = (intptr_t) p->mask; /* l_osigset_t * */
482 /* linux_sethostname */
484 struct linux_sethostname_args *p = params;
485 uarg[0] = (intptr_t) p->hostname; /* char * */
486 uarg[1] = p->len; /* u_int */
490 /* linux_setrlimit */
492 struct linux_setrlimit_args *p = params;
493 iarg[0] = p->resource; /* l_uint */
494 uarg[1] = (intptr_t) p->rlim; /* struct l_rlimit * */
498 /* linux_old_getrlimit */
500 struct linux_old_getrlimit_args *p = params;
501 iarg[0] = p->resource; /* l_uint */
502 uarg[1] = (intptr_t) p->rlim; /* struct l_rlimit * */
506 /* linux_getrusage */
508 struct linux_getrusage_args *p = params;
509 iarg[0] = p->who; /* int */
510 uarg[1] = (intptr_t) p->rusage; /* struct l_rusage * */
514 /* linux_gettimeofday */
516 struct linux_gettimeofday_args *p = params;
517 uarg[0] = (intptr_t) p->tp; /* struct l_timeval * */
518 uarg[1] = (intptr_t) p->tzp; /* struct timezone * */
522 /* linux_settimeofday */
524 struct linux_settimeofday_args *p = params;
525 uarg[0] = (intptr_t) p->tp; /* struct l_timeval * */
526 uarg[1] = (intptr_t) p->tzp; /* struct timezone * */
530 /* linux_getgroups16 */
532 struct linux_getgroups16_args *p = params;
533 iarg[0] = p->gidsetsize; /* l_uint */
534 uarg[1] = (intptr_t) p->gidset; /* l_gid16_t * */
538 /* linux_setgroups16 */
540 struct linux_setgroups16_args *p = params;
541 iarg[0] = p->gidsetsize; /* l_uint */
542 uarg[1] = (intptr_t) p->gidset; /* l_gid16_t * */
546 /* linux_old_select */
548 struct linux_old_select_args *p = params;
549 uarg[0] = (intptr_t) p->ptr; /* struct l_old_select_argv * */
555 struct linux_symlink_args *p = params;
556 uarg[0] = (intptr_t) p->path; /* char * */
557 uarg[1] = (intptr_t) p->to; /* char * */
563 struct linux_lstat_args *p = params;
564 uarg[0] = (intptr_t) p->path; /* char * */
565 uarg[1] = (intptr_t) p->up; /* struct linux_lstat * */
571 struct linux_readlink_args *p = params;
572 uarg[0] = (intptr_t) p->name; /* char * */
573 uarg[1] = (intptr_t) p->buf; /* char * */
574 iarg[2] = p->count; /* l_int */
580 struct swapon_args *p = params;
581 uarg[0] = (intptr_t) p->name; /* char * */
587 struct linux_reboot_args *p = params;
588 iarg[0] = p->magic1; /* l_int */
589 iarg[1] = p->magic2; /* l_int */
590 iarg[2] = p->cmd; /* l_uint */
591 uarg[3] = (intptr_t) p->arg; /* void * */
597 struct linux_readdir_args *p = params;
598 iarg[0] = p->fd; /* l_uint */
599 uarg[1] = (intptr_t) p->dent; /* struct l_dirent * */
600 iarg[2] = p->count; /* l_uint */
606 struct linux_mmap_args *p = params;
607 uarg[0] = (intptr_t) p->ptr; /* struct l_mmap_argv * */
613 struct munmap_args *p = params;
614 uarg[0] = (intptr_t) p->addr; /* caddr_t */
615 iarg[1] = p->len; /* int */
621 struct linux_truncate_args *p = params;
622 uarg[0] = (intptr_t) p->path; /* char * */
623 iarg[1] = p->length; /* l_ulong */
627 /* linux_ftruncate */
629 struct linux_ftruncate_args *p = params;
630 iarg[0] = p->fd; /* int */
631 iarg[1] = p->length; /* long */
637 struct fchmod_args *p = params;
638 iarg[0] = p->fd; /* int */
639 iarg[1] = p->mode; /* int */
645 struct fchown_args *p = params;
646 iarg[0] = p->fd; /* int */
647 iarg[1] = p->uid; /* int */
648 iarg[2] = p->gid; /* int */
652 /* linux_getpriority */
654 struct linux_getpriority_args *p = params;
655 iarg[0] = p->which; /* int */
656 iarg[1] = p->who; /* int */
662 struct setpriority_args *p = params;
663 iarg[0] = p->which; /* int */
664 iarg[1] = p->who; /* int */
665 iarg[2] = p->prio; /* int */
671 struct linux_statfs_args *p = params;
672 uarg[0] = (intptr_t) p->path; /* char * */
673 uarg[1] = (intptr_t) p->buf; /* struct l_statfs_buf * */
679 struct linux_fstatfs_args *p = params;
680 iarg[0] = p->fd; /* l_uint */
681 uarg[1] = (intptr_t) p->buf; /* struct l_statfs_buf * */
685 /* linux_socketcall */
687 struct linux_socketcall_args *p = params;
688 iarg[0] = p->what; /* l_int */
689 iarg[1] = p->args; /* l_ulong */
695 struct linux_syslog_args *p = params;
696 iarg[0] = p->type; /* l_int */
697 uarg[1] = (intptr_t) p->buf; /* char * */
698 iarg[2] = p->len; /* l_int */
702 /* linux_setitimer */
704 struct linux_setitimer_args *p = params;
705 iarg[0] = p->which; /* l_int */
706 uarg[1] = (intptr_t) p->itv; /* struct l_itimerval * */
707 uarg[2] = (intptr_t) p->oitv; /* struct l_itimerval * */
711 /* linux_getitimer */
713 struct linux_getitimer_args *p = params;
714 iarg[0] = p->which; /* l_int */
715 uarg[1] = (intptr_t) p->itv; /* struct l_itimerval * */
721 struct linux_newstat_args *p = params;
722 uarg[0] = (intptr_t) p->path; /* char * */
723 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
729 struct linux_newlstat_args *p = params;
730 uarg[0] = (intptr_t) p->path; /* char * */
731 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
737 struct linux_newfstat_args *p = params;
738 iarg[0] = p->fd; /* l_uint */
739 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
750 struct linux_iopl_args *p = params;
751 iarg[0] = p->level; /* l_int */
762 struct linux_wait4_args *p = params;
763 iarg[0] = p->pid; /* l_pid_t */
764 uarg[1] = (intptr_t) p->status; /* l_int * */
765 iarg[2] = p->options; /* l_int */
766 uarg[3] = (intptr_t) p->rusage; /* struct l_rusage * */
777 struct linux_sysinfo_args *p = params;
778 uarg[0] = (intptr_t) p->info; /* struct l_sysinfo * */
784 struct linux_ipc_args *p = params;
785 iarg[0] = p->what; /* l_uint */
786 iarg[1] = p->arg1; /* l_int */
787 iarg[2] = p->arg2; /* l_int */
788 iarg[3] = p->arg3; /* l_int */
789 uarg[4] = (intptr_t) p->ptr; /* void * */
790 iarg[5] = p->arg5; /* l_long */
796 struct fsync_args *p = params;
797 iarg[0] = p->fd; /* int */
801 /* linux_sigreturn */
803 struct linux_sigreturn_args *p = params;
804 uarg[0] = (intptr_t) p->sfp; /* struct l_sigframe * */
810 struct linux_clone_args *p = params;
811 iarg[0] = p->flags; /* l_int */
812 uarg[1] = (intptr_t) p->stack; /* void * */
813 uarg[2] = (intptr_t) p->parent_tidptr; /* void * */
814 uarg[3] = (intptr_t) p->tls; /* void * */
815 uarg[4] = (intptr_t) p->child_tidptr; /* void * */
819 /* linux_setdomainname */
821 struct linux_setdomainname_args *p = params;
822 uarg[0] = (intptr_t) p->name; /* char * */
823 iarg[1] = p->len; /* int */
829 struct linux_newuname_args *p = params;
830 uarg[0] = (intptr_t) p->buf; /* struct l_new_utsname * */
841 struct linux_mprotect_args *p = params;
842 uarg[0] = (intptr_t) p->addr; /* caddr_t */
843 iarg[1] = p->len; /* int */
844 iarg[2] = p->prot; /* int */
848 /* linux_sigprocmask */
850 struct linux_sigprocmask_args *p = params;
851 iarg[0] = p->how; /* l_int */
852 uarg[1] = (intptr_t) p->mask; /* l_osigset_t * */
853 uarg[2] = (intptr_t) p->omask; /* l_osigset_t * */
857 /* linux_create_module */
862 /* linux_init_module */
867 /* linux_delete_module */
872 /* linux_get_kernel_syms */
884 struct getpgid_args *p = params;
885 iarg[0] = p->pid; /* int */
891 struct fchdir_args *p = params;
892 iarg[0] = p->fd; /* int */
903 struct linux_sysfs_args *p = params;
904 iarg[0] = p->option; /* l_int */
905 iarg[1] = p->arg1; /* l_ulong */
906 iarg[2] = p->arg2; /* l_ulong */
910 /* linux_personality */
912 struct linux_personality_args *p = params;
913 iarg[0] = p->per; /* l_ulong */
917 /* linux_setfsuid16 */
919 struct linux_setfsuid16_args *p = params;
920 iarg[0] = p->uid; /* l_uid16_t */
924 /* linux_setfsgid16 */
926 struct linux_setfsgid16_args *p = params;
927 iarg[0] = p->gid; /* l_gid16_t */
933 struct linux_llseek_args *p = params;
934 iarg[0] = p->fd; /* l_int */
935 iarg[1] = p->ohigh; /* l_ulong */
936 iarg[2] = p->olow; /* l_ulong */
937 uarg[3] = (intptr_t) p->res; /* l_loff_t * */
938 iarg[4] = p->whence; /* l_uint */
944 struct linux_getdents_args *p = params;
945 iarg[0] = p->fd; /* l_uint */
946 uarg[1] = (intptr_t) p->dent; /* void * */
947 iarg[2] = p->count; /* l_uint */
953 struct linux_select_args *p = params;
954 iarg[0] = p->nfds; /* l_int */
955 uarg[1] = (intptr_t) p->readfds; /* l_fd_set * */
956 uarg[2] = (intptr_t) p->writefds; /* l_fd_set * */
957 uarg[3] = (intptr_t) p->exceptfds; /* l_fd_set * */
958 uarg[4] = (intptr_t) p->timeout; /* struct l_timeval * */
964 struct flock_args *p = params;
965 iarg[0] = p->fd; /* int */
966 iarg[1] = p->how; /* int */
972 struct linux_msync_args *p = params;
973 iarg[0] = p->addr; /* l_ulong */
974 iarg[1] = p->len; /* l_size_t */
975 iarg[2] = p->fl; /* l_int */
981 struct linux_readv_args *p = params;
982 iarg[0] = p->fd; /* l_ulong */
983 uarg[1] = (intptr_t) p->iovp; /* struct l_iovec32 * */
984 iarg[2] = p->iovcnt; /* l_ulong */
990 struct linux_writev_args *p = params;
991 iarg[0] = p->fd; /* l_ulong */
992 uarg[1] = (intptr_t) p->iovp; /* struct l_iovec32 * */
993 iarg[2] = p->iovcnt; /* l_ulong */
999 struct linux_getsid_args *p = params;
1000 iarg[0] = p->pid; /* l_pid_t */
1004 /* linux_fdatasync */
1006 struct linux_fdatasync_args *p = params;
1007 iarg[0] = p->fd; /* l_uint */
1013 struct linux_sysctl_args *p = params;
1014 uarg[0] = (intptr_t) p->args; /* struct l___sysctl_args * */
1020 struct mlock_args *p = params;
1021 uarg[0] = (intptr_t) p->addr; /* const void * */
1022 uarg[1] = p->len; /* size_t */
1028 struct munlock_args *p = params;
1029 uarg[0] = (intptr_t) p->addr; /* const void * */
1030 uarg[1] = p->len; /* size_t */
1036 struct mlockall_args *p = params;
1037 iarg[0] = p->how; /* int */
1046 /* linux_sched_setparam */
1048 struct linux_sched_setparam_args *p = params;
1049 iarg[0] = p->pid; /* l_pid_t */
1050 uarg[1] = (intptr_t) p->param; /* struct l_sched_param * */
1054 /* linux_sched_getparam */
1056 struct linux_sched_getparam_args *p = params;
1057 iarg[0] = p->pid; /* l_pid_t */
1058 uarg[1] = (intptr_t) p->param; /* struct l_sched_param * */
1062 /* linux_sched_setscheduler */
1064 struct linux_sched_setscheduler_args *p = params;
1065 iarg[0] = p->pid; /* l_pid_t */
1066 iarg[1] = p->policy; /* l_int */
1067 uarg[2] = (intptr_t) p->param; /* struct l_sched_param * */
1071 /* linux_sched_getscheduler */
1073 struct linux_sched_getscheduler_args *p = params;
1074 iarg[0] = p->pid; /* l_pid_t */
1083 /* linux_sched_get_priority_max */
1085 struct linux_sched_get_priority_max_args *p = params;
1086 iarg[0] = p->policy; /* l_int */
1090 /* linux_sched_get_priority_min */
1092 struct linux_sched_get_priority_min_args *p = params;
1093 iarg[0] = p->policy; /* l_int */
1097 /* linux_sched_rr_get_interval */
1099 struct linux_sched_rr_get_interval_args *p = params;
1100 iarg[0] = p->pid; /* l_pid_t */
1101 uarg[1] = (intptr_t) p->interval; /* struct l_timespec * */
1105 /* linux_nanosleep */
1107 struct linux_nanosleep_args *p = params;
1108 uarg[0] = (intptr_t) p->rqtp; /* const struct l_timespec * */
1109 uarg[1] = (intptr_t) p->rmtp; /* struct l_timespec * */
1115 struct linux_mremap_args *p = params;
1116 iarg[0] = p->addr; /* l_ulong */
1117 iarg[1] = p->old_len; /* l_ulong */
1118 iarg[2] = p->new_len; /* l_ulong */
1119 iarg[3] = p->flags; /* l_ulong */
1120 iarg[4] = p->new_addr; /* l_ulong */
1124 /* linux_setresuid16 */
1126 struct linux_setresuid16_args *p = params;
1127 iarg[0] = p->ruid; /* l_uid16_t */
1128 iarg[1] = p->euid; /* l_uid16_t */
1129 iarg[2] = p->suid; /* l_uid16_t */
1133 /* linux_getresuid16 */
1135 struct linux_getresuid16_args *p = params;
1136 uarg[0] = (intptr_t) p->ruid; /* l_uid16_t * */
1137 uarg[1] = (intptr_t) p->euid; /* l_uid16_t * */
1138 uarg[2] = (intptr_t) p->suid; /* l_uid16_t * */
1142 /* linux_query_module */
1149 struct poll_args *p = params;
1150 uarg[0] = (intptr_t) p->fds; /* struct pollfd * */
1151 uarg[1] = p->nfds; /* unsigned int */
1152 iarg[2] = p->timeout; /* int */
1156 /* linux_nfsservctl */
1161 /* linux_setresgid16 */
1163 struct linux_setresgid16_args *p = params;
1164 iarg[0] = p->rgid; /* l_gid16_t */
1165 iarg[1] = p->egid; /* l_gid16_t */
1166 iarg[2] = p->sgid; /* l_gid16_t */
1170 /* linux_getresgid16 */
1172 struct linux_getresgid16_args *p = params;
1173 uarg[0] = (intptr_t) p->rgid; /* l_gid16_t * */
1174 uarg[1] = (intptr_t) p->egid; /* l_gid16_t * */
1175 uarg[2] = (intptr_t) p->sgid; /* l_gid16_t * */
1181 struct linux_prctl_args *p = params;
1182 iarg[0] = p->option; /* l_int */
1183 iarg[1] = p->arg2; /* l_int */
1184 iarg[2] = p->arg3; /* l_int */
1185 iarg[3] = p->arg4; /* l_int */
1186 iarg[4] = p->arg5; /* l_int */
1190 /* linux_rt_sigreturn */
1192 struct linux_rt_sigreturn_args *p = params;
1193 uarg[0] = (intptr_t) p->ucp; /* struct l_ucontext * */
1197 /* linux_rt_sigaction */
1199 struct linux_rt_sigaction_args *p = params;
1200 iarg[0] = p->sig; /* l_int */
1201 uarg[1] = (intptr_t) p->act; /* l_sigaction_t * */
1202 uarg[2] = (intptr_t) p->oact; /* l_sigaction_t * */
1203 iarg[3] = p->sigsetsize; /* l_size_t */
1207 /* linux_rt_sigprocmask */
1209 struct linux_rt_sigprocmask_args *p = params;
1210 iarg[0] = p->how; /* l_int */
1211 uarg[1] = (intptr_t) p->mask; /* l_sigset_t * */
1212 uarg[2] = (intptr_t) p->omask; /* l_sigset_t * */
1213 iarg[3] = p->sigsetsize; /* l_size_t */
1217 /* linux_rt_sigpending */
1219 struct linux_rt_sigpending_args *p = params;
1220 uarg[0] = (intptr_t) p->set; /* l_sigset_t * */
1221 iarg[1] = p->sigsetsize; /* l_size_t */
1225 /* linux_rt_sigtimedwait */
1227 struct linux_rt_sigtimedwait_args *p = params;
1228 uarg[0] = (intptr_t) p->mask; /* l_sigset_t * */
1229 uarg[1] = (intptr_t) p->ptr; /* l_siginfo_t * */
1230 uarg[2] = (intptr_t) p->timeout; /* struct l_timeval * */
1231 iarg[3] = p->sigsetsize; /* l_size_t */
1235 /* linux_rt_sigqueueinfo */
1237 struct linux_rt_sigqueueinfo_args *p = params;
1238 iarg[0] = p->pid; /* l_pid_t */
1239 iarg[1] = p->sig; /* l_int */
1240 uarg[2] = (intptr_t) p->info; /* l_siginfo_t * */
1244 /* linux_rt_sigsuspend */
1246 struct linux_rt_sigsuspend_args *p = params;
1247 uarg[0] = (intptr_t) p->newset; /* l_sigset_t * */
1248 iarg[1] = p->sigsetsize; /* l_size_t */
1254 struct linux_pread_args *p = params;
1255 iarg[0] = p->fd; /* l_uint */
1256 uarg[1] = (intptr_t) p->buf; /* char * */
1257 iarg[2] = p->nbyte; /* l_size_t */
1258 iarg[3] = p->offset; /* l_loff_t */
1264 struct linux_pwrite_args *p = params;
1265 iarg[0] = p->fd; /* l_uint */
1266 uarg[1] = (intptr_t) p->buf; /* char * */
1267 iarg[2] = p->nbyte; /* l_size_t */
1268 iarg[3] = p->offset; /* l_loff_t */
1274 struct linux_chown16_args *p = params;
1275 uarg[0] = (intptr_t) p->path; /* char * */
1276 iarg[1] = p->uid; /* l_uid16_t */
1277 iarg[2] = p->gid; /* l_gid16_t */
1283 struct linux_getcwd_args *p = params;
1284 uarg[0] = (intptr_t) p->buf; /* char * */
1285 iarg[1] = p->bufsize; /* l_ulong */
1291 struct linux_capget_args *p = params;
1292 uarg[0] = (intptr_t) p->hdrp; /* struct l_user_cap_header * */
1293 uarg[1] = (intptr_t) p->datap; /* struct l_user_cap_data * */
1299 struct linux_capset_args *p = params;
1300 uarg[0] = (intptr_t) p->hdrp; /* struct l_user_cap_header * */
1301 uarg[1] = (intptr_t) p->datap; /* struct l_user_cap_data * */
1305 /* linux_sigaltstack */
1307 struct linux_sigaltstack_args *p = params;
1308 uarg[0] = (intptr_t) p->uss; /* l_stack_t * */
1309 uarg[1] = (intptr_t) p->uoss; /* l_stack_t * */
1313 /* linux_sendfile */
1323 /* linux_getrlimit */
1325 struct linux_getrlimit_args *p = params;
1326 iarg[0] = p->resource; /* l_uint */
1327 uarg[1] = (intptr_t) p->rlim; /* struct l_rlimit * */
1333 struct linux_mmap2_args *p = params;
1334 iarg[0] = p->addr; /* l_ulong */
1335 iarg[1] = p->len; /* l_ulong */
1336 iarg[2] = p->prot; /* l_ulong */
1337 iarg[3] = p->flags; /* l_ulong */
1338 iarg[4] = p->fd; /* l_ulong */
1339 iarg[5] = p->pgoff; /* l_ulong */
1343 /* linux_truncate64 */
1345 struct linux_truncate64_args *p = params;
1346 uarg[0] = (intptr_t) p->path; /* char * */
1347 iarg[1] = p->length; /* l_loff_t */
1351 /* linux_ftruncate64 */
1353 struct linux_ftruncate64_args *p = params;
1354 iarg[0] = p->fd; /* l_uint */
1355 iarg[1] = p->length; /* l_loff_t */
1361 struct linux_stat64_args *p = params;
1362 uarg[0] = (intptr_t) p->filename; /* const char * */
1363 uarg[1] = (intptr_t) p->statbuf; /* struct l_stat64 * */
1369 struct linux_lstat64_args *p = params;
1370 uarg[0] = (intptr_t) p->filename; /* const char * */
1371 uarg[1] = (intptr_t) p->statbuf; /* struct l_stat64 * */
1377 struct linux_fstat64_args *p = params;
1378 iarg[0] = p->fd; /* l_int */
1379 uarg[1] = (intptr_t) p->statbuf; /* struct l_stat64 * */
1385 struct linux_lchown_args *p = params;
1386 uarg[0] = (intptr_t) p->path; /* char * */
1387 iarg[1] = p->uid; /* l_uid_t */
1388 iarg[2] = p->gid; /* l_gid_t */
1414 struct setreuid_args *p = params;
1415 uarg[0] = p->ruid; /* uid_t */
1416 uarg[1] = p->euid; /* uid_t */
1422 struct setregid_args *p = params;
1423 iarg[0] = p->rgid; /* gid_t */
1424 iarg[1] = p->egid; /* gid_t */
1428 /* linux_getgroups */
1430 struct linux_getgroups_args *p = params;
1431 iarg[0] = p->gidsetsize; /* l_int */
1432 uarg[1] = (intptr_t) p->grouplist; /* l_gid_t * */
1436 /* linux_setgroups */
1438 struct linux_setgroups_args *p = params;
1439 iarg[0] = p->gidsetsize; /* l_int */
1440 uarg[1] = (intptr_t) p->grouplist; /* l_gid_t * */
1451 struct setresuid_args *p = params;
1452 uarg[0] = p->ruid; /* uid_t */
1453 uarg[1] = p->euid; /* uid_t */
1454 uarg[2] = p->suid; /* uid_t */
1460 struct getresuid_args *p = params;
1461 uarg[0] = (intptr_t) p->ruid; /* uid_t * */
1462 uarg[1] = (intptr_t) p->euid; /* uid_t * */
1463 uarg[2] = (intptr_t) p->suid; /* uid_t * */
1469 struct setresgid_args *p = params;
1470 iarg[0] = p->rgid; /* gid_t */
1471 iarg[1] = p->egid; /* gid_t */
1472 iarg[2] = p->sgid; /* gid_t */
1478 struct getresgid_args *p = params;
1479 uarg[0] = (intptr_t) p->rgid; /* gid_t * */
1480 uarg[1] = (intptr_t) p->egid; /* gid_t * */
1481 uarg[2] = (intptr_t) p->sgid; /* gid_t * */
1487 struct linux_chown_args *p = params;
1488 uarg[0] = (intptr_t) p->path; /* char * */
1489 iarg[1] = p->uid; /* l_uid_t */
1490 iarg[2] = p->gid; /* l_gid_t */
1496 struct setuid_args *p = params;
1497 uarg[0] = p->uid; /* uid_t */
1503 struct setgid_args *p = params;
1504 iarg[0] = p->gid; /* gid_t */
1508 /* linux_setfsuid */
1510 struct linux_setfsuid_args *p = params;
1511 iarg[0] = p->uid; /* l_uid_t */
1515 /* linux_setfsgid */
1517 struct linux_setfsgid_args *p = params;
1518 iarg[0] = p->gid; /* l_gid_t */
1522 /* linux_pivot_root */
1524 struct linux_pivot_root_args *p = params;
1525 uarg[0] = (intptr_t) p->new_root; /* char * */
1526 uarg[1] = (intptr_t) p->put_old; /* char * */
1532 struct linux_mincore_args *p = params;
1533 iarg[0] = p->start; /* l_ulong */
1534 iarg[1] = p->len; /* l_size_t */
1535 uarg[2] = (intptr_t) p->vec; /* u_char * */
1541 struct madvise_args *p = params;
1542 uarg[0] = (intptr_t) p->addr; /* void * */
1543 uarg[1] = p->len; /* size_t */
1544 iarg[2] = p->behav; /* int */
1548 /* linux_getdents64 */
1550 struct linux_getdents64_args *p = params;
1551 iarg[0] = p->fd; /* l_uint */
1552 uarg[1] = (intptr_t) p->dirent; /* void * */
1553 iarg[2] = p->count; /* l_uint */
1559 struct linux_fcntl64_args *p = params;
1560 iarg[0] = p->fd; /* l_uint */
1561 iarg[1] = p->cmd; /* l_uint */
1562 uarg[2] = p->arg; /* uintptr_t */
1571 /* linux_setxattr */
1576 /* linux_lsetxattr */
1581 /* linux_fsetxattr */
1586 /* linux_getxattr */
1591 /* linux_lgetxattr */
1596 /* linux_fgetxattr */
1601 /* linux_listxattr */
1606 /* linux_llistxattr */
1611 /* linux_flistxattr */
1616 /* linux_removexattr */
1621 /* linux_lremovexattr */
1626 /* linux_fremovexattr */
1633 struct linux_tkill_args *p = params;
1634 iarg[0] = p->tid; /* int */
1635 iarg[1] = p->sig; /* int */
1639 /* linux_sys_futex */
1641 struct linux_sys_futex_args *p = params;
1642 uarg[0] = (intptr_t) p->uaddr; /* void * */
1643 iarg[1] = p->op; /* int */
1644 uarg[2] = p->val; /* uint32_t */
1645 uarg[3] = (intptr_t) p->timeout; /* struct l_timespec * */
1646 uarg[4] = (intptr_t) p->uaddr2; /* uint32_t * */
1647 uarg[5] = p->val3; /* uint32_t */
1651 /* linux_sched_setaffinity */
1653 struct linux_sched_setaffinity_args *p = params;
1654 iarg[0] = p->pid; /* l_pid_t */
1655 iarg[1] = p->len; /* l_uint */
1656 uarg[2] = (intptr_t) p->user_mask_ptr; /* l_ulong * */
1660 /* linux_sched_getaffinity */
1662 struct linux_sched_getaffinity_args *p = params;
1663 iarg[0] = p->pid; /* l_pid_t */
1664 iarg[1] = p->len; /* l_uint */
1665 uarg[2] = (intptr_t) p->user_mask_ptr; /* l_ulong * */
1669 /* linux_set_thread_area */
1671 struct linux_set_thread_area_args *p = params;
1672 uarg[0] = (intptr_t) p->desc; /* struct l_user_desc * */
1676 /* linux_fadvise64 */
1678 struct linux_fadvise64_args *p = params;
1679 iarg[0] = p->fd; /* int */
1680 iarg[1] = p->offset; /* l_loff_t */
1681 iarg[2] = p->len; /* l_size_t */
1682 iarg[3] = p->advice; /* int */
1686 /* linux_exit_group */
1688 struct linux_exit_group_args *p = params;
1689 iarg[0] = p->error_code; /* int */
1693 /* linux_lookup_dcookie */
1698 /* linux_epoll_create */
1703 /* linux_epoll_ctl */
1708 /* linux_epoll_wait */
1713 /* linux_remap_file_pages */
1718 /* linux_set_tid_address */
1720 struct linux_set_tid_address_args *p = params;
1721 uarg[0] = (intptr_t) p->tidptr; /* int * */
1725 /* linux_timer_create */
1727 struct linux_timer_create_args *p = params;
1728 iarg[0] = p->clock_id; /* clockid_t */
1729 uarg[1] = (intptr_t) p->evp; /* struct sigevent * */
1730 uarg[2] = (intptr_t) p->timerid; /* l_timer_t * */
1734 /* linux_timer_settime */
1736 struct linux_timer_settime_args *p = params;
1737 iarg[0] = p->timerid; /* l_timer_t */
1738 iarg[1] = p->flags; /* l_int */
1739 uarg[2] = (intptr_t) p->new; /* const struct itimerspec * */
1740 uarg[3] = (intptr_t) p->old; /* struct itimerspec * */
1744 /* linux_timer_gettime */
1746 struct linux_timer_gettime_args *p = params;
1747 iarg[0] = p->timerid; /* l_timer_t */
1748 uarg[1] = (intptr_t) p->setting; /* struct itimerspec * */
1752 /* linux_timer_getoverrun */
1754 struct linux_timer_getoverrun_args *p = params;
1755 iarg[0] = p->timerid; /* l_timer_t */
1759 /* linux_timer_delete */
1761 struct linux_timer_delete_args *p = params;
1762 iarg[0] = p->timerid; /* l_timer_t */
1766 /* linux_clock_settime */
1768 struct linux_clock_settime_args *p = params;
1769 iarg[0] = p->which; /* clockid_t */
1770 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1774 /* linux_clock_gettime */
1776 struct linux_clock_gettime_args *p = params;
1777 iarg[0] = p->which; /* clockid_t */
1778 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1782 /* linux_clock_getres */
1784 struct linux_clock_getres_args *p = params;
1785 iarg[0] = p->which; /* clockid_t */
1786 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1790 /* linux_clock_nanosleep */
1792 struct linux_clock_nanosleep_args *p = params;
1793 iarg[0] = p->which; /* clockid_t */
1794 iarg[1] = p->flags; /* int */
1795 uarg[2] = (intptr_t) p->rqtp; /* struct l_timespec * */
1796 uarg[3] = (intptr_t) p->rmtp; /* struct l_timespec * */
1800 /* linux_statfs64 */
1802 struct linux_statfs64_args *p = params;
1803 uarg[0] = (intptr_t) p->path; /* char * */
1804 uarg[1] = p->bufsize; /* size_t */
1805 uarg[2] = (intptr_t) p->buf; /* struct l_statfs64_buf * */
1809 /* linux_fstatfs64 */
1816 struct linux_tgkill_args *p = params;
1817 iarg[0] = p->tgid; /* int */
1818 iarg[1] = p->pid; /* int */
1819 iarg[2] = p->sig; /* int */
1825 struct linux_utimes_args *p = params;
1826 uarg[0] = (intptr_t) p->fname; /* char * */
1827 uarg[1] = (intptr_t) p->tptr; /* struct l_timeval * */
1831 /* linux_fadvise64_64 */
1833 struct linux_fadvise64_64_args *p = params;
1834 iarg[0] = p->fd; /* int */
1835 iarg[1] = p->offset; /* l_loff_t */
1836 iarg[2] = p->len; /* l_loff_t */
1837 iarg[3] = p->advice; /* int */
1846 /* linux_get_mempolicy */
1851 /* linux_set_mempolicy */
1861 /* linux_mq_unlink */
1866 /* linux_mq_timedsend */
1871 /* linux_mq_timedreceive */
1876 /* linux_mq_notify */
1881 /* linux_mq_getsetattr */
1886 /* linux_kexec_load */
1893 struct linux_waitid_args *p = params;
1894 iarg[0] = p->idtype; /* int */
1895 iarg[1] = p->id; /* l_pid_t */
1896 uarg[2] = (intptr_t) p->info; /* l_siginfo_t * */
1897 iarg[3] = p->options; /* int */
1898 uarg[4] = (intptr_t) p->rusage; /* struct l_rusage * */
1907 /* linux_request_key */
1917 /* linux_ioprio_set */
1922 /* linux_ioprio_get */
1927 /* linux_inotify_init */
1932 /* linux_inotify_add_watch */
1937 /* linux_inotify_rm_watch */
1942 /* linux_migrate_pages */
1949 struct linux_openat_args *p = params;
1950 iarg[0] = p->dfd; /* l_int */
1951 uarg[1] = (intptr_t) p->filename; /* const char * */
1952 iarg[2] = p->flags; /* l_int */
1953 iarg[3] = p->mode; /* l_int */
1959 struct linux_mkdirat_args *p = params;
1960 iarg[0] = p->dfd; /* l_int */
1961 uarg[1] = (intptr_t) p->pathname; /* const char * */
1962 iarg[2] = p->mode; /* l_int */
1968 struct linux_mknodat_args *p = params;
1969 iarg[0] = p->dfd; /* l_int */
1970 uarg[1] = (intptr_t) p->filename; /* const char * */
1971 iarg[2] = p->mode; /* l_int */
1972 iarg[3] = p->dev; /* l_uint */
1976 /* linux_fchownat */
1978 struct linux_fchownat_args *p = params;
1979 iarg[0] = p->dfd; /* l_int */
1980 uarg[1] = (intptr_t) p->filename; /* const char * */
1981 iarg[2] = p->uid; /* l_uid16_t */
1982 iarg[3] = p->gid; /* l_gid16_t */
1983 iarg[4] = p->flag; /* l_int */
1987 /* linux_futimesat */
1989 struct linux_futimesat_args *p = params;
1990 iarg[0] = p->dfd; /* l_int */
1991 uarg[1] = (intptr_t) p->filename; /* char * */
1992 uarg[2] = (intptr_t) p->utimes; /* struct l_timeval * */
1996 /* linux_fstatat64 */
1998 struct linux_fstatat64_args *p = params;
1999 iarg[0] = p->dfd; /* l_int */
2000 uarg[1] = (intptr_t) p->pathname; /* char * */
2001 uarg[2] = (intptr_t) p->statbuf; /* struct l_stat64 * */
2002 iarg[3] = p->flag; /* l_int */
2006 /* linux_unlinkat */
2008 struct linux_unlinkat_args *p = params;
2009 iarg[0] = p->dfd; /* l_int */
2010 uarg[1] = (intptr_t) p->pathname; /* const char * */
2011 iarg[2] = p->flag; /* l_int */
2015 /* linux_renameat */
2017 struct linux_renameat_args *p = params;
2018 iarg[0] = p->olddfd; /* l_int */
2019 uarg[1] = (intptr_t) p->oldname; /* const char * */
2020 iarg[2] = p->newdfd; /* l_int */
2021 uarg[3] = (intptr_t) p->newname; /* const char * */
2027 struct linux_linkat_args *p = params;
2028 iarg[0] = p->olddfd; /* l_int */
2029 uarg[1] = (intptr_t) p->oldname; /* const char * */
2030 iarg[2] = p->newdfd; /* l_int */
2031 uarg[3] = (intptr_t) p->newname; /* const char * */
2032 iarg[4] = p->flag; /* l_int */
2036 /* linux_symlinkat */
2038 struct linux_symlinkat_args *p = params;
2039 uarg[0] = (intptr_t) p->oldname; /* const char * */
2040 iarg[1] = p->newdfd; /* l_int */
2041 uarg[2] = (intptr_t) p->newname; /* const char * */
2045 /* linux_readlinkat */
2047 struct linux_readlinkat_args *p = params;
2048 iarg[0] = p->dfd; /* l_int */
2049 uarg[1] = (intptr_t) p->path; /* const char * */
2050 uarg[2] = (intptr_t) p->buf; /* char * */
2051 iarg[3] = p->bufsiz; /* l_int */
2055 /* linux_fchmodat */
2057 struct linux_fchmodat_args *p = params;
2058 iarg[0] = p->dfd; /* l_int */
2059 uarg[1] = (intptr_t) p->filename; /* const char * */
2060 iarg[2] = p->mode; /* l_mode_t */
2064 /* linux_faccessat */
2066 struct linux_faccessat_args *p = params;
2067 iarg[0] = p->dfd; /* l_int */
2068 uarg[1] = (intptr_t) p->filename; /* const char * */
2069 iarg[2] = p->amode; /* l_int */
2070 iarg[3] = p->flag; /* int */
2074 /* linux_pselect6 */
2089 /* linux_set_robust_list */
2091 struct linux_set_robust_list_args *p = params;
2092 uarg[0] = (intptr_t) p->head; /* struct linux_robust_list_head * */
2093 iarg[1] = p->len; /* l_size_t */
2097 /* linux_get_robust_list */
2099 struct linux_get_robust_list_args *p = params;
2100 iarg[0] = p->pid; /* l_int */
2101 uarg[1] = (intptr_t) p->head; /* struct linux_robust_list_head * */
2102 uarg[2] = (intptr_t) p->len; /* l_size_t * */
2111 /* linux_sync_file_range */
2121 /* linux_vmsplice */
2126 /* linux_move_pages */
2136 /* linux_epoll_pwait */
2141 /* linux_utimensat */
2146 /* linux_signalfd */
2151 /* linux_timerfd_create */
2161 /* linux_fallocate */
2166 /* linux_timerfd_settime */
2171 /* linux_timerfd_gettime */
2176 /* linux_signalfd4 */
2181 /* linux_eventfd2 */
2186 /* linux_epoll_create1 */
2193 struct linux_dup3_args *p = params;
2194 iarg[0] = p->oldfd; /* l_int */
2195 iarg[1] = p->newfd; /* l_int */
2196 iarg[2] = p->flags; /* l_int */
2202 struct linux_pipe2_args *p = params;
2203 uarg[0] = (intptr_t) p->pipefds; /* l_int * */
2204 iarg[1] = p->flags; /* l_int */
2208 /* linux_inotify_init1 */
2223 /* linux_rt_tsigqueueinfo */
2228 /* linux_perf_event_open */
2233 /* linux_recvmmsg */
2238 /* linux_fanotify_init */
2243 /* linux_fanotify_mark */
2248 /* linux_prlimit64 */
2253 /* linux_name_to_handle_at */
2258 /* linux_open_by_handle_at */
2263 /* linux_clock_adjtime */
2273 /* linux_sendmmsg */
2283 /* linux_process_vm_readv */
2288 /* linux_process_vm_writev */
2299 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
2301 const char *p = NULL;
2303 #define nosys linux_nosys
2492 /* linux_lchown16 */
2515 p = "struct linux_stat *";
2562 /* linux_oldumount */
2572 /* linux_setuid16 */
2582 /* linux_getuid16 */
2627 p = "struct l_utimbuf *";
2732 p = "struct l_times_argv *";
2748 /* linux_setgid16 */
2758 /* linux_getgid16 */
2774 /* linux_geteuid16 */
2777 /* linux_getegid16 */
2848 /* linux_olduname */
2878 p = "struct l_ustat *";
2906 /* linux_sigaction */
2913 p = "l_osigaction_t *";
2916 p = "l_osigaction_t *";
2922 /* linux_sgetmask */
2925 /* linux_ssetmask */
2935 /* linux_setreuid16 */
2948 /* linux_setregid16 */
2961 /* linux_sigsuspend */
2977 /* linux_sigpending */
2981 p = "l_osigset_t *";
2987 /* linux_sethostname */
3000 /* linux_setrlimit */
3007 p = "struct l_rlimit *";
3013 /* linux_old_getrlimit */
3020 p = "struct l_rlimit *";
3026 /* linux_getrusage */
3033 p = "struct l_rusage *";
3039 /* linux_gettimeofday */
3043 p = "struct l_timeval *";
3046 p = "struct timezone *";
3052 /* linux_settimeofday */
3056 p = "struct l_timeval *";
3059 p = "struct timezone *";
3065 /* linux_getgroups16 */
3078 /* linux_setgroups16 */
3091 /* linux_old_select */
3095 p = "struct l_old_select_argv *";
3121 p = "struct linux_lstat *";
3127 /* linux_readlink */
3179 p = "struct l_dirent *";
3192 p = "struct l_mmap_argv *";
3211 /* linux_truncate */
3224 /* linux_ftruncate */
3266 /* linux_getpriority */
3302 p = "struct l_statfs_buf *";
3315 p = "struct l_statfs_buf *";
3321 /* linux_socketcall */
3350 /* linux_setitimer */
3357 p = "struct l_itimerval *";
3360 p = "struct l_itimerval *";
3366 /* linux_getitimer */
3373 p = "struct l_itimerval *";
3386 p = "struct l_newstat *";
3392 /* linux_newlstat */
3399 p = "struct l_newstat *";
3405 /* linux_newfstat */
3412 p = "struct l_newstat *";
3447 p = "struct l_rusage *";
3460 p = "struct l_sysinfo *";
3501 /* linux_sigreturn */
3505 p = "struct l_sigframe *";
3533 /* linux_setdomainname */
3546 /* linux_newuname */
3550 p = "struct l_new_utsname *";
3556 /* linux_adjtimex */
3559 /* linux_mprotect */
3575 /* linux_sigprocmask */
3582 p = "l_osigset_t *";
3585 p = "l_osigset_t *";
3591 /* linux_create_module */
3594 /* linux_init_module */
3597 /* linux_delete_module */
3600 /* linux_get_kernel_syms */
3603 /* linux_quotactl */
3645 /* linux_personality */
3655 /* linux_setfsuid16 */
3665 /* linux_setfsgid16 */
3697 /* linux_getdents */
3729 p = "struct l_timeval *";
3771 p = "struct l_iovec32 *";
3787 p = "struct l_iovec32 *";
3806 /* linux_fdatasync */
3820 p = "struct l___sysctl_args *";
3865 /* linux_sched_setparam */
3872 p = "struct l_sched_param *";
3878 /* linux_sched_getparam */
3885 p = "struct l_sched_param *";
3891 /* linux_sched_setscheduler */
3901 p = "struct l_sched_param *";
3907 /* linux_sched_getscheduler */
3920 /* linux_sched_get_priority_max */
3930 /* linux_sched_get_priority_min */
3940 /* linux_sched_rr_get_interval */
3947 p = "struct l_timespec *";
3953 /* linux_nanosleep */
3957 p = "const struct l_timespec *";
3960 p = "struct l_timespec *";
3988 /* linux_setresuid16 */
4004 /* linux_getresuid16 */
4020 /* linux_query_module */
4027 p = "struct pollfd *";
4039 /* linux_nfsservctl */
4042 /* linux_setresgid16 */
4058 /* linux_getresgid16 */
4096 /* linux_rt_sigreturn */
4100 p = "struct l_ucontext *";
4106 /* linux_rt_sigaction */
4113 p = "l_sigaction_t *";
4116 p = "l_sigaction_t *";
4125 /* linux_rt_sigprocmask */
4144 /* linux_rt_sigpending */
4157 /* linux_rt_sigtimedwait */
4164 p = "l_siginfo_t *";
4167 p = "struct l_timeval *";
4176 /* linux_rt_sigqueueinfo */
4186 p = "l_siginfo_t *";
4192 /* linux_rt_sigsuspend */
4276 p = "struct l_user_cap_header *";
4279 p = "struct l_user_cap_data *";
4289 p = "struct l_user_cap_header *";
4292 p = "struct l_user_cap_data *";
4298 /* linux_sigaltstack */
4311 /* linux_sendfile */
4317 /* linux_getrlimit */
4324 p = "struct l_rlimit *";
4355 /* linux_truncate64 */
4368 /* linux_ftruncate64 */
4388 p = "struct l_stat64 *";
4401 p = "struct l_stat64 *";
4414 p = "struct l_stat64 *";
4474 /* linux_getgroups */
4487 /* linux_setgroups */
4603 /* linux_setfsuid */
4613 /* linux_setfsgid */
4623 /* linux_pivot_root */
4668 /* linux_getdents64 */
4703 /* linux_setxattr */
4706 /* linux_lsetxattr */
4709 /* linux_fsetxattr */
4712 /* linux_getxattr */
4715 /* linux_lgetxattr */
4718 /* linux_fgetxattr */
4721 /* linux_listxattr */
4724 /* linux_llistxattr */
4727 /* linux_flistxattr */
4730 /* linux_removexattr */
4733 /* linux_lremovexattr */
4736 /* linux_fremovexattr */
4752 /* linux_sys_futex */
4765 p = "struct l_timespec *";
4777 /* linux_sched_setaffinity */
4793 /* linux_sched_getaffinity */
4809 /* linux_set_thread_area */
4813 p = "struct l_user_desc *";
4819 /* linux_fadvise64 */
4838 /* linux_exit_group */
4848 /* linux_lookup_dcookie */
4851 /* linux_epoll_create */
4854 /* linux_epoll_ctl */
4857 /* linux_epoll_wait */
4860 /* linux_remap_file_pages */
4863 /* linux_set_tid_address */
4873 /* linux_timer_create */
4880 p = "struct sigevent *";
4889 /* linux_timer_settime */
4899 p = "const struct itimerspec *";
4902 p = "struct itimerspec *";
4908 /* linux_timer_gettime */
4915 p = "struct itimerspec *";
4921 /* linux_timer_getoverrun */
4931 /* linux_timer_delete */
4941 /* linux_clock_settime */
4948 p = "struct l_timespec *";
4954 /* linux_clock_gettime */
4961 p = "struct l_timespec *";
4967 /* linux_clock_getres */
4974 p = "struct l_timespec *";
4980 /* linux_clock_nanosleep */
4990 p = "struct l_timespec *";
4993 p = "struct l_timespec *";
4999 /* linux_statfs64 */
5009 p = "struct l_statfs64_buf *";
5015 /* linux_fstatfs64 */
5041 p = "struct l_timeval *";
5047 /* linux_fadvise64_64 */
5069 /* linux_get_mempolicy */
5072 /* linux_set_mempolicy */
5078 /* linux_mq_unlink */
5081 /* linux_mq_timedsend */
5084 /* linux_mq_timedreceive */
5087 /* linux_mq_notify */
5090 /* linux_mq_getsetattr */
5093 /* linux_kexec_load */
5106 p = "l_siginfo_t *";
5112 p = "struct l_rusage *";
5121 /* linux_request_key */
5127 /* linux_ioprio_set */
5130 /* linux_ioprio_get */
5133 /* linux_inotify_init */
5136 /* linux_inotify_add_watch */
5139 /* linux_inotify_rm_watch */
5142 /* linux_migrate_pages */
5199 /* linux_fchownat */
5221 /* linux_futimesat */
5231 p = "struct l_timeval *";
5237 /* linux_fstatat64 */
5247 p = "struct l_stat64 *";
5256 /* linux_unlinkat */
5272 /* linux_renameat */
5313 /* linux_symlinkat */
5329 /* linux_readlinkat */
5348 /* linux_fchmodat */
5364 /* linux_faccessat */
5383 /* linux_pselect6 */
5392 /* linux_set_robust_list */
5396 p = "struct linux_robust_list_head *";
5405 /* linux_get_robust_list */
5412 p = "struct linux_robust_list_head *";
5424 /* linux_sync_file_range */
5430 /* linux_vmsplice */
5433 /* linux_move_pages */
5439 /* linux_epoll_pwait */
5442 /* linux_utimensat */
5445 /* linux_signalfd */
5448 /* linux_timerfd_create */
5454 /* linux_fallocate */
5457 /* linux_timerfd_settime */
5460 /* linux_timerfd_gettime */
5463 /* linux_signalfd4 */
5466 /* linux_eventfd2 */
5469 /* linux_epoll_create1 */
5501 /* linux_inotify_init1 */
5510 /* linux_rt_tsigqueueinfo */
5513 /* linux_perf_event_open */
5516 /* linux_recvmmsg */
5519 /* linux_fanotify_init */
5522 /* linux_fanotify_mark */
5525 /* linux_prlimit64 */
5528 /* linux_name_to_handle_at */
5531 /* linux_open_by_handle_at */
5534 /* linux_clock_adjtime */
5540 /* linux_sendmmsg */
5546 /* linux_process_vm_readv */
5549 /* linux_process_vm_writev */
5556 strlcpy(desc, p, descsz);
5559 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
5561 const char *p = NULL;
5563 #define nosys linux_nosys
5566 if (ndx == 0 || ndx == 1)
5573 if (ndx == 0 || ndx == 1)
5578 if (ndx == 0 || ndx == 1)
5583 if (ndx == 0 || ndx == 1)
5588 if (ndx == 0 || ndx == 1)
5593 if (ndx == 0 || ndx == 1)
5598 if (ndx == 0 || ndx == 1)
5603 if (ndx == 0 || ndx == 1)
5608 if (ndx == 0 || ndx == 1)
5613 if (ndx == 0 || ndx == 1)
5618 if (ndx == 0 || ndx == 1)
5623 if (ndx == 0 || ndx == 1)
5628 if (ndx == 0 || ndx == 1)
5633 if (ndx == 0 || ndx == 1)
5636 /* linux_lchown16 */
5638 if (ndx == 0 || ndx == 1)
5643 if (ndx == 0 || ndx == 1)
5648 if (ndx == 0 || ndx == 1)
5655 if (ndx == 0 || ndx == 1)
5658 /* linux_oldumount */
5660 if (ndx == 0 || ndx == 1)
5663 /* linux_setuid16 */
5665 if (ndx == 0 || ndx == 1)
5668 /* linux_getuid16 */
5674 if (ndx == 0 || ndx == 1)
5679 if (ndx == 0 || ndx == 1)
5686 if (ndx == 0 || ndx == 1)
5691 if (ndx == 0 || ndx == 1)
5696 if (ndx == 0 || ndx == 1)
5703 if (ndx == 0 || ndx == 1)
5708 if (ndx == 0 || ndx == 1)
5713 if (ndx == 0 || ndx == 1)
5718 if (ndx == 0 || ndx == 1)
5723 if (ndx == 0 || ndx == 1)
5728 if (ndx == 0 || ndx == 1)
5733 if (ndx == 0 || ndx == 1)
5738 if (ndx == 0 || ndx == 1)
5741 /* linux_setgid16 */
5743 if (ndx == 0 || ndx == 1)
5746 /* linux_getgid16 */
5750 if (ndx == 0 || ndx == 1)
5753 /* linux_geteuid16 */
5755 /* linux_getegid16 */
5759 if (ndx == 0 || ndx == 1)
5764 if (ndx == 0 || ndx == 1)
5769 if (ndx == 0 || ndx == 1)
5774 if (ndx == 0 || ndx == 1)
5779 if (ndx == 0 || ndx == 1)
5782 /* linux_olduname */
5786 if (ndx == 0 || ndx == 1)
5791 if (ndx == 0 || ndx == 1)
5796 if (ndx == 0 || ndx == 1)
5801 if (ndx == 0 || ndx == 1)
5810 /* linux_sigaction */
5812 if (ndx == 0 || ndx == 1)
5815 /* linux_sgetmask */
5817 /* linux_ssetmask */
5819 if (ndx == 0 || ndx == 1)
5822 /* linux_setreuid16 */
5824 if (ndx == 0 || ndx == 1)
5827 /* linux_setregid16 */
5829 if (ndx == 0 || ndx == 1)
5832 /* linux_sigsuspend */
5834 if (ndx == 0 || ndx == 1)
5837 /* linux_sigpending */
5839 if (ndx == 0 || ndx == 1)
5842 /* linux_sethostname */
5844 if (ndx == 0 || ndx == 1)
5847 /* linux_setrlimit */
5849 if (ndx == 0 || ndx == 1)
5852 /* linux_old_getrlimit */
5854 if (ndx == 0 || ndx == 1)
5857 /* linux_getrusage */
5859 if (ndx == 0 || ndx == 1)
5862 /* linux_gettimeofday */
5864 if (ndx == 0 || ndx == 1)
5867 /* linux_settimeofday */
5869 if (ndx == 0 || ndx == 1)
5872 /* linux_getgroups16 */
5874 if (ndx == 0 || ndx == 1)
5877 /* linux_setgroups16 */
5879 if (ndx == 0 || ndx == 1)
5882 /* linux_old_select */
5884 if (ndx == 0 || ndx == 1)
5889 if (ndx == 0 || ndx == 1)
5894 if (ndx == 0 || ndx == 1)
5897 /* linux_readlink */
5899 if (ndx == 0 || ndx == 1)
5904 if (ndx == 0 || ndx == 1)
5909 if (ndx == 0 || ndx == 1)
5914 if (ndx == 0 || ndx == 1)
5919 if (ndx == 0 || ndx == 1)
5924 if (ndx == 0 || ndx == 1)
5927 /* linux_truncate */
5929 if (ndx == 0 || ndx == 1)
5932 /* linux_ftruncate */
5934 if (ndx == 0 || ndx == 1)
5939 if (ndx == 0 || ndx == 1)
5944 if (ndx == 0 || ndx == 1)
5947 /* linux_getpriority */
5949 if (ndx == 0 || ndx == 1)
5954 if (ndx == 0 || ndx == 1)
5959 if (ndx == 0 || ndx == 1)
5964 if (ndx == 0 || ndx == 1)
5967 /* linux_socketcall */
5969 if (ndx == 0 || ndx == 1)
5974 if (ndx == 0 || ndx == 1)
5977 /* linux_setitimer */
5979 if (ndx == 0 || ndx == 1)
5982 /* linux_getitimer */
5984 if (ndx == 0 || ndx == 1)
5989 if (ndx == 0 || ndx == 1)
5992 /* linux_newlstat */
5994 if (ndx == 0 || ndx == 1)
5997 /* linux_newfstat */
5999 if (ndx == 0 || ndx == 1)
6006 if (ndx == 0 || ndx == 1)
6013 if (ndx == 0 || ndx == 1)
6020 if (ndx == 0 || ndx == 1)
6025 if (ndx == 0 || ndx == 1)
6030 if (ndx == 0 || ndx == 1)
6033 /* linux_sigreturn */
6035 if (ndx == 0 || ndx == 1)
6040 if (ndx == 0 || ndx == 1)
6043 /* linux_setdomainname */
6045 if (ndx == 0 || ndx == 1)
6048 /* linux_newuname */
6050 if (ndx == 0 || ndx == 1)
6053 /* linux_adjtimex */
6055 /* linux_mprotect */
6057 if (ndx == 0 || ndx == 1)
6060 /* linux_sigprocmask */
6062 if (ndx == 0 || ndx == 1)
6065 /* linux_create_module */
6067 /* linux_init_module */
6069 /* linux_delete_module */
6071 /* linux_get_kernel_syms */
6073 /* linux_quotactl */
6077 if (ndx == 0 || ndx == 1)
6082 if (ndx == 0 || ndx == 1)
6089 if (ndx == 0 || ndx == 1)
6092 /* linux_personality */
6094 if (ndx == 0 || ndx == 1)
6097 /* linux_setfsuid16 */
6099 if (ndx == 0 || ndx == 1)
6102 /* linux_setfsgid16 */
6104 if (ndx == 0 || ndx == 1)
6109 if (ndx == 0 || ndx == 1)
6112 /* linux_getdents */
6114 if (ndx == 0 || ndx == 1)
6119 if (ndx == 0 || ndx == 1)
6124 if (ndx == 0 || ndx == 1)
6129 if (ndx == 0 || ndx == 1)
6134 if (ndx == 0 || ndx == 1)
6139 if (ndx == 0 || ndx == 1)
6144 if (ndx == 0 || ndx == 1)
6147 /* linux_fdatasync */
6149 if (ndx == 0 || ndx == 1)
6154 if (ndx == 0 || ndx == 1)
6159 if (ndx == 0 || ndx == 1)
6164 if (ndx == 0 || ndx == 1)
6169 if (ndx == 0 || ndx == 1)
6174 /* linux_sched_setparam */
6176 if (ndx == 0 || ndx == 1)
6179 /* linux_sched_getparam */
6181 if (ndx == 0 || ndx == 1)
6184 /* linux_sched_setscheduler */
6186 if (ndx == 0 || ndx == 1)
6189 /* linux_sched_getscheduler */
6191 if (ndx == 0 || ndx == 1)
6196 /* linux_sched_get_priority_max */
6198 if (ndx == 0 || ndx == 1)
6201 /* linux_sched_get_priority_min */
6203 if (ndx == 0 || ndx == 1)
6206 /* linux_sched_rr_get_interval */
6208 if (ndx == 0 || ndx == 1)
6211 /* linux_nanosleep */
6213 if (ndx == 0 || ndx == 1)
6218 if (ndx == 0 || ndx == 1)
6221 /* linux_setresuid16 */
6223 if (ndx == 0 || ndx == 1)
6226 /* linux_getresuid16 */
6228 if (ndx == 0 || ndx == 1)
6231 /* linux_query_module */
6235 if (ndx == 0 || ndx == 1)
6238 /* linux_nfsservctl */
6240 /* linux_setresgid16 */
6242 if (ndx == 0 || ndx == 1)
6245 /* linux_getresgid16 */
6247 if (ndx == 0 || ndx == 1)
6252 if (ndx == 0 || ndx == 1)
6255 /* linux_rt_sigreturn */
6257 if (ndx == 0 || ndx == 1)
6260 /* linux_rt_sigaction */
6262 if (ndx == 0 || ndx == 1)
6265 /* linux_rt_sigprocmask */
6267 if (ndx == 0 || ndx == 1)
6270 /* linux_rt_sigpending */
6272 if (ndx == 0 || ndx == 1)
6275 /* linux_rt_sigtimedwait */
6277 if (ndx == 0 || ndx == 1)
6280 /* linux_rt_sigqueueinfo */
6282 if (ndx == 0 || ndx == 1)
6285 /* linux_rt_sigsuspend */
6287 if (ndx == 0 || ndx == 1)
6292 if (ndx == 0 || ndx == 1)
6297 if (ndx == 0 || ndx == 1)
6302 if (ndx == 0 || ndx == 1)
6307 if (ndx == 0 || ndx == 1)
6312 if (ndx == 0 || ndx == 1)
6317 if (ndx == 0 || ndx == 1)
6320 /* linux_sigaltstack */
6322 if (ndx == 0 || ndx == 1)
6325 /* linux_sendfile */
6329 /* linux_getrlimit */
6331 if (ndx == 0 || ndx == 1)
6336 if (ndx == 0 || ndx == 1)
6339 /* linux_truncate64 */
6341 if (ndx == 0 || ndx == 1)
6344 /* linux_ftruncate64 */
6346 if (ndx == 0 || ndx == 1)
6351 if (ndx == 0 || ndx == 1)
6356 if (ndx == 0 || ndx == 1)
6361 if (ndx == 0 || ndx == 1)
6366 if (ndx == 0 || ndx == 1)
6379 if (ndx == 0 || ndx == 1)
6384 if (ndx == 0 || ndx == 1)
6387 /* linux_getgroups */
6389 if (ndx == 0 || ndx == 1)
6392 /* linux_setgroups */
6394 if (ndx == 0 || ndx == 1)
6401 if (ndx == 0 || ndx == 1)
6406 if (ndx == 0 || ndx == 1)
6411 if (ndx == 0 || ndx == 1)
6416 if (ndx == 0 || ndx == 1)
6421 if (ndx == 0 || ndx == 1)
6426 if (ndx == 0 || ndx == 1)
6431 if (ndx == 0 || ndx == 1)
6434 /* linux_setfsuid */
6436 if (ndx == 0 || ndx == 1)
6439 /* linux_setfsgid */
6441 if (ndx == 0 || ndx == 1)
6444 /* linux_pivot_root */
6446 if (ndx == 0 || ndx == 1)
6451 if (ndx == 0 || ndx == 1)
6456 if (ndx == 0 || ndx == 1)
6459 /* linux_getdents64 */
6461 if (ndx == 0 || ndx == 1)
6466 if (ndx == 0 || ndx == 1)
6471 /* linux_setxattr */
6473 /* linux_lsetxattr */
6475 /* linux_fsetxattr */
6477 /* linux_getxattr */
6479 /* linux_lgetxattr */
6481 /* linux_fgetxattr */
6483 /* linux_listxattr */
6485 /* linux_llistxattr */
6487 /* linux_flistxattr */
6489 /* linux_removexattr */
6491 /* linux_lremovexattr */
6493 /* linux_fremovexattr */
6497 if (ndx == 0 || ndx == 1)
6500 /* linux_sys_futex */
6502 if (ndx == 0 || ndx == 1)
6505 /* linux_sched_setaffinity */
6507 if (ndx == 0 || ndx == 1)
6510 /* linux_sched_getaffinity */
6512 if (ndx == 0 || ndx == 1)
6515 /* linux_set_thread_area */
6517 if (ndx == 0 || ndx == 1)
6520 /* linux_fadvise64 */
6522 if (ndx == 0 || ndx == 1)
6525 /* linux_exit_group */
6527 if (ndx == 0 || ndx == 1)
6530 /* linux_lookup_dcookie */
6532 /* linux_epoll_create */
6534 /* linux_epoll_ctl */
6536 /* linux_epoll_wait */
6538 /* linux_remap_file_pages */
6540 /* linux_set_tid_address */
6542 if (ndx == 0 || ndx == 1)
6545 /* linux_timer_create */
6547 if (ndx == 0 || ndx == 1)
6550 /* linux_timer_settime */
6552 if (ndx == 0 || ndx == 1)
6555 /* linux_timer_gettime */
6557 if (ndx == 0 || ndx == 1)
6560 /* linux_timer_getoverrun */
6562 if (ndx == 0 || ndx == 1)
6565 /* linux_timer_delete */
6567 if (ndx == 0 || ndx == 1)
6570 /* linux_clock_settime */
6572 if (ndx == 0 || ndx == 1)
6575 /* linux_clock_gettime */
6577 if (ndx == 0 || ndx == 1)
6580 /* linux_clock_getres */
6582 if (ndx == 0 || ndx == 1)
6585 /* linux_clock_nanosleep */
6587 if (ndx == 0 || ndx == 1)
6590 /* linux_statfs64 */
6592 if (ndx == 0 || ndx == 1)
6595 /* linux_fstatfs64 */
6599 if (ndx == 0 || ndx == 1)
6604 if (ndx == 0 || ndx == 1)
6607 /* linux_fadvise64_64 */
6609 if (ndx == 0 || ndx == 1)
6614 /* linux_get_mempolicy */
6616 /* linux_set_mempolicy */
6620 /* linux_mq_unlink */
6622 /* linux_mq_timedsend */
6624 /* linux_mq_timedreceive */
6626 /* linux_mq_notify */
6628 /* linux_mq_getsetattr */
6630 /* linux_kexec_load */
6634 if (ndx == 0 || ndx == 1)
6639 /* linux_request_key */
6643 /* linux_ioprio_set */
6645 /* linux_ioprio_get */
6647 /* linux_inotify_init */
6649 /* linux_inotify_add_watch */
6651 /* linux_inotify_rm_watch */
6653 /* linux_migrate_pages */
6657 if (ndx == 0 || ndx == 1)
6662 if (ndx == 0 || ndx == 1)
6667 if (ndx == 0 || ndx == 1)
6670 /* linux_fchownat */
6672 if (ndx == 0 || ndx == 1)
6675 /* linux_futimesat */
6677 if (ndx == 0 || ndx == 1)
6680 /* linux_fstatat64 */
6682 if (ndx == 0 || ndx == 1)
6685 /* linux_unlinkat */
6687 if (ndx == 0 || ndx == 1)
6690 /* linux_renameat */
6692 if (ndx == 0 || ndx == 1)
6697 if (ndx == 0 || ndx == 1)
6700 /* linux_symlinkat */
6702 if (ndx == 0 || ndx == 1)
6705 /* linux_readlinkat */
6707 if (ndx == 0 || ndx == 1)
6710 /* linux_fchmodat */
6712 if (ndx == 0 || ndx == 1)
6715 /* linux_faccessat */
6717 if (ndx == 0 || ndx == 1)
6720 /* linux_pselect6 */
6726 /* linux_set_robust_list */
6728 if (ndx == 0 || ndx == 1)
6731 /* linux_get_robust_list */
6733 if (ndx == 0 || ndx == 1)
6738 /* linux_sync_file_range */
6742 /* linux_vmsplice */
6744 /* linux_move_pages */
6748 /* linux_epoll_pwait */
6750 /* linux_utimensat */
6752 /* linux_signalfd */
6754 /* linux_timerfd_create */
6758 /* linux_fallocate */
6760 /* linux_timerfd_settime */
6762 /* linux_timerfd_gettime */
6764 /* linux_signalfd4 */
6766 /* linux_eventfd2 */
6768 /* linux_epoll_create1 */
6772 if (ndx == 0 || ndx == 1)
6777 if (ndx == 0 || ndx == 1)
6780 /* linux_inotify_init1 */
6786 /* linux_rt_tsigqueueinfo */
6788 /* linux_perf_event_open */
6790 /* linux_recvmmsg */
6792 /* linux_fanotify_init */
6794 /* linux_fanotify_mark */
6796 /* linux_prlimit64 */
6798 /* linux_name_to_handle_at */
6800 /* linux_open_by_handle_at */
6802 /* linux_clock_adjtime */
6806 /* linux_sendmmsg */
6810 /* linux_process_vm_readv */
6812 /* linux_process_vm_writev */
6818 strlcpy(desc, p, descsz);