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 read_args *p = params;
18 iarg[0] = p->fd; /* int */
19 uarg[1] = (intptr_t) p->buf; /* char * */
20 uarg[2] = p->nbyte; /* u_int */
26 struct write_args *p = params;
27 iarg[0] = p->fd; /* int */
28 uarg[1] = (intptr_t) p->buf; /* char * */
29 uarg[2] = p->nbyte; /* u_int */
35 struct linux_open_args *p = params;
36 uarg[0] = (intptr_t) p->path; /* char * */
37 iarg[1] = p->flags; /* l_int */
38 iarg[2] = p->mode; /* l_int */
44 struct close_args *p = params;
45 iarg[0] = p->fd; /* int */
51 struct linux_newstat_args *p = params;
52 uarg[0] = (intptr_t) p->path; /* char * */
53 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
59 struct linux_newfstat_args *p = params;
60 iarg[0] = p->fd; /* l_uint */
61 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
67 struct linux_newlstat_args *p = params;
68 uarg[0] = (intptr_t) p->path; /* char * */
69 uarg[1] = (intptr_t) p->buf; /* struct l_newstat * */
75 struct poll_args *p = params;
76 uarg[0] = (intptr_t) p->fds; /* struct pollfd * */
77 uarg[1] = p->nfds; /* u_int */
78 iarg[2] = p->timeout; /* int */
84 struct linux_lseek_args *p = params;
85 iarg[0] = p->fdes; /* l_uint */
86 iarg[1] = p->off; /* l_off_t */
87 iarg[2] = p->whence; /* l_int */
93 struct linux_mmap2_args *p = params;
94 iarg[0] = p->addr; /* l_ulong */
95 iarg[1] = p->len; /* l_ulong */
96 iarg[2] = p->prot; /* l_ulong */
97 iarg[3] = p->flags; /* l_ulong */
98 iarg[4] = p->fd; /* l_ulong */
99 iarg[5] = p->pgoff; /* l_ulong */
105 struct linux_mprotect_args *p = params;
106 uarg[0] = (intptr_t) p->addr; /* caddr_t */
107 iarg[1] = p->len; /* int */
108 iarg[2] = p->prot; /* int */
114 struct munmap_args *p = params;
115 uarg[0] = (intptr_t) p->addr; /* caddr_t */
116 iarg[1] = p->len; /* int */
122 struct linux_brk_args *p = params;
123 iarg[0] = p->dsend; /* l_ulong */
127 /* linux_rt_sigaction */
129 struct linux_rt_sigaction_args *p = params;
130 iarg[0] = p->sig; /* l_int */
131 uarg[1] = (intptr_t) p->act; /* l_sigaction_t * */
132 uarg[2] = (intptr_t) p->oact; /* l_sigaction_t * */
133 iarg[3] = p->sigsetsize; /* l_size_t */
137 /* linux_rt_sigprocmask */
139 struct linux_rt_sigprocmask_args *p = params;
140 iarg[0] = p->how; /* l_int */
141 uarg[1] = (intptr_t) p->mask; /* l_sigset_t * */
142 uarg[2] = (intptr_t) p->omask; /* l_sigset_t * */
143 iarg[3] = p->sigsetsize; /* l_size_t */
147 /* linux_rt_sigreturn */
149 struct linux_rt_sigreturn_args *p = params;
150 uarg[0] = (intptr_t) p->ucp; /* struct l_ucontext * */
156 struct linux_ioctl_args *p = params;
157 iarg[0] = p->fd; /* l_uint */
158 iarg[1] = p->cmd; /* l_uint */
159 uarg[2] = p->arg; /* uintptr_t */
165 struct linux_pread_args *p = params;
166 iarg[0] = p->fd; /* l_uint */
167 uarg[1] = (intptr_t) p->buf; /* char * */
168 iarg[2] = p->nbyte; /* l_size_t */
169 iarg[3] = p->offset; /* l_loff_t */
175 struct linux_pwrite_args *p = params;
176 iarg[0] = p->fd; /* l_uint */
177 uarg[1] = (intptr_t) p->buf; /* char * */
178 iarg[2] = p->nbyte; /* l_size_t */
179 iarg[3] = p->offset; /* l_loff_t */
185 struct readv_args *p = params;
186 iarg[0] = p->fd; /* int */
187 uarg[1] = (intptr_t) p->iovp; /* struct iovec * */
188 uarg[2] = p->iovcnt; /* u_int */
194 struct writev_args *p = params;
195 iarg[0] = p->fd; /* int */
196 uarg[1] = (intptr_t) p->iovp; /* struct iovec * */
197 uarg[2] = p->iovcnt; /* u_int */
203 struct linux_access_args *p = params;
204 uarg[0] = (intptr_t) p->path; /* char * */
205 iarg[1] = p->amode; /* l_int */
211 struct linux_pipe_args *p = params;
212 uarg[0] = (intptr_t) p->pipefds; /* l_ulong * */
218 struct linux_select_args *p = params;
219 iarg[0] = p->nfds; /* l_int */
220 uarg[1] = (intptr_t) p->readfds; /* l_fd_set * */
221 uarg[2] = (intptr_t) p->writefds; /* l_fd_set * */
222 uarg[3] = (intptr_t) p->exceptfds; /* l_fd_set * */
223 uarg[4] = (intptr_t) p->timeout; /* struct l_timeval * */
234 struct linux_mremap_args *p = params;
235 iarg[0] = p->addr; /* l_ulong */
236 iarg[1] = p->old_len; /* l_ulong */
237 iarg[2] = p->new_len; /* l_ulong */
238 iarg[3] = p->flags; /* l_ulong */
239 iarg[4] = p->new_addr; /* l_ulong */
245 struct linux_msync_args *p = params;
246 iarg[0] = p->addr; /* l_ulong */
247 iarg[1] = p->len; /* l_size_t */
248 iarg[2] = p->fl; /* l_int */
254 struct linux_mincore_args *p = params;
255 iarg[0] = p->start; /* l_ulong */
256 iarg[1] = p->len; /* l_size_t */
257 uarg[2] = (intptr_t) p->vec; /* u_char * */
263 struct madvise_args *p = params;
264 uarg[0] = (intptr_t) p->addr; /* void * */
265 uarg[1] = p->len; /* size_t */
266 iarg[2] = p->behav; /* int */
272 struct linux_shmget_args *p = params;
273 iarg[0] = p->key; /* l_key_t */
274 iarg[1] = p->size; /* l_size_t */
275 iarg[2] = p->shmflg; /* l_int */
281 struct linux_shmat_args *p = params;
282 iarg[0] = p->shmid; /* l_int */
283 uarg[1] = (intptr_t) p->shmaddr; /* char * */
284 iarg[2] = p->shmflg; /* l_int */
290 struct linux_shmctl_args *p = params;
291 iarg[0] = p->shmid; /* l_int */
292 iarg[1] = p->cmd; /* l_int */
293 uarg[2] = (intptr_t) p->buf; /* struct l_shmid_ds * */
299 struct dup_args *p = params;
300 uarg[0] = p->fd; /* u_int */
306 struct dup2_args *p = params;
307 uarg[0] = p->from; /* u_int */
308 uarg[1] = p->to; /* u_int */
317 /* linux_nanosleep */
319 struct linux_nanosleep_args *p = params;
320 uarg[0] = (intptr_t) p->rqtp; /* const struct l_timespec * */
321 uarg[1] = (intptr_t) p->rmtp; /* struct l_timespec * */
325 /* linux_getitimer */
327 struct linux_getitimer_args *p = params;
328 iarg[0] = p->which; /* l_int */
329 uarg[1] = (intptr_t) p->itv; /* struct l_itimerval * */
335 struct linux_alarm_args *p = params;
336 iarg[0] = p->secs; /* l_uint */
340 /* linux_setitimer */
342 struct linux_setitimer_args *p = params;
343 iarg[0] = p->which; /* l_int */
344 uarg[1] = (intptr_t) p->itv; /* struct l_itimerval * */
345 uarg[2] = (intptr_t) p->oitv; /* struct l_itimerval * */
356 struct linux_sendfile_args *p = params;
357 iarg[0] = p->out; /* int */
358 iarg[1] = p->in; /* int */
359 uarg[2] = (intptr_t) p->offset; /* l_long * */
360 iarg[3] = p->count; /* l_size_t */
366 struct linux_socket_args *p = params;
367 iarg[0] = p->domain; /* l_int */
368 iarg[1] = p->type; /* l_int */
369 iarg[2] = p->protocol; /* l_int */
375 struct linux_connect_args *p = params;
376 iarg[0] = p->s; /* l_int */
377 iarg[1] = p->name; /* l_uintptr_t */
378 iarg[2] = p->namelen; /* l_int */
384 struct linux_accept_args *p = params;
385 iarg[0] = p->s; /* l_int */
386 iarg[1] = p->addr; /* l_uintptr_t */
387 iarg[2] = p->namelen; /* l_uintptr_t */
393 struct linux_sendto_args *p = params;
394 iarg[0] = p->s; /* l_int */
395 iarg[1] = p->msg; /* l_uintptr_t */
396 iarg[2] = p->len; /* l_int */
397 iarg[3] = p->flags; /* l_int */
398 iarg[4] = p->to; /* l_uintptr_t */
399 iarg[5] = p->tolen; /* l_int */
405 struct linux_recvfrom_args *p = params;
406 iarg[0] = p->s; /* l_int */
407 iarg[1] = p->buf; /* l_uintptr_t */
408 iarg[2] = p->len; /* l_size_t */
409 iarg[3] = p->flags; /* l_int */
410 iarg[4] = p->from; /* l_uintptr_t */
411 iarg[5] = p->fromlen; /* l_uintptr_t */
417 struct linux_sendmsg_args *p = params;
418 iarg[0] = p->s; /* l_int */
419 iarg[1] = p->msg; /* l_uintptr_t */
420 iarg[2] = p->flags; /* l_int */
426 struct linux_recvmsg_args *p = params;
427 iarg[0] = p->s; /* l_int */
428 iarg[1] = p->msg; /* l_uintptr_t */
429 iarg[2] = p->flags; /* l_int */
435 struct linux_shutdown_args *p = params;
436 iarg[0] = p->s; /* l_int */
437 iarg[1] = p->how; /* l_int */
443 struct linux_bind_args *p = params;
444 iarg[0] = p->s; /* l_int */
445 iarg[1] = p->name; /* l_uintptr_t */
446 iarg[2] = p->namelen; /* l_int */
452 struct linux_listen_args *p = params;
453 iarg[0] = p->s; /* l_int */
454 iarg[1] = p->backlog; /* l_int */
458 /* linux_getsockname */
460 struct linux_getsockname_args *p = params;
461 iarg[0] = p->s; /* l_int */
462 iarg[1] = p->addr; /* l_uintptr_t */
463 iarg[2] = p->namelen; /* l_uintptr_t */
467 /* linux_getpeername */
469 struct linux_getpeername_args *p = params;
470 iarg[0] = p->s; /* l_int */
471 iarg[1] = p->addr; /* l_uintptr_t */
472 iarg[2] = p->namelen; /* l_uintptr_t */
476 /* linux_socketpair */
478 struct linux_socketpair_args *p = params;
479 iarg[0] = p->domain; /* l_int */
480 iarg[1] = p->type; /* l_int */
481 iarg[2] = p->protocol; /* l_int */
482 iarg[3] = p->rsv; /* l_uintptr_t */
486 /* linux_setsockopt */
488 struct linux_setsockopt_args *p = params;
489 iarg[0] = p->s; /* l_int */
490 iarg[1] = p->level; /* l_int */
491 iarg[2] = p->optname; /* l_int */
492 iarg[3] = p->optval; /* l_uintptr_t */
493 iarg[4] = p->optlen; /* l_int */
497 /* linux_getsockopt */
499 struct linux_getsockopt_args *p = params;
500 iarg[0] = p->s; /* l_int */
501 iarg[1] = p->level; /* l_int */
502 iarg[2] = p->optname; /* l_int */
503 iarg[3] = p->optval; /* l_uintptr_t */
504 iarg[4] = p->optlen; /* l_uintptr_t */
510 struct linux_clone_args *p = params;
511 iarg[0] = p->flags; /* l_int */
512 uarg[1] = (intptr_t) p->stack; /* void * */
513 uarg[2] = (intptr_t) p->parent_tidptr; /* void * */
514 uarg[3] = (intptr_t) p->child_tidptr; /* void * */
515 uarg[4] = (intptr_t) p->tls; /* void * */
531 struct linux_execve_args *p = params;
532 uarg[0] = (intptr_t) p->path; /* char * */
533 uarg[1] = (intptr_t) p->argp; /* char ** */
534 uarg[2] = (intptr_t) p->envp; /* char ** */
540 struct linux_exit_args *p = params;
541 iarg[0] = p->rval; /* int */
547 struct linux_wait4_args *p = params;
548 iarg[0] = p->pid; /* l_pid_t */
549 uarg[1] = (intptr_t) p->status; /* l_int * */
550 iarg[2] = p->options; /* l_int */
551 uarg[3] = (intptr_t) p->rusage; /* struct rusage * */
557 struct linux_kill_args *p = params;
558 iarg[0] = p->pid; /* l_int */
559 iarg[1] = p->signum; /* l_int */
565 struct linux_newuname_args *p = params;
566 uarg[0] = (intptr_t) p->buf; /* struct l_new_utsname * */
572 struct linux_semget_args *p = params;
573 iarg[0] = p->key; /* l_key_t */
574 iarg[1] = p->nsems; /* l_int */
575 iarg[2] = p->semflg; /* l_int */
581 struct linux_semop_args *p = params;
582 iarg[0] = p->semid; /* l_int */
583 uarg[1] = (intptr_t) p->tsops; /* struct l_sembuf * */
584 iarg[2] = p->nsops; /* l_uint */
590 struct linux_semctl_args *p = params;
591 iarg[0] = p->semid; /* l_int */
592 iarg[1] = p->semnum; /* l_int */
593 iarg[2] = p->cmd; /* l_int */
594 uarg[3] = p->arg.buf; /* union l_semun */
600 struct linux_shmdt_args *p = params;
601 uarg[0] = (intptr_t) p->shmaddr; /* char * */
607 struct linux_msgget_args *p = params;
608 iarg[0] = p->key; /* l_key_t */
609 iarg[1] = p->msgflg; /* l_int */
615 struct linux_msgsnd_args *p = params;
616 iarg[0] = p->msqid; /* l_int */
617 uarg[1] = (intptr_t) p->msgp; /* struct l_msgbuf * */
618 iarg[2] = p->msgsz; /* l_size_t */
619 iarg[3] = p->msgflg; /* l_int */
625 struct linux_msgrcv_args *p = params;
626 iarg[0] = p->msqid; /* l_int */
627 uarg[1] = (intptr_t) p->msgp; /* struct l_msgbuf * */
628 iarg[2] = p->msgsz; /* l_size_t */
629 iarg[3] = p->msgtyp; /* l_long */
630 iarg[4] = p->msgflg; /* l_int */
636 struct linux_msgctl_args *p = params;
637 iarg[0] = p->msqid; /* l_int */
638 iarg[1] = p->cmd; /* l_int */
639 uarg[2] = (intptr_t) p->buf; /* struct l_msqid_ds * */
645 struct linux_fcntl_args *p = params;
646 iarg[0] = p->fd; /* l_uint */
647 iarg[1] = p->cmd; /* l_uint */
648 iarg[2] = p->arg; /* l_ulong */
654 struct flock_args *p = params;
655 iarg[0] = p->fd; /* int */
656 iarg[1] = p->how; /* int */
662 struct fsync_args *p = params;
663 iarg[0] = p->fd; /* int */
667 /* linux_fdatasync */
669 struct linux_fdatasync_args *p = params;
670 iarg[0] = p->fd; /* l_uint */
676 struct linux_truncate_args *p = params;
677 uarg[0] = (intptr_t) p->path; /* char * */
678 iarg[1] = p->length; /* l_ulong */
682 /* linux_ftruncate */
684 struct linux_ftruncate_args *p = params;
685 iarg[0] = p->fd; /* l_int */
686 iarg[1] = p->length; /* l_long */
692 struct linux_getdents_args *p = params;
693 iarg[0] = p->fd; /* l_uint */
694 uarg[1] = (intptr_t) p->dent; /* void * */
695 iarg[2] = p->count; /* l_uint */
701 struct linux_getcwd_args *p = params;
702 uarg[0] = (intptr_t) p->buf; /* char * */
703 iarg[1] = p->bufsize; /* l_ulong */
709 struct linux_chdir_args *p = params;
710 uarg[0] = (intptr_t) p->path; /* char * */
716 struct fchdir_args *p = params;
717 iarg[0] = p->fd; /* int */
723 struct linux_rename_args *p = params;
724 uarg[0] = (intptr_t) p->from; /* char * */
725 uarg[1] = (intptr_t) p->to; /* char * */
731 struct linux_mkdir_args *p = params;
732 uarg[0] = (intptr_t) p->path; /* char * */
733 iarg[1] = p->mode; /* l_int */
739 struct linux_rmdir_args *p = params;
740 uarg[0] = (intptr_t) p->path; /* char * */
746 struct linux_creat_args *p = params;
747 uarg[0] = (intptr_t) p->path; /* char * */
748 iarg[1] = p->mode; /* l_int */
754 struct linux_link_args *p = params;
755 uarg[0] = (intptr_t) p->path; /* char * */
756 uarg[1] = (intptr_t) p->to; /* char * */
762 struct linux_unlink_args *p = params;
763 uarg[0] = (intptr_t) p->path; /* char * */
769 struct linux_symlink_args *p = params;
770 uarg[0] = (intptr_t) p->path; /* char * */
771 uarg[1] = (intptr_t) p->to; /* char * */
777 struct linux_readlink_args *p = params;
778 uarg[0] = (intptr_t) p->name; /* char * */
779 uarg[1] = (intptr_t) p->buf; /* char * */
780 iarg[2] = p->count; /* l_int */
786 struct linux_chmod_args *p = params;
787 uarg[0] = (intptr_t) p->path; /* char * */
788 iarg[1] = p->mode; /* l_mode_t */
794 struct fchmod_args *p = params;
795 iarg[0] = p->fd; /* int */
796 iarg[1] = p->mode; /* int */
802 struct linux_chown_args *p = params;
803 uarg[0] = (intptr_t) p->path; /* char * */
804 iarg[1] = p->uid; /* l_uid_t */
805 iarg[2] = p->gid; /* l_gid_t */
811 struct fchown_args *p = params;
812 iarg[0] = p->fd; /* int */
813 iarg[1] = p->uid; /* int */
814 iarg[2] = p->gid; /* int */
820 struct linux_lchown_args *p = params;
821 uarg[0] = (intptr_t) p->path; /* char * */
822 iarg[1] = p->uid; /* l_uid_t */
823 iarg[2] = p->gid; /* l_gid_t */
829 struct umask_args *p = params;
830 iarg[0] = p->newmask; /* int */
836 struct gettimeofday_args *p = params;
837 uarg[0] = (intptr_t) p->tp; /* struct l_timeval * */
838 uarg[1] = (intptr_t) p->tzp; /* struct timezone * */
842 /* linux_getrlimit */
844 struct linux_getrlimit_args *p = params;
845 iarg[0] = p->resource; /* l_uint */
846 uarg[1] = (intptr_t) p->rlim; /* struct l_rlimit * */
852 struct getrusage_args *p = params;
853 iarg[0] = p->who; /* int */
854 uarg[1] = (intptr_t) p->rusage; /* struct rusage * */
860 struct linux_sysinfo_args *p = params;
861 uarg[0] = (intptr_t) p->info; /* struct l_sysinfo * */
867 struct linux_times_args *p = params;
868 uarg[0] = (intptr_t) p->buf; /* struct l_times_argv * */
874 struct linux_ptrace_args *p = params;
875 iarg[0] = p->req; /* l_long */
876 iarg[1] = p->pid; /* l_long */
877 iarg[2] = p->addr; /* l_long */
878 iarg[3] = p->data; /* l_long */
889 struct linux_syslog_args *p = params;
890 iarg[0] = p->type; /* l_int */
891 uarg[1] = (intptr_t) p->buf; /* char * */
892 iarg[2] = p->len; /* l_int */
903 struct setuid_args *p = params;
904 uarg[0] = p->uid; /* uid_t */
910 struct setgid_args *p = params;
911 iarg[0] = p->gid; /* gid_t */
927 struct setpgid_args *p = params;
928 iarg[0] = p->pid; /* int */
929 iarg[1] = p->pgid; /* int */
950 struct setreuid_args *p = params;
951 uarg[0] = p->ruid; /* uid_t */
952 uarg[1] = p->euid; /* uid_t */
958 struct setregid_args *p = params;
959 iarg[0] = p->rgid; /* gid_t */
960 iarg[1] = p->egid; /* gid_t */
964 /* linux_getgroups */
966 struct linux_getgroups_args *p = params;
967 iarg[0] = p->gidsetsize; /* l_int */
968 uarg[1] = (intptr_t) p->grouplist; /* l_gid_t * */
972 /* linux_setgroups */
974 struct linux_setgroups_args *p = params;
975 iarg[0] = p->gidsetsize; /* l_int */
976 uarg[1] = (intptr_t) p->grouplist; /* l_gid_t * */
982 struct setresuid_args *p = params;
983 uarg[0] = p->ruid; /* uid_t */
984 uarg[1] = p->euid; /* uid_t */
985 uarg[2] = p->suid; /* uid_t */
991 struct getresuid_args *p = params;
992 uarg[0] = (intptr_t) p->ruid; /* uid_t * */
993 uarg[1] = (intptr_t) p->euid; /* uid_t * */
994 uarg[2] = (intptr_t) p->suid; /* uid_t * */
1000 struct setresgid_args *p = params;
1001 iarg[0] = p->rgid; /* gid_t */
1002 iarg[1] = p->egid; /* gid_t */
1003 iarg[2] = p->sgid; /* gid_t */
1009 struct getresgid_args *p = params;
1010 uarg[0] = (intptr_t) p->rgid; /* gid_t * */
1011 uarg[1] = (intptr_t) p->egid; /* gid_t * */
1012 uarg[2] = (intptr_t) p->sgid; /* gid_t * */
1018 struct getpgid_args *p = params;
1019 iarg[0] = p->pid; /* int */
1023 /* linux_setfsuid */
1025 struct linux_setfsuid_args *p = params;
1026 iarg[0] = p->uid; /* l_uid_t */
1030 /* linux_setfsgid */
1032 struct linux_setfsgid_args *p = params;
1033 iarg[0] = p->gid; /* l_gid_t */
1039 struct linux_getsid_args *p = params;
1040 iarg[0] = p->pid; /* l_pid_t */
1046 struct linux_capget_args *p = params;
1047 uarg[0] = (intptr_t) p->hdrp; /* struct l_user_cap_header * */
1048 uarg[1] = (intptr_t) p->datap; /* struct l_user_cap_data * */
1054 struct linux_capset_args *p = params;
1055 uarg[0] = (intptr_t) p->hdrp; /* struct l_user_cap_header * */
1056 uarg[1] = (intptr_t) p->datap; /* struct l_user_cap_data * */
1060 /* linux_rt_sigpending */
1062 struct linux_rt_sigpending_args *p = params;
1063 uarg[0] = (intptr_t) p->set; /* l_sigset_t * */
1064 iarg[1] = p->sigsetsize; /* l_size_t */
1068 /* linux_rt_sigtimedwait */
1070 struct linux_rt_sigtimedwait_args *p = params;
1071 uarg[0] = (intptr_t) p->mask; /* l_sigset_t * */
1072 uarg[1] = (intptr_t) p->ptr; /* l_siginfo_t * */
1073 uarg[2] = (intptr_t) p->timeout; /* struct l_timeval * */
1074 iarg[3] = p->sigsetsize; /* l_size_t */
1078 /* linux_rt_sigqueueinfo */
1080 struct linux_rt_sigqueueinfo_args *p = params;
1081 iarg[0] = p->pid; /* l_pid_t */
1082 iarg[1] = p->sig; /* l_int */
1083 uarg[2] = (intptr_t) p->info; /* l_siginfo_t * */
1087 /* linux_rt_sigsuspend */
1089 struct linux_rt_sigsuspend_args *p = params;
1090 uarg[0] = (intptr_t) p->newset; /* l_sigset_t * */
1091 iarg[1] = p->sigsetsize; /* l_size_t */
1095 /* linux_sigaltstack */
1097 struct linux_sigaltstack_args *p = params;
1098 uarg[0] = (intptr_t) p->uss; /* l_stack_t * */
1099 uarg[1] = (intptr_t) p->uoss; /* l_stack_t * */
1105 struct linux_utime_args *p = params;
1106 uarg[0] = (intptr_t) p->fname; /* char * */
1107 uarg[1] = (intptr_t) p->times; /* struct l_utimbuf * */
1113 struct linux_mknod_args *p = params;
1114 uarg[0] = (intptr_t) p->path; /* char * */
1115 iarg[1] = p->mode; /* l_int */
1116 iarg[2] = p->dev; /* l_dev_t */
1120 /* linux_personality */
1122 struct linux_personality_args *p = params;
1123 iarg[0] = p->per; /* l_ulong */
1129 struct linux_ustat_args *p = params;
1130 iarg[0] = p->dev; /* l_dev_t */
1131 uarg[1] = (intptr_t) p->ubuf; /* struct l_ustat * */
1137 struct linux_statfs_args *p = params;
1138 uarg[0] = (intptr_t) p->path; /* char * */
1139 uarg[1] = (intptr_t) p->buf; /* struct l_statfs_buf * */
1145 struct linux_fstatfs_args *p = params;
1146 iarg[0] = p->fd; /* l_uint */
1147 uarg[1] = (intptr_t) p->buf; /* struct l_statfs_buf * */
1153 struct linux_sysfs_args *p = params;
1154 iarg[0] = p->option; /* l_int */
1155 iarg[1] = p->arg1; /* l_ulong */
1156 iarg[2] = p->arg2; /* l_ulong */
1160 /* linux_getpriority */
1162 struct linux_getpriority_args *p = params;
1163 iarg[0] = p->which; /* int */
1164 iarg[1] = p->who; /* int */
1170 struct setpriority_args *p = params;
1171 iarg[0] = p->which; /* int */
1172 iarg[1] = p->who; /* int */
1173 iarg[2] = p->prio; /* int */
1177 /* linux_sched_setparam */
1179 struct linux_sched_setparam_args *p = params;
1180 iarg[0] = p->pid; /* l_pid_t */
1181 uarg[1] = (intptr_t) p->param; /* struct l_sched_param * */
1185 /* linux_sched_getparam */
1187 struct linux_sched_getparam_args *p = params;
1188 iarg[0] = p->pid; /* l_pid_t */
1189 uarg[1] = (intptr_t) p->param; /* struct l_sched_param * */
1193 /* linux_sched_setscheduler */
1195 struct linux_sched_setscheduler_args *p = params;
1196 iarg[0] = p->pid; /* l_pid_t */
1197 iarg[1] = p->policy; /* l_int */
1198 uarg[2] = (intptr_t) p->param; /* struct l_sched_param * */
1202 /* linux_sched_getscheduler */
1204 struct linux_sched_getscheduler_args *p = params;
1205 iarg[0] = p->pid; /* l_pid_t */
1209 /* linux_sched_get_priority_max */
1211 struct linux_sched_get_priority_max_args *p = params;
1212 iarg[0] = p->policy; /* l_int */
1216 /* linux_sched_get_priority_min */
1218 struct linux_sched_get_priority_min_args *p = params;
1219 iarg[0] = p->policy; /* l_int */
1223 /* linux_sched_rr_get_interval */
1225 struct linux_sched_rr_get_interval_args *p = params;
1226 iarg[0] = p->pid; /* l_pid_t */
1227 uarg[1] = (intptr_t) p->interval; /* struct l_timespec * */
1233 struct mlock_args *p = params;
1234 uarg[0] = (intptr_t) p->addr; /* const void * */
1235 uarg[1] = p->len; /* size_t */
1241 struct munlock_args *p = params;
1242 uarg[0] = (intptr_t) p->addr; /* const void * */
1243 uarg[1] = p->len; /* size_t */
1249 struct mlockall_args *p = params;
1250 iarg[0] = p->how; /* int */
1264 /* linux_pivot_root */
1271 struct linux_sysctl_args *p = params;
1272 uarg[0] = (intptr_t) p->args; /* struct l___sysctl_args * */
1278 struct linux_prctl_args *p = params;
1279 iarg[0] = p->option; /* l_int */
1280 iarg[1] = p->arg2; /* l_uintptr_t */
1281 iarg[2] = p->arg3; /* l_uintptr_t */
1282 iarg[3] = p->arg4; /* l_uintptr_t */
1283 iarg[4] = p->arg5; /* l_uintptr_t */
1287 /* linux_arch_prctl */
1289 struct linux_arch_prctl_args *p = params;
1290 iarg[0] = p->code; /* l_int */
1291 iarg[1] = p->addr; /* l_ulong */
1295 /* linux_adjtimex */
1300 /* linux_setrlimit */
1302 struct linux_setrlimit_args *p = params;
1303 iarg[0] = p->resource; /* l_uint */
1304 uarg[1] = (intptr_t) p->rlim; /* struct l_rlimit * */
1310 struct chroot_args *p = params;
1311 uarg[0] = (intptr_t) p->path; /* char * */
1322 struct acct_args *p = params;
1323 uarg[0] = (intptr_t) p->path; /* char * */
1329 struct settimeofday_args *p = params;
1330 uarg[0] = (intptr_t) p->tv; /* struct l_timeval * */
1331 uarg[1] = (intptr_t) p->tzp; /* struct timezone * */
1337 struct linux_mount_args *p = params;
1338 uarg[0] = (intptr_t) p->specialfile; /* char * */
1339 uarg[1] = (intptr_t) p->dir; /* char * */
1340 uarg[2] = (intptr_t) p->filesystemtype; /* char * */
1341 iarg[3] = p->rwflag; /* l_ulong */
1342 uarg[4] = (intptr_t) p->data; /* void * */
1348 struct linux_umount_args *p = params;
1349 uarg[0] = (intptr_t) p->path; /* char * */
1350 iarg[1] = p->flags; /* l_int */
1356 struct swapon_args *p = params;
1357 uarg[0] = (intptr_t) p->name; /* char * */
1368 struct linux_reboot_args *p = params;
1369 iarg[0] = p->magic1; /* l_int */
1370 iarg[1] = p->magic2; /* l_int */
1371 iarg[2] = p->cmd; /* l_uint */
1372 uarg[3] = (intptr_t) p->arg; /* void * */
1376 /* linux_sethostname */
1378 struct linux_sethostname_args *p = params;
1379 uarg[0] = (intptr_t) p->hostname; /* char * */
1380 iarg[1] = p->len; /* l_uint */
1384 /* linux_setdomainname */
1386 struct linux_setdomainname_args *p = params;
1387 uarg[0] = (intptr_t) p->name; /* char * */
1388 iarg[1] = p->len; /* l_int */
1394 struct linux_iopl_args *p = params;
1395 iarg[0] = p->level; /* l_uint */
1399 /* linux_create_module */
1404 /* linux_init_module */
1409 /* linux_delete_module */
1414 /* linux_get_kernel_syms */
1419 /* linux_query_module */
1424 /* linux_quotactl */
1429 /* linux_nfsservctl */
1444 /* linux_afs_syscall */
1454 /* linux_security */
1464 /* linux_setxattr */
1469 /* linux_lsetxattr */
1474 /* linux_fsetxattr */
1479 /* linux_getxattr */
1484 /* linux_lgetxattr */
1489 /* linux_fgetxattr */
1494 /* linux_listxattr */
1499 /* linux_llistxattr */
1504 /* linux_flistxattr */
1509 /* linux_removexattr */
1514 /* linux_lremovexattr */
1519 /* linux_fremovexattr */
1526 struct linux_tkill_args *p = params;
1527 iarg[0] = p->tid; /* int */
1528 iarg[1] = p->sig; /* int */
1534 struct linux_time_args *p = params;
1535 uarg[0] = (intptr_t) p->tm; /* l_time_t * */
1539 /* linux_sys_futex */
1541 struct linux_sys_futex_args *p = params;
1542 uarg[0] = (intptr_t) p->uaddr; /* void * */
1543 iarg[1] = p->op; /* int */
1544 iarg[2] = p->val; /* int */
1545 uarg[3] = (intptr_t) p->timeout; /* struct l_timespec * */
1546 uarg[4] = (intptr_t) p->uaddr2; /* void * */
1547 iarg[5] = p->val3; /* int */
1551 /* linux_sched_setaffinity */
1553 struct linux_sched_setaffinity_args *p = params;
1554 iarg[0] = p->pid; /* l_pid_t */
1555 iarg[1] = p->len; /* l_uint */
1556 uarg[2] = (intptr_t) p->user_mask_ptr; /* l_ulong * */
1560 /* linux_sched_getaffinity */
1562 struct linux_sched_getaffinity_args *p = params;
1563 iarg[0] = p->pid; /* l_pid_t */
1564 iarg[1] = p->len; /* l_uint */
1565 uarg[2] = (intptr_t) p->user_mask_ptr; /* l_ulong * */
1569 /* linux_set_thread_area */
1574 /* linux_lookup_dcookie */
1579 /* linux_epoll_create */
1581 struct linux_epoll_create_args *p = params;
1582 iarg[0] = p->size; /* l_int */
1586 /* linux_epoll_ctl_old */
1591 /* linux_epoll_wait_old */
1596 /* linux_remap_file_pages */
1601 /* linux_getdents64 */
1603 struct linux_getdents64_args *p = params;
1604 iarg[0] = p->fd; /* l_uint */
1605 uarg[1] = (intptr_t) p->dirent; /* void * */
1606 iarg[2] = p->count; /* l_uint */
1610 /* linux_set_tid_address */
1612 struct linux_set_tid_address_args *p = params;
1613 uarg[0] = (intptr_t) p->tidptr; /* int * */
1617 /* linux_semtimedop */
1622 /* linux_fadvise64 */
1624 struct linux_fadvise64_args *p = params;
1625 iarg[0] = p->fd; /* int */
1626 iarg[1] = p->offset; /* l_loff_t */
1627 iarg[2] = p->len; /* l_size_t */
1628 iarg[3] = p->advice; /* int */
1632 /* linux_timer_create */
1634 struct linux_timer_create_args *p = params;
1635 iarg[0] = p->clock_id; /* clockid_t */
1636 uarg[1] = (intptr_t) p->evp; /* struct sigevent * */
1637 uarg[2] = (intptr_t) p->timerid; /* l_timer_t * */
1641 /* linux_timer_settime */
1643 struct linux_timer_settime_args *p = params;
1644 iarg[0] = p->timerid; /* l_timer_t */
1645 iarg[1] = p->flags; /* l_int */
1646 uarg[2] = (intptr_t) p->new; /* const struct itimerspec * */
1647 uarg[3] = (intptr_t) p->old; /* struct itimerspec * */
1651 /* linux_timer_gettime */
1653 struct linux_timer_gettime_args *p = params;
1654 iarg[0] = p->timerid; /* l_timer_t */
1655 uarg[1] = (intptr_t) p->setting; /* struct itimerspec * */
1659 /* linux_timer_getoverrun */
1661 struct linux_timer_getoverrun_args *p = params;
1662 iarg[0] = p->timerid; /* l_timer_t */
1666 /* linux_timer_delete */
1668 struct linux_timer_delete_args *p = params;
1669 iarg[0] = p->timerid; /* l_timer_t */
1673 /* linux_clock_settime */
1675 struct linux_clock_settime_args *p = params;
1676 iarg[0] = p->which; /* clockid_t */
1677 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1681 /* linux_clock_gettime */
1683 struct linux_clock_gettime_args *p = params;
1684 iarg[0] = p->which; /* clockid_t */
1685 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1689 /* linux_clock_getres */
1691 struct linux_clock_getres_args *p = params;
1692 iarg[0] = p->which; /* clockid_t */
1693 uarg[1] = (intptr_t) p->tp; /* struct l_timespec * */
1697 /* linux_clock_nanosleep */
1699 struct linux_clock_nanosleep_args *p = params;
1700 iarg[0] = p->which; /* clockid_t */
1701 iarg[1] = p->flags; /* int */
1702 uarg[2] = (intptr_t) p->rqtp; /* struct l_timespec * */
1703 uarg[3] = (intptr_t) p->rmtp; /* struct l_timespec * */
1707 /* linux_exit_group */
1709 struct linux_exit_group_args *p = params;
1710 iarg[0] = p->error_code; /* int */
1714 /* linux_epoll_wait */
1716 struct linux_epoll_wait_args *p = params;
1717 iarg[0] = p->epfd; /* l_int */
1718 uarg[1] = (intptr_t) p->events; /* struct epoll_event * */
1719 iarg[2] = p->maxevents; /* l_int */
1720 iarg[3] = p->timeout; /* l_int */
1724 /* linux_epoll_ctl */
1726 struct linux_epoll_ctl_args *p = params;
1727 iarg[0] = p->epfd; /* l_int */
1728 iarg[1] = p->op; /* l_int */
1729 iarg[2] = p->fd; /* l_int */
1730 uarg[3] = (intptr_t) p->event; /* struct epoll_event * */
1736 struct linux_tgkill_args *p = params;
1737 iarg[0] = p->tgid; /* int */
1738 iarg[1] = p->pid; /* int */
1739 iarg[2] = p->sig; /* int */
1745 struct linux_utimes_args *p = params;
1746 uarg[0] = (intptr_t) p->fname; /* char * */
1747 uarg[1] = (intptr_t) p->tptr; /* struct l_timeval * */
1756 /* linux_set_mempolicy */
1761 /* linux_get_mempolicy */
1771 /* linux_mq_unlink */
1776 /* linux_mq_timedsend */
1781 /* linux_mq_timedreceive */
1786 /* linux_mq_notify */
1791 /* linux_mq_getsetattr */
1796 /* linux_kexec_load */
1803 struct linux_waitid_args *p = params;
1804 iarg[0] = p->idtype; /* int */
1805 iarg[1] = p->id; /* l_pid_t */
1806 uarg[2] = (intptr_t) p->info; /* l_siginfo_t * */
1807 iarg[3] = p->options; /* int */
1808 uarg[4] = (intptr_t) p->rusage; /* struct rusage * */
1817 /* linux_request_key */
1827 /* linux_ioprio_set */
1832 /* linux_ioprio_get */
1837 /* linux_inotify_init */
1842 /* linux_inotify_add_watch */
1847 /* linux_inotify_rm_watch */
1852 /* linux_migrate_pages */
1859 struct linux_openat_args *p = params;
1860 iarg[0] = p->dfd; /* l_int */
1861 uarg[1] = (intptr_t) p->filename; /* const char * */
1862 iarg[2] = p->flags; /* l_int */
1863 iarg[3] = p->mode; /* l_int */
1869 struct linux_mkdirat_args *p = params;
1870 iarg[0] = p->dfd; /* l_int */
1871 uarg[1] = (intptr_t) p->pathname; /* const char * */
1872 iarg[2] = p->mode; /* l_int */
1878 struct linux_mknodat_args *p = params;
1879 iarg[0] = p->dfd; /* l_int */
1880 uarg[1] = (intptr_t) p->filename; /* const char * */
1881 iarg[2] = p->mode; /* l_int */
1882 iarg[3] = p->dev; /* l_uint */
1886 /* linux_fchownat */
1888 struct linux_fchownat_args *p = params;
1889 iarg[0] = p->dfd; /* l_int */
1890 uarg[1] = (intptr_t) p->filename; /* const char * */
1891 iarg[2] = p->uid; /* l_uid_t */
1892 iarg[3] = p->gid; /* l_gid_t */
1893 iarg[4] = p->flag; /* l_int */
1897 /* linux_futimesat */
1899 struct linux_futimesat_args *p = params;
1900 iarg[0] = p->dfd; /* l_int */
1901 uarg[1] = (intptr_t) p->filename; /* char * */
1902 uarg[2] = (intptr_t) p->utimes; /* struct l_timeval * */
1906 /* linux_newfstatat */
1908 struct linux_newfstatat_args *p = params;
1909 iarg[0] = p->dfd; /* l_int */
1910 uarg[1] = (intptr_t) p->pathname; /* char * */
1911 uarg[2] = (intptr_t) p->statbuf; /* struct l_stat64 * */
1912 iarg[3] = p->flag; /* l_int */
1916 /* linux_unlinkat */
1918 struct linux_unlinkat_args *p = params;
1919 iarg[0] = p->dfd; /* l_int */
1920 uarg[1] = (intptr_t) p->pathname; /* const char * */
1921 iarg[2] = p->flag; /* l_int */
1925 /* linux_renameat */
1927 struct linux_renameat_args *p = params;
1928 iarg[0] = p->olddfd; /* l_int */
1929 uarg[1] = (intptr_t) p->oldname; /* const char * */
1930 iarg[2] = p->newdfd; /* l_int */
1931 uarg[3] = (intptr_t) p->newname; /* const char * */
1937 struct linux_linkat_args *p = params;
1938 iarg[0] = p->olddfd; /* l_int */
1939 uarg[1] = (intptr_t) p->oldname; /* const char * */
1940 iarg[2] = p->newdfd; /* l_int */
1941 uarg[3] = (intptr_t) p->newname; /* const char * */
1942 iarg[4] = p->flag; /* l_int */
1946 /* linux_symlinkat */
1948 struct linux_symlinkat_args *p = params;
1949 uarg[0] = (intptr_t) p->oldname; /* const char * */
1950 iarg[1] = p->newdfd; /* l_int */
1951 uarg[2] = (intptr_t) p->newname; /* const char * */
1955 /* linux_readlinkat */
1957 struct linux_readlinkat_args *p = params;
1958 iarg[0] = p->dfd; /* l_int */
1959 uarg[1] = (intptr_t) p->path; /* const char * */
1960 uarg[2] = (intptr_t) p->buf; /* char * */
1961 iarg[3] = p->bufsiz; /* l_int */
1965 /* linux_fchmodat */
1967 struct linux_fchmodat_args *p = params;
1968 iarg[0] = p->dfd; /* l_int */
1969 uarg[1] = (intptr_t) p->filename; /* const char * */
1970 iarg[2] = p->mode; /* l_mode_t */
1974 /* linux_faccessat */
1976 struct linux_faccessat_args *p = params;
1977 iarg[0] = p->dfd; /* l_int */
1978 uarg[1] = (intptr_t) p->filename; /* const char * */
1979 iarg[2] = p->amode; /* l_int */
1983 /* linux_pselect6 */
1985 struct linux_pselect6_args *p = params;
1986 iarg[0] = p->nfds; /* l_int */
1987 uarg[1] = (intptr_t) p->readfds; /* l_fd_set * */
1988 uarg[2] = (intptr_t) p->writefds; /* l_fd_set * */
1989 uarg[3] = (intptr_t) p->exceptfds; /* l_fd_set * */
1990 uarg[4] = (intptr_t) p->tsp; /* struct l_timespec * */
1991 uarg[5] = (intptr_t) p->sig; /* l_uintptr_t * */
1997 struct linux_ppoll_args *p = params;
1998 uarg[0] = (intptr_t) p->fds; /* struct pollfd * */
1999 uarg[1] = p->nfds; /* uint32_t */
2000 uarg[2] = (intptr_t) p->tsp; /* struct l_timespec * */
2001 uarg[3] = (intptr_t) p->sset; /* l_sigset_t * */
2002 iarg[4] = p->ssize; /* l_size_t */
2011 /* linux_set_robust_list */
2013 struct linux_set_robust_list_args *p = params;
2014 uarg[0] = (intptr_t) p->head; /* struct linux_robust_list_head * */
2015 iarg[1] = p->len; /* l_size_t */
2019 /* linux_get_robust_list */
2021 struct linux_get_robust_list_args *p = params;
2022 iarg[0] = p->pid; /* l_int */
2023 uarg[1] = (intptr_t) p->head; /* struct linux_robust_list_head * */
2024 uarg[2] = (intptr_t) p->len; /* l_size_t * */
2038 /* linux_sync_file_range */
2043 /* linux_vmsplice */
2048 /* linux_move_pages */
2053 /* linux_utimensat */
2055 struct linux_utimensat_args *p = params;
2056 iarg[0] = p->dfd; /* l_int */
2057 uarg[1] = (intptr_t) p->pathname; /* const char * */
2058 uarg[2] = (intptr_t) p->times; /* const struct l_timespec * */
2059 iarg[3] = p->flags; /* l_int */
2063 /* linux_epoll_pwait */
2065 struct linux_epoll_pwait_args *p = params;
2066 iarg[0] = p->epfd; /* l_int */
2067 uarg[1] = (intptr_t) p->events; /* struct epoll_event * */
2068 iarg[2] = p->maxevents; /* l_int */
2069 iarg[3] = p->timeout; /* l_int */
2070 uarg[4] = (intptr_t) p->mask; /* l_sigset_t * */
2074 /* linux_signalfd */
2086 struct linux_eventfd_args *p = params;
2087 iarg[0] = p->initval; /* l_uint */
2091 /* linux_fallocate */
2093 struct linux_fallocate_args *p = params;
2094 iarg[0] = p->fd; /* l_int */
2095 iarg[1] = p->mode; /* l_int */
2096 iarg[2] = p->offset; /* l_loff_t */
2097 iarg[3] = p->len; /* l_loff_t */
2101 /* linux_timerfd_settime */
2106 /* linux_timerfd_gettime */
2113 struct linux_accept4_args *p = params;
2114 iarg[0] = p->s; /* l_int */
2115 iarg[1] = p->addr; /* l_uintptr_t */
2116 iarg[2] = p->namelen; /* l_uintptr_t */
2117 iarg[3] = p->flags; /* int */
2121 /* linux_signalfd4 */
2126 /* linux_eventfd2 */
2128 struct linux_eventfd2_args *p = params;
2129 iarg[0] = p->initval; /* l_uint */
2130 iarg[1] = p->flags; /* l_int */
2134 /* linux_epoll_create1 */
2136 struct linux_epoll_create1_args *p = params;
2137 iarg[0] = p->flags; /* l_int */
2143 struct linux_dup3_args *p = params;
2144 iarg[0] = p->oldfd; /* l_int */
2145 iarg[1] = p->newfd; /* l_int */
2146 iarg[2] = p->flags; /* l_int */
2152 struct linux_pipe2_args *p = params;
2153 uarg[0] = (intptr_t) p->pipefds; /* l_int * */
2154 iarg[1] = p->flags; /* l_int */
2158 /* linux_inotify_init1 */
2173 /* linux_rt_tsigqueueinfo */
2178 /* linux_perf_event_open */
2183 /* linux_recvmmsg */
2185 struct linux_recvmmsg_args *p = params;
2186 iarg[0] = p->s; /* l_int */
2187 uarg[1] = (intptr_t) p->msg; /* struct l_mmsghdr * */
2188 iarg[2] = p->vlen; /* l_uint */
2189 iarg[3] = p->flags; /* l_uint */
2190 uarg[4] = (intptr_t) p->timeout; /* struct l_timespec * */
2194 /* linux_fanotify_init */
2199 /* linux_fanotify_mark */
2204 /* linux_prlimit64 */
2206 struct linux_prlimit64_args *p = params;
2207 iarg[0] = p->pid; /* l_pid_t */
2208 iarg[1] = p->resource; /* l_uint */
2209 uarg[2] = (intptr_t) p->new; /* struct rlimit * */
2210 uarg[3] = (intptr_t) p->old; /* struct rlimit * */
2214 /* linux_name_to_handle_at */
2219 /* linux_open_by_handle_at */
2224 /* linux_clock_adjtime */
2231 struct linux_syncfs_args *p = params;
2232 iarg[0] = p->fd; /* l_int */
2236 /* linux_sendmmsg */
2238 struct linux_sendmmsg_args *p = params;
2239 iarg[0] = p->s; /* l_int */
2240 uarg[1] = (intptr_t) p->msg; /* struct l_mmsghdr * */
2241 iarg[2] = p->vlen; /* l_uint */
2242 iarg[3] = p->flags; /* l_uint */
2251 /* linux_process_vm_readv */
2256 /* linux_process_vm_writev */
2266 /* linux_finit_module */
2277 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
2279 const char *p = NULL;
2281 #define nosys linux_nosys
2347 p = "struct l_newstat *";
2353 /* linux_newfstat */
2360 p = "struct l_newstat *";
2366 /* linux_newlstat */
2373 p = "struct l_newstat *";
2383 p = "struct pollfd *";
2436 /* linux_mprotect */
2475 /* linux_rt_sigaction */
2482 p = "l_sigaction_t *";
2485 p = "l_sigaction_t *";
2494 /* linux_rt_sigprocmask */
2513 /* linux_rt_sigreturn */
2517 p = "struct l_ucontext *";
2584 p = "struct iovec *";
2600 p = "struct iovec *";
2648 p = "struct l_timeval *";
2769 p = "struct l_shmid_ds *";
2801 /* linux_nanosleep */
2805 p = "const struct l_timespec *";
2808 p = "struct l_timespec *";
2814 /* linux_getitimer */
2821 p = "struct l_itimerval *";
2837 /* linux_setitimer */
2844 p = "struct l_itimerval *";
2847 p = "struct l_itimerval *";
2856 /* linux_sendfile */
2948 /* linux_recvfrom */
3005 /* linux_shutdown */
3047 /* linux_getsockname */
3063 /* linux_getpeername */
3079 /* linux_socketpair */
3098 /* linux_setsockopt */
3120 /* linux_getsockopt */
3209 p = "struct rusage *";
3228 /* linux_newuname */
3232 p = "struct l_new_utsname *";
3261 p = "struct l_sembuf *";
3283 p = "union l_semun";
3319 p = "struct l_msgbuf *";
3338 p = "struct l_msgbuf *";
3363 p = "struct l_msqid_ds *";
3408 /* linux_fdatasync */
3418 /* linux_truncate */
3431 /* linux_ftruncate */
3444 /* linux_getdents */
3578 /* linux_readlink */
3682 p = "struct l_timeval *";
3685 p = "struct timezone *";
3691 /* linux_getrlimit */
3698 p = "struct l_rlimit *";
3711 p = "struct rusage *";
3721 p = "struct l_sysinfo *";
3731 p = "struct l_times_argv *";
3852 /* linux_getgroups */
3865 /* linux_setgroups */
3952 /* linux_setfsuid */
3962 /* linux_setfsgid */
3986 p = "struct l_user_cap_header *";
3989 p = "struct l_user_cap_data *";
3999 p = "struct l_user_cap_header *";
4002 p = "struct l_user_cap_data *";
4008 /* linux_rt_sigpending */
4021 /* linux_rt_sigtimedwait */
4028 p = "l_siginfo_t *";
4031 p = "struct l_timeval *";
4040 /* linux_rt_sigqueueinfo */
4050 p = "l_siginfo_t *";
4056 /* linux_rt_sigsuspend */
4069 /* linux_sigaltstack */
4089 p = "struct l_utimbuf *";
4111 /* linux_personality */
4128 p = "struct l_ustat *";
4141 p = "struct l_statfs_buf *";
4154 p = "struct l_statfs_buf *";
4176 /* linux_getpriority */
4205 /* linux_sched_setparam */
4212 p = "struct l_sched_param *";
4218 /* linux_sched_getparam */
4225 p = "struct l_sched_param *";
4231 /* linux_sched_setscheduler */
4241 p = "struct l_sched_param *";
4247 /* linux_sched_getscheduler */
4257 /* linux_sched_get_priority_max */
4267 /* linux_sched_get_priority_min */
4277 /* linux_sched_rr_get_interval */
4284 p = "struct l_timespec *";
4332 /* linux_pivot_root */
4339 p = "struct l___sysctl_args *";
4367 /* linux_arch_prctl */
4380 /* linux_adjtimex */
4383 /* linux_setrlimit */
4390 p = "struct l_rlimit *";
4423 p = "struct l_timeval *";
4426 p = "struct timezone *";
4499 /* linux_sethostname */
4512 /* linux_setdomainname */
4535 /* linux_create_module */
4538 /* linux_init_module */
4541 /* linux_delete_module */
4544 /* linux_get_kernel_syms */
4547 /* linux_query_module */
4550 /* linux_quotactl */
4553 /* linux_nfsservctl */
4562 /* linux_afs_syscall */
4568 /* linux_security */
4574 /* linux_setxattr */
4577 /* linux_lsetxattr */
4580 /* linux_fsetxattr */
4583 /* linux_getxattr */
4586 /* linux_lgetxattr */
4589 /* linux_fgetxattr */
4592 /* linux_listxattr */
4595 /* linux_llistxattr */
4598 /* linux_flistxattr */
4601 /* linux_removexattr */
4604 /* linux_lremovexattr */
4607 /* linux_fremovexattr */
4633 /* linux_sys_futex */
4646 p = "struct l_timespec *";
4658 /* linux_sched_setaffinity */
4674 /* linux_sched_getaffinity */
4690 /* linux_set_thread_area */
4693 /* linux_lookup_dcookie */
4696 /* linux_epoll_create */
4706 /* linux_epoll_ctl_old */
4709 /* linux_epoll_wait_old */
4712 /* linux_remap_file_pages */
4715 /* linux_getdents64 */
4731 /* linux_set_tid_address */
4741 /* linux_semtimedop */
4744 /* linux_fadvise64 */
4763 /* linux_timer_create */
4770 p = "struct sigevent *";
4779 /* linux_timer_settime */
4789 p = "const struct itimerspec *";
4792 p = "struct itimerspec *";
4798 /* linux_timer_gettime */
4805 p = "struct itimerspec *";
4811 /* linux_timer_getoverrun */
4821 /* linux_timer_delete */
4831 /* linux_clock_settime */
4838 p = "struct l_timespec *";
4844 /* linux_clock_gettime */
4851 p = "struct l_timespec *";
4857 /* linux_clock_getres */
4864 p = "struct l_timespec *";
4870 /* linux_clock_nanosleep */
4880 p = "struct l_timespec *";
4883 p = "struct l_timespec *";
4889 /* linux_exit_group */
4899 /* linux_epoll_wait */
4906 p = "struct epoll_event *";
4918 /* linux_epoll_ctl */
4931 p = "struct epoll_event *";
4960 p = "struct l_timeval *";
4969 /* linux_set_mempolicy */
4972 /* linux_get_mempolicy */
4978 /* linux_mq_unlink */
4981 /* linux_mq_timedsend */
4984 /* linux_mq_timedreceive */
4987 /* linux_mq_notify */
4990 /* linux_mq_getsetattr */
4993 /* linux_kexec_load */
5006 p = "l_siginfo_t *";
5012 p = "struct rusage *";
5021 /* linux_request_key */
5027 /* linux_ioprio_set */
5030 /* linux_ioprio_get */
5033 /* linux_inotify_init */
5036 /* linux_inotify_add_watch */
5039 /* linux_inotify_rm_watch */
5042 /* linux_migrate_pages */
5099 /* linux_fchownat */
5121 /* linux_futimesat */
5131 p = "struct l_timeval *";
5137 /* linux_newfstatat */
5147 p = "struct l_stat64 *";
5156 /* linux_unlinkat */
5172 /* linux_renameat */
5213 /* linux_symlinkat */
5229 /* linux_readlinkat */
5248 /* linux_fchmodat */
5264 /* linux_faccessat */
5280 /* linux_pselect6 */
5296 p = "struct l_timespec *";
5299 p = "l_uintptr_t *";
5309 p = "struct pollfd *";
5315 p = "struct l_timespec *";
5330 /* linux_set_robust_list */
5334 p = "struct linux_robust_list_head *";
5343 /* linux_get_robust_list */
5350 p = "struct linux_robust_list_head *";
5365 /* linux_sync_file_range */
5368 /* linux_vmsplice */
5371 /* linux_move_pages */
5374 /* linux_utimensat */
5384 p = "const struct l_timespec *";
5393 /* linux_epoll_pwait */
5400 p = "struct epoll_event *";
5415 /* linux_signalfd */
5431 /* linux_fallocate */
5450 /* linux_timerfd_settime */
5453 /* linux_timerfd_gettime */
5475 /* linux_signalfd4 */
5478 /* linux_eventfd2 */
5491 /* linux_epoll_create1 */
5530 /* linux_inotify_init1 */
5539 /* linux_rt_tsigqueueinfo */
5542 /* linux_perf_event_open */
5545 /* linux_recvmmsg */
5552 p = "struct l_mmsghdr *";
5561 p = "struct l_timespec *";
5567 /* linux_fanotify_init */
5570 /* linux_fanotify_mark */
5573 /* linux_prlimit64 */
5583 p = "struct rlimit *";
5586 p = "struct rlimit *";
5592 /* linux_name_to_handle_at */
5595 /* linux_open_by_handle_at */
5598 /* linux_clock_adjtime */
5611 /* linux_sendmmsg */
5618 p = "struct l_mmsghdr *";
5633 /* linux_process_vm_readv */
5636 /* linux_process_vm_writev */
5642 /* linux_finit_module */
5649 strlcpy(desc, p, descsz);
5652 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
5654 const char *p = NULL;
5656 #define nosys linux_nosys
5659 if (ndx == 0 || ndx == 1)
5664 if (ndx == 0 || ndx == 1)
5669 if (ndx == 0 || ndx == 1)
5674 if (ndx == 0 || ndx == 1)
5679 if (ndx == 0 || ndx == 1)
5682 /* linux_newfstat */
5684 if (ndx == 0 || ndx == 1)
5687 /* linux_newlstat */
5689 if (ndx == 0 || ndx == 1)
5694 if (ndx == 0 || ndx == 1)
5699 if (ndx == 0 || ndx == 1)
5704 if (ndx == 0 || ndx == 1)
5707 /* linux_mprotect */
5709 if (ndx == 0 || ndx == 1)
5714 if (ndx == 0 || ndx == 1)
5719 if (ndx == 0 || ndx == 1)
5722 /* linux_rt_sigaction */
5724 if (ndx == 0 || ndx == 1)
5727 /* linux_rt_sigprocmask */
5729 if (ndx == 0 || ndx == 1)
5732 /* linux_rt_sigreturn */
5734 if (ndx == 0 || ndx == 1)
5739 if (ndx == 0 || ndx == 1)
5744 if (ndx == 0 || ndx == 1)
5749 if (ndx == 0 || ndx == 1)
5754 if (ndx == 0 || ndx == 1)
5759 if (ndx == 0 || ndx == 1)
5764 if (ndx == 0 || ndx == 1)
5769 if (ndx == 0 || ndx == 1)
5774 if (ndx == 0 || ndx == 1)
5781 if (ndx == 0 || ndx == 1)
5786 if (ndx == 0 || ndx == 1)
5791 if (ndx == 0 || ndx == 1)
5796 if (ndx == 0 || ndx == 1)
5801 if (ndx == 0 || ndx == 1)
5806 if (ndx == 0 || ndx == 1)
5811 if (ndx == 0 || ndx == 1)
5816 if (ndx == 0 || ndx == 1)
5821 if (ndx == 0 || ndx == 1)
5826 /* linux_nanosleep */
5828 if (ndx == 0 || ndx == 1)
5831 /* linux_getitimer */
5833 if (ndx == 0 || ndx == 1)
5838 if (ndx == 0 || ndx == 1)
5841 /* linux_setitimer */
5843 if (ndx == 0 || ndx == 1)
5848 /* linux_sendfile */
5850 if (ndx == 0 || ndx == 1)
5855 if (ndx == 0 || ndx == 1)
5860 if (ndx == 0 || ndx == 1)
5865 if (ndx == 0 || ndx == 1)
5870 if (ndx == 0 || ndx == 1)
5873 /* linux_recvfrom */
5875 if (ndx == 0 || ndx == 1)
5880 if (ndx == 0 || ndx == 1)
5885 if (ndx == 0 || ndx == 1)
5888 /* linux_shutdown */
5890 if (ndx == 0 || ndx == 1)
5895 if (ndx == 0 || ndx == 1)
5900 if (ndx == 0 || ndx == 1)
5903 /* linux_getsockname */
5905 if (ndx == 0 || ndx == 1)
5908 /* linux_getpeername */
5910 if (ndx == 0 || ndx == 1)
5913 /* linux_socketpair */
5915 if (ndx == 0 || ndx == 1)
5918 /* linux_setsockopt */
5920 if (ndx == 0 || ndx == 1)
5923 /* linux_getsockopt */
5925 if (ndx == 0 || ndx == 1)
5930 if (ndx == 0 || ndx == 1)
5939 if (ndx == 0 || ndx == 1)
5944 if (ndx == 0 || ndx == 1)
5949 if (ndx == 0 || ndx == 1)
5954 if (ndx == 0 || ndx == 1)
5957 /* linux_newuname */
5959 if (ndx == 0 || ndx == 1)
5964 if (ndx == 0 || ndx == 1)
5969 if (ndx == 0 || ndx == 1)
5974 if (ndx == 0 || ndx == 1)
5979 if (ndx == 0 || ndx == 1)
5984 if (ndx == 0 || ndx == 1)
5989 if (ndx == 0 || ndx == 1)
5994 if (ndx == 0 || ndx == 1)
5999 if (ndx == 0 || ndx == 1)
6004 if (ndx == 0 || ndx == 1)
6009 if (ndx == 0 || ndx == 1)
6014 if (ndx == 0 || ndx == 1)
6017 /* linux_fdatasync */
6019 if (ndx == 0 || ndx == 1)
6022 /* linux_truncate */
6024 if (ndx == 0 || ndx == 1)
6027 /* linux_ftruncate */
6029 if (ndx == 0 || ndx == 1)
6032 /* linux_getdents */
6034 if (ndx == 0 || ndx == 1)
6039 if (ndx == 0 || ndx == 1)
6044 if (ndx == 0 || ndx == 1)
6049 if (ndx == 0 || ndx == 1)
6054 if (ndx == 0 || ndx == 1)
6059 if (ndx == 0 || ndx == 1)
6064 if (ndx == 0 || ndx == 1)
6069 if (ndx == 0 || ndx == 1)
6074 if (ndx == 0 || ndx == 1)
6079 if (ndx == 0 || ndx == 1)
6084 if (ndx == 0 || ndx == 1)
6087 /* linux_readlink */
6089 if (ndx == 0 || ndx == 1)
6094 if (ndx == 0 || ndx == 1)
6099 if (ndx == 0 || ndx == 1)
6104 if (ndx == 0 || ndx == 1)
6109 if (ndx == 0 || ndx == 1)
6114 if (ndx == 0 || ndx == 1)
6119 if (ndx == 0 || ndx == 1)
6124 if (ndx == 0 || ndx == 1)
6127 /* linux_getrlimit */
6129 if (ndx == 0 || ndx == 1)
6134 if (ndx == 0 || ndx == 1)
6139 if (ndx == 0 || ndx == 1)
6144 if (ndx == 0 || ndx == 1)
6149 if (ndx == 0 || ndx == 1)
6156 if (ndx == 0 || ndx == 1)
6163 if (ndx == 0 || ndx == 1)
6168 if (ndx == 0 || ndx == 1)
6177 if (ndx == 0 || ndx == 1)
6188 if (ndx == 0 || ndx == 1)
6193 if (ndx == 0 || ndx == 1)
6196 /* linux_getgroups */
6198 if (ndx == 0 || ndx == 1)
6201 /* linux_setgroups */
6203 if (ndx == 0 || ndx == 1)
6208 if (ndx == 0 || ndx == 1)
6213 if (ndx == 0 || ndx == 1)
6218 if (ndx == 0 || ndx == 1)
6223 if (ndx == 0 || ndx == 1)
6228 if (ndx == 0 || ndx == 1)
6231 /* linux_setfsuid */
6233 if (ndx == 0 || ndx == 1)
6236 /* linux_setfsgid */
6238 if (ndx == 0 || ndx == 1)
6243 if (ndx == 0 || ndx == 1)
6248 if (ndx == 0 || ndx == 1)
6253 if (ndx == 0 || ndx == 1)
6256 /* linux_rt_sigpending */
6258 if (ndx == 0 || ndx == 1)
6261 /* linux_rt_sigtimedwait */
6263 if (ndx == 0 || ndx == 1)
6266 /* linux_rt_sigqueueinfo */
6268 if (ndx == 0 || ndx == 1)
6271 /* linux_rt_sigsuspend */
6273 if (ndx == 0 || ndx == 1)
6276 /* linux_sigaltstack */
6278 if (ndx == 0 || ndx == 1)
6283 if (ndx == 0 || ndx == 1)
6288 if (ndx == 0 || ndx == 1)
6291 /* linux_personality */
6293 if (ndx == 0 || ndx == 1)
6298 if (ndx == 0 || ndx == 1)
6303 if (ndx == 0 || ndx == 1)
6308 if (ndx == 0 || ndx == 1)
6313 if (ndx == 0 || ndx == 1)
6316 /* linux_getpriority */
6318 if (ndx == 0 || ndx == 1)
6323 if (ndx == 0 || ndx == 1)
6326 /* linux_sched_setparam */
6328 if (ndx == 0 || ndx == 1)
6331 /* linux_sched_getparam */
6333 if (ndx == 0 || ndx == 1)
6336 /* linux_sched_setscheduler */
6338 if (ndx == 0 || ndx == 1)
6341 /* linux_sched_getscheduler */
6343 if (ndx == 0 || ndx == 1)
6346 /* linux_sched_get_priority_max */
6348 if (ndx == 0 || ndx == 1)
6351 /* linux_sched_get_priority_min */
6353 if (ndx == 0 || ndx == 1)
6356 /* linux_sched_rr_get_interval */
6358 if (ndx == 0 || ndx == 1)
6363 if (ndx == 0 || ndx == 1)
6368 if (ndx == 0 || ndx == 1)
6373 if (ndx == 0 || ndx == 1)
6380 /* linux_pivot_root */
6384 if (ndx == 0 || ndx == 1)
6389 if (ndx == 0 || ndx == 1)
6392 /* linux_arch_prctl */
6394 if (ndx == 0 || ndx == 1)
6397 /* linux_adjtimex */
6399 /* linux_setrlimit */
6401 if (ndx == 0 || ndx == 1)
6406 if (ndx == 0 || ndx == 1)
6413 if (ndx == 0 || ndx == 1)
6418 if (ndx == 0 || ndx == 1)
6423 if (ndx == 0 || ndx == 1)
6428 if (ndx == 0 || ndx == 1)
6433 if (ndx == 0 || ndx == 1)
6440 if (ndx == 0 || ndx == 1)
6443 /* linux_sethostname */
6445 if (ndx == 0 || ndx == 1)
6448 /* linux_setdomainname */
6450 if (ndx == 0 || ndx == 1)
6455 if (ndx == 0 || ndx == 1)
6458 /* linux_create_module */
6460 /* linux_init_module */
6462 /* linux_delete_module */
6464 /* linux_get_kernel_syms */
6466 /* linux_query_module */
6468 /* linux_quotactl */
6470 /* linux_nfsservctl */
6476 /* linux_afs_syscall */
6480 /* linux_security */
6484 /* linux_setxattr */
6486 /* linux_lsetxattr */
6488 /* linux_fsetxattr */
6490 /* linux_getxattr */
6492 /* linux_lgetxattr */
6494 /* linux_fgetxattr */
6496 /* linux_listxattr */
6498 /* linux_llistxattr */
6500 /* linux_flistxattr */
6502 /* linux_removexattr */
6504 /* linux_lremovexattr */
6506 /* linux_fremovexattr */
6510 if (ndx == 0 || ndx == 1)
6515 if (ndx == 0 || ndx == 1)
6518 /* linux_sys_futex */
6520 if (ndx == 0 || ndx == 1)
6523 /* linux_sched_setaffinity */
6525 if (ndx == 0 || ndx == 1)
6528 /* linux_sched_getaffinity */
6530 if (ndx == 0 || ndx == 1)
6533 /* linux_set_thread_area */
6535 /* linux_lookup_dcookie */
6537 /* linux_epoll_create */
6539 if (ndx == 0 || ndx == 1)
6542 /* linux_epoll_ctl_old */
6544 /* linux_epoll_wait_old */
6546 /* linux_remap_file_pages */
6548 /* linux_getdents64 */
6550 if (ndx == 0 || ndx == 1)
6553 /* linux_set_tid_address */
6555 if (ndx == 0 || ndx == 1)
6558 /* linux_semtimedop */
6560 /* linux_fadvise64 */
6562 if (ndx == 0 || ndx == 1)
6565 /* linux_timer_create */
6567 if (ndx == 0 || ndx == 1)
6570 /* linux_timer_settime */
6572 if (ndx == 0 || ndx == 1)
6575 /* linux_timer_gettime */
6577 if (ndx == 0 || ndx == 1)
6580 /* linux_timer_getoverrun */
6582 if (ndx == 0 || ndx == 1)
6585 /* linux_timer_delete */
6587 if (ndx == 0 || ndx == 1)
6590 /* linux_clock_settime */
6592 if (ndx == 0 || ndx == 1)
6595 /* linux_clock_gettime */
6597 if (ndx == 0 || ndx == 1)
6600 /* linux_clock_getres */
6602 if (ndx == 0 || ndx == 1)
6605 /* linux_clock_nanosleep */
6607 if (ndx == 0 || ndx == 1)
6610 /* linux_exit_group */
6612 if (ndx == 0 || ndx == 1)
6615 /* linux_epoll_wait */
6617 if (ndx == 0 || ndx == 1)
6620 /* linux_epoll_ctl */
6622 if (ndx == 0 || ndx == 1)
6627 if (ndx == 0 || ndx == 1)
6632 if (ndx == 0 || ndx == 1)
6637 /* linux_set_mempolicy */
6639 /* linux_get_mempolicy */
6643 /* linux_mq_unlink */
6645 /* linux_mq_timedsend */
6647 /* linux_mq_timedreceive */
6649 /* linux_mq_notify */
6651 /* linux_mq_getsetattr */
6653 /* linux_kexec_load */
6657 if (ndx == 0 || ndx == 1)
6662 /* linux_request_key */
6666 /* linux_ioprio_set */
6668 /* linux_ioprio_get */
6670 /* linux_inotify_init */
6672 /* linux_inotify_add_watch */
6674 /* linux_inotify_rm_watch */
6676 /* linux_migrate_pages */
6680 if (ndx == 0 || ndx == 1)
6685 if (ndx == 0 || ndx == 1)
6690 if (ndx == 0 || ndx == 1)
6693 /* linux_fchownat */
6695 if (ndx == 0 || ndx == 1)
6698 /* linux_futimesat */
6700 if (ndx == 0 || ndx == 1)
6703 /* linux_newfstatat */
6705 if (ndx == 0 || ndx == 1)
6708 /* linux_unlinkat */
6710 if (ndx == 0 || ndx == 1)
6713 /* linux_renameat */
6715 if (ndx == 0 || ndx == 1)
6720 if (ndx == 0 || ndx == 1)
6723 /* linux_symlinkat */
6725 if (ndx == 0 || ndx == 1)
6728 /* linux_readlinkat */
6730 if (ndx == 0 || ndx == 1)
6733 /* linux_fchmodat */
6735 if (ndx == 0 || ndx == 1)
6738 /* linux_faccessat */
6740 if (ndx == 0 || ndx == 1)
6743 /* linux_pselect6 */
6745 if (ndx == 0 || ndx == 1)
6750 if (ndx == 0 || ndx == 1)
6755 /* linux_set_robust_list */
6757 if (ndx == 0 || ndx == 1)
6760 /* linux_get_robust_list */
6762 if (ndx == 0 || ndx == 1)
6769 /* linux_sync_file_range */
6771 /* linux_vmsplice */
6773 /* linux_move_pages */
6775 /* linux_utimensat */
6777 if (ndx == 0 || ndx == 1)
6780 /* linux_epoll_pwait */
6782 if (ndx == 0 || ndx == 1)
6785 /* linux_signalfd */
6791 if (ndx == 0 || ndx == 1)
6794 /* linux_fallocate */
6796 if (ndx == 0 || ndx == 1)
6799 /* linux_timerfd_settime */
6801 /* linux_timerfd_gettime */
6805 if (ndx == 0 || ndx == 1)
6808 /* linux_signalfd4 */
6810 /* linux_eventfd2 */
6812 if (ndx == 0 || ndx == 1)
6815 /* linux_epoll_create1 */
6817 if (ndx == 0 || ndx == 1)
6822 if (ndx == 0 || ndx == 1)
6827 if (ndx == 0 || ndx == 1)
6830 /* linux_inotify_init1 */
6836 /* linux_rt_tsigqueueinfo */
6838 /* linux_perf_event_open */
6840 /* linux_recvmmsg */
6842 if (ndx == 0 || ndx == 1)
6845 /* linux_fanotify_init */
6847 /* linux_fanotify_mark */
6849 /* linux_prlimit64 */
6851 if (ndx == 0 || ndx == 1)
6854 /* linux_name_to_handle_at */
6856 /* linux_open_by_handle_at */
6858 /* linux_clock_adjtime */
6862 if (ndx == 0 || ndx == 1)
6865 /* linux_sendmmsg */
6867 if (ndx == 0 || ndx == 1)
6872 /* linux_process_vm_readv */
6874 /* linux_process_vm_writev */
6878 /* linux_finit_module */
6884 strlcpy(desc, p, descsz);