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 iarg[0] = p->*; /* struct pollfd */
77 uarg[1] = p->nfds; /* unsigned 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; /* 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->tp; /* 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 */
2058 /* linux_epoll_pwait */
2060 struct linux_epoll_pwait_args *p = params;
2061 iarg[0] = p->epfd; /* l_int */
2062 uarg[1] = (intptr_t) p->events; /* struct epoll_event * */
2063 iarg[2] = p->maxevents; /* l_int */
2064 iarg[3] = p->timeout; /* l_int */
2065 uarg[4] = (intptr_t) p->mask; /* l_sigset_t * */
2069 /* linux_signalfd */
2081 struct linux_eventfd_args *p = params;
2082 iarg[0] = p->initval; /* l_uint */
2086 /* linux_fallocate */
2088 struct linux_fallocate_args *p = params;
2089 iarg[0] = p->fd; /* l_int */
2090 iarg[1] = p->mode; /* l_int */
2091 iarg[2] = p->offset; /* l_loff_t */
2092 iarg[3] = p->len; /* l_loff_t */
2096 /* linux_timerfd_settime */
2101 /* linux_timerfd_gettime */
2108 struct linux_accept4_args *p = params;
2109 iarg[0] = p->s; /* l_int */
2110 iarg[1] = p->addr; /* l_uintptr_t */
2111 iarg[2] = p->namelen; /* l_uintptr_t */
2112 iarg[3] = p->flags; /* int */
2116 /* linux_signalfd4 */
2121 /* linux_eventfd2 */
2123 struct linux_eventfd2_args *p = params;
2124 iarg[0] = p->initval; /* l_uint */
2125 iarg[1] = p->flags; /* l_int */
2129 /* linux_epoll_create1 */
2131 struct linux_epoll_create1_args *p = params;
2132 iarg[0] = p->flags; /* l_int */
2138 struct linux_dup3_args *p = params;
2139 iarg[0] = p->oldfd; /* l_int */
2140 iarg[1] = p->newfd; /* l_int */
2141 iarg[2] = p->flags; /* l_int */
2147 struct linux_pipe2_args *p = params;
2148 uarg[0] = (intptr_t) p->pipefds; /* l_int * */
2149 iarg[1] = p->flags; /* l_int */
2153 /* linux_inotify_init1 */
2168 /* linux_rt_tsigqueueinfo */
2173 /* linux_perf_event_open */
2178 /* linux_recvmmsg */
2183 /* linux_fanotify_init */
2188 /* linux_fanotify_mark */
2193 /* linux_prlimit64 */
2195 struct linux_prlimit64_args *p = params;
2196 iarg[0] = p->pid; /* l_pid_t */
2197 iarg[1] = p->resource; /* l_uint */
2198 uarg[2] = (intptr_t) p->new; /* struct rlimit * */
2199 uarg[3] = (intptr_t) p->old; /* struct rlimit * */
2203 /* linux_name_to_handle_at */
2208 /* linux_open_by_handle_at */
2213 /* linux_clock_adjtime */
2223 /* linux_sendmmsg */
2233 /* linux_process_vm_readv */
2238 /* linux_process_vm_writev */
2248 /* linux_finit_module */
2259 systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
2261 const char *p = NULL;
2263 #define nosys linux_nosys
2329 p = "struct l_newstat *";
2335 /* linux_newfstat */
2342 p = "struct l_newstat *";
2348 /* linux_newlstat */
2355 p = "struct l_newstat *";
2365 p = "struct pollfd";
2418 /* linux_mprotect */
2457 /* linux_rt_sigaction */
2464 p = "l_sigaction_t *";
2467 p = "l_sigaction_t *";
2476 /* linux_rt_sigprocmask */
2495 /* linux_rt_sigreturn */
2499 p = "struct l_ucontext *";
2566 p = "struct iovec *";
2582 p = "struct iovec *";
2630 p = "struct l_timeval *";
2751 p = "struct l_shmid_ds *";
2783 /* linux_nanosleep */
2787 p = "const struct l_timespec *";
2790 p = "struct l_timespec *";
2796 /* linux_getitimer */
2803 p = "struct l_itimerval *";
2819 /* linux_setitimer */
2826 p = "struct l_itimerval *";
2829 p = "struct l_itimerval *";
2838 /* linux_sendfile */
2930 /* linux_recvfrom */
2987 /* linux_shutdown */
3029 /* linux_getsockname */
3045 /* linux_getpeername */
3061 /* linux_socketpair */
3080 /* linux_setsockopt */
3102 /* linux_getsockopt */
3191 p = "struct rusage *";
3210 /* linux_newuname */
3214 p = "struct l_new_utsname *";
3243 p = "struct l_sembuf *";
3265 p = "union l_semun";
3301 p = "struct l_msgbuf *";
3320 p = "struct l_msgbuf *";
3345 p = "struct l_msqid_ds *";
3390 /* linux_fdatasync */
3400 /* linux_truncate */
3413 /* linux_ftruncate */
3426 /* linux_getdents */
3560 /* linux_readlink */
3664 p = "struct l_timeval *";
3667 p = "struct timezone *";
3673 /* linux_getrlimit */
3680 p = "struct l_rlimit *";
3693 p = "struct rusage *";
3703 p = "struct l_sysinfo *";
3713 p = "struct l_times_argv *";
3834 /* linux_getgroups */
3847 /* linux_setgroups */
3934 /* linux_setfsuid */
3944 /* linux_setfsgid */
3968 p = "struct l_user_cap_header *";
3971 p = "struct l_user_cap_data *";
3981 p = "struct l_user_cap_header *";
3984 p = "struct l_user_cap_data *";
3990 /* linux_rt_sigpending */
4003 /* linux_rt_sigtimedwait */
4010 p = "l_siginfo_t *";
4013 p = "struct l_timeval *";
4022 /* linux_rt_sigqueueinfo */
4032 p = "l_siginfo_t *";
4038 /* linux_rt_sigsuspend */
4051 /* linux_sigaltstack */
4071 p = "struct l_utimbuf *";
4093 /* linux_personality */
4110 p = "struct l_ustat *";
4123 p = "struct l_statfs_buf *";
4136 p = "struct l_statfs_buf *";
4158 /* linux_getpriority */
4187 /* linux_sched_setparam */
4194 p = "struct l_sched_param *";
4200 /* linux_sched_getparam */
4207 p = "struct l_sched_param *";
4213 /* linux_sched_setscheduler */
4223 p = "struct l_sched_param *";
4229 /* linux_sched_getscheduler */
4239 /* linux_sched_get_priority_max */
4249 /* linux_sched_get_priority_min */
4259 /* linux_sched_rr_get_interval */
4266 p = "struct l_timespec *";
4314 /* linux_pivot_root */
4321 p = "struct l___sysctl_args *";
4349 /* linux_arch_prctl */
4362 /* linux_adjtimex */
4365 /* linux_setrlimit */
4372 p = "struct l_rlimit *";
4405 p = "struct l_timeval *";
4408 p = "struct timezone *";
4481 /* linux_sethostname */
4494 /* linux_setdomainname */
4517 /* linux_create_module */
4520 /* linux_init_module */
4523 /* linux_delete_module */
4526 /* linux_get_kernel_syms */
4529 /* linux_query_module */
4532 /* linux_quotactl */
4535 /* linux_nfsservctl */
4544 /* linux_afs_syscall */
4550 /* linux_security */
4556 /* linux_setxattr */
4559 /* linux_lsetxattr */
4562 /* linux_fsetxattr */
4565 /* linux_getxattr */
4568 /* linux_lgetxattr */
4571 /* linux_fgetxattr */
4574 /* linux_listxattr */
4577 /* linux_llistxattr */
4580 /* linux_flistxattr */
4583 /* linux_removexattr */
4586 /* linux_lremovexattr */
4589 /* linux_fremovexattr */
4615 /* linux_sys_futex */
4628 p = "struct l_timespec *";
4640 /* linux_sched_setaffinity */
4656 /* linux_sched_getaffinity */
4672 /* linux_set_thread_area */
4675 /* linux_lookup_dcookie */
4678 /* linux_epoll_create */
4688 /* linux_epoll_ctl_old */
4691 /* linux_epoll_wait_old */
4694 /* linux_remap_file_pages */
4697 /* linux_getdents64 */
4713 /* linux_set_tid_address */
4723 /* linux_semtimedop */
4726 /* linux_fadvise64 */
4745 /* linux_timer_create */
4752 p = "struct sigevent *";
4761 /* linux_timer_settime */
4771 p = "const struct itimerspec *";
4774 p = "struct itimerspec *";
4780 /* linux_timer_gettime */
4787 p = "struct itimerspec *";
4793 /* linux_timer_getoverrun */
4803 /* linux_timer_delete */
4813 /* linux_clock_settime */
4820 p = "struct l_timespec *";
4826 /* linux_clock_gettime */
4833 p = "struct l_timespec *";
4839 /* linux_clock_getres */
4846 p = "struct l_timespec *";
4852 /* linux_clock_nanosleep */
4862 p = "struct l_timespec *";
4865 p = "struct l_timespec *";
4871 /* linux_exit_group */
4881 /* linux_epoll_wait */
4888 p = "struct epoll_event *";
4900 /* linux_epoll_ctl */
4913 p = "struct epoll_event *";
4942 p = "struct l_timeval *";
4951 /* linux_set_mempolicy */
4954 /* linux_get_mempolicy */
4960 /* linux_mq_unlink */
4963 /* linux_mq_timedsend */
4966 /* linux_mq_timedreceive */
4969 /* linux_mq_notify */
4972 /* linux_mq_getsetattr */
4975 /* linux_kexec_load */
4988 p = "l_siginfo_t *";
4994 p = "struct rusage *";
5003 /* linux_request_key */
5009 /* linux_ioprio_set */
5012 /* linux_ioprio_get */
5015 /* linux_inotify_init */
5018 /* linux_inotify_add_watch */
5021 /* linux_inotify_rm_watch */
5024 /* linux_migrate_pages */
5081 /* linux_fchownat */
5103 /* linux_futimesat */
5113 p = "struct l_timeval *";
5119 /* linux_newfstatat */
5129 p = "struct l_stat64 *";
5138 /* linux_unlinkat */
5154 /* linux_renameat */
5195 /* linux_symlinkat */
5211 /* linux_readlinkat */
5230 /* linux_fchmodat */
5246 /* linux_faccessat */
5262 /* linux_pselect6 */
5278 p = "struct l_timespec *";
5281 p = "l_uintptr_t *";
5291 p = "struct pollfd *";
5297 p = "struct l_timespec *";
5312 /* linux_set_robust_list */
5316 p = "struct linux_robust_list_head *";
5325 /* linux_get_robust_list */
5332 p = "struct linux_robust_list_head *";
5347 /* linux_sync_file_range */
5350 /* linux_vmsplice */
5353 /* linux_move_pages */
5356 /* linux_utimensat */
5359 /* linux_epoll_pwait */
5366 p = "struct epoll_event *";
5381 /* linux_signalfd */
5397 /* linux_fallocate */
5416 /* linux_timerfd_settime */
5419 /* linux_timerfd_gettime */
5441 /* linux_signalfd4 */
5444 /* linux_eventfd2 */
5457 /* linux_epoll_create1 */
5496 /* linux_inotify_init1 */
5505 /* linux_rt_tsigqueueinfo */
5508 /* linux_perf_event_open */
5511 /* linux_recvmmsg */
5514 /* linux_fanotify_init */
5517 /* linux_fanotify_mark */
5520 /* linux_prlimit64 */
5530 p = "struct rlimit *";
5533 p = "struct rlimit *";
5539 /* linux_name_to_handle_at */
5542 /* linux_open_by_handle_at */
5545 /* linux_clock_adjtime */
5551 /* linux_sendmmsg */
5557 /* linux_process_vm_readv */
5560 /* linux_process_vm_writev */
5566 /* linux_finit_module */
5573 strlcpy(desc, p, descsz);
5576 systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz)
5578 const char *p = NULL;
5580 #define nosys linux_nosys
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)
5606 /* linux_newfstat */
5608 if (ndx == 0 || ndx == 1)
5611 /* linux_newlstat */
5613 if (ndx == 0 || ndx == 1)
5618 if (ndx == 0 || ndx == 1)
5623 if (ndx == 0 || ndx == 1)
5628 if (ndx == 0 || ndx == 1)
5631 /* linux_mprotect */
5633 if (ndx == 0 || ndx == 1)
5638 if (ndx == 0 || ndx == 1)
5643 if (ndx == 0 || ndx == 1)
5646 /* linux_rt_sigaction */
5648 if (ndx == 0 || ndx == 1)
5651 /* linux_rt_sigprocmask */
5653 if (ndx == 0 || ndx == 1)
5656 /* linux_rt_sigreturn */
5658 if (ndx == 0 || ndx == 1)
5663 if (ndx == 0 || ndx == 1)
5668 if (ndx == 0 || ndx == 1)
5673 if (ndx == 0 || ndx == 1)
5678 if (ndx == 0 || ndx == 1)
5683 if (ndx == 0 || ndx == 1)
5688 if (ndx == 0 || ndx == 1)
5693 if (ndx == 0 || ndx == 1)
5698 if (ndx == 0 || ndx == 1)
5705 if (ndx == 0 || ndx == 1)
5710 if (ndx == 0 || ndx == 1)
5715 if (ndx == 0 || ndx == 1)
5720 if (ndx == 0 || ndx == 1)
5725 if (ndx == 0 || ndx == 1)
5730 if (ndx == 0 || ndx == 1)
5735 if (ndx == 0 || ndx == 1)
5740 if (ndx == 0 || ndx == 1)
5745 if (ndx == 0 || ndx == 1)
5750 /* linux_nanosleep */
5752 if (ndx == 0 || ndx == 1)
5755 /* linux_getitimer */
5757 if (ndx == 0 || ndx == 1)
5762 if (ndx == 0 || ndx == 1)
5765 /* linux_setitimer */
5767 if (ndx == 0 || ndx == 1)
5772 /* linux_sendfile */
5774 if (ndx == 0 || ndx == 1)
5779 if (ndx == 0 || ndx == 1)
5784 if (ndx == 0 || ndx == 1)
5789 if (ndx == 0 || ndx == 1)
5794 if (ndx == 0 || ndx == 1)
5797 /* linux_recvfrom */
5799 if (ndx == 0 || ndx == 1)
5804 if (ndx == 0 || ndx == 1)
5809 if (ndx == 0 || ndx == 1)
5812 /* linux_shutdown */
5814 if (ndx == 0 || ndx == 1)
5819 if (ndx == 0 || ndx == 1)
5824 if (ndx == 0 || ndx == 1)
5827 /* linux_getsockname */
5829 if (ndx == 0 || ndx == 1)
5832 /* linux_getpeername */
5834 if (ndx == 0 || ndx == 1)
5837 /* linux_socketpair */
5839 if (ndx == 0 || ndx == 1)
5842 /* linux_setsockopt */
5844 if (ndx == 0 || ndx == 1)
5847 /* linux_getsockopt */
5849 if (ndx == 0 || ndx == 1)
5854 if (ndx == 0 || ndx == 1)
5863 if (ndx == 0 || ndx == 1)
5868 if (ndx == 0 || ndx == 1)
5873 if (ndx == 0 || ndx == 1)
5878 if (ndx == 0 || ndx == 1)
5881 /* linux_newuname */
5883 if (ndx == 0 || ndx == 1)
5888 if (ndx == 0 || ndx == 1)
5893 if (ndx == 0 || ndx == 1)
5898 if (ndx == 0 || ndx == 1)
5903 if (ndx == 0 || ndx == 1)
5908 if (ndx == 0 || ndx == 1)
5913 if (ndx == 0 || ndx == 1)
5918 if (ndx == 0 || ndx == 1)
5923 if (ndx == 0 || ndx == 1)
5928 if (ndx == 0 || ndx == 1)
5933 if (ndx == 0 || ndx == 1)
5938 if (ndx == 0 || ndx == 1)
5941 /* linux_fdatasync */
5943 if (ndx == 0 || ndx == 1)
5946 /* linux_truncate */
5948 if (ndx == 0 || ndx == 1)
5951 /* linux_ftruncate */
5953 if (ndx == 0 || ndx == 1)
5956 /* linux_getdents */
5958 if (ndx == 0 || ndx == 1)
5963 if (ndx == 0 || ndx == 1)
5968 if (ndx == 0 || ndx == 1)
5973 if (ndx == 0 || ndx == 1)
5978 if (ndx == 0 || ndx == 1)
5983 if (ndx == 0 || ndx == 1)
5988 if (ndx == 0 || ndx == 1)
5993 if (ndx == 0 || ndx == 1)
5998 if (ndx == 0 || ndx == 1)
6003 if (ndx == 0 || ndx == 1)
6008 if (ndx == 0 || ndx == 1)
6011 /* linux_readlink */
6013 if (ndx == 0 || ndx == 1)
6018 if (ndx == 0 || ndx == 1)
6023 if (ndx == 0 || ndx == 1)
6028 if (ndx == 0 || ndx == 1)
6033 if (ndx == 0 || ndx == 1)
6038 if (ndx == 0 || ndx == 1)
6043 if (ndx == 0 || ndx == 1)
6048 if (ndx == 0 || ndx == 1)
6051 /* linux_getrlimit */
6053 if (ndx == 0 || ndx == 1)
6058 if (ndx == 0 || ndx == 1)
6063 if (ndx == 0 || ndx == 1)
6068 if (ndx == 0 || ndx == 1)
6073 if (ndx == 0 || ndx == 1)
6080 if (ndx == 0 || ndx == 1)
6087 if (ndx == 0 || ndx == 1)
6092 if (ndx == 0 || ndx == 1)
6101 if (ndx == 0 || ndx == 1)
6112 if (ndx == 0 || ndx == 1)
6117 if (ndx == 0 || ndx == 1)
6120 /* linux_getgroups */
6122 if (ndx == 0 || ndx == 1)
6125 /* linux_setgroups */
6127 if (ndx == 0 || ndx == 1)
6132 if (ndx == 0 || ndx == 1)
6137 if (ndx == 0 || ndx == 1)
6142 if (ndx == 0 || ndx == 1)
6147 if (ndx == 0 || ndx == 1)
6152 if (ndx == 0 || ndx == 1)
6155 /* linux_setfsuid */
6157 if (ndx == 0 || ndx == 1)
6160 /* linux_setfsgid */
6162 if (ndx == 0 || ndx == 1)
6167 if (ndx == 0 || ndx == 1)
6172 if (ndx == 0 || ndx == 1)
6177 if (ndx == 0 || ndx == 1)
6180 /* linux_rt_sigpending */
6182 if (ndx == 0 || ndx == 1)
6185 /* linux_rt_sigtimedwait */
6187 if (ndx == 0 || ndx == 1)
6190 /* linux_rt_sigqueueinfo */
6192 if (ndx == 0 || ndx == 1)
6195 /* linux_rt_sigsuspend */
6197 if (ndx == 0 || ndx == 1)
6200 /* linux_sigaltstack */
6202 if (ndx == 0 || ndx == 1)
6207 if (ndx == 0 || ndx == 1)
6212 if (ndx == 0 || ndx == 1)
6215 /* linux_personality */
6217 if (ndx == 0 || ndx == 1)
6222 if (ndx == 0 || ndx == 1)
6227 if (ndx == 0 || ndx == 1)
6232 if (ndx == 0 || ndx == 1)
6237 if (ndx == 0 || ndx == 1)
6240 /* linux_getpriority */
6242 if (ndx == 0 || ndx == 1)
6247 if (ndx == 0 || ndx == 1)
6250 /* linux_sched_setparam */
6252 if (ndx == 0 || ndx == 1)
6255 /* linux_sched_getparam */
6257 if (ndx == 0 || ndx == 1)
6260 /* linux_sched_setscheduler */
6262 if (ndx == 0 || ndx == 1)
6265 /* linux_sched_getscheduler */
6267 if (ndx == 0 || ndx == 1)
6270 /* linux_sched_get_priority_max */
6272 if (ndx == 0 || ndx == 1)
6275 /* linux_sched_get_priority_min */
6277 if (ndx == 0 || ndx == 1)
6280 /* linux_sched_rr_get_interval */
6282 if (ndx == 0 || ndx == 1)
6287 if (ndx == 0 || ndx == 1)
6292 if (ndx == 0 || ndx == 1)
6297 if (ndx == 0 || ndx == 1)
6304 /* linux_pivot_root */
6308 if (ndx == 0 || ndx == 1)
6313 if (ndx == 0 || ndx == 1)
6316 /* linux_arch_prctl */
6318 if (ndx == 0 || ndx == 1)
6321 /* linux_adjtimex */
6323 /* linux_setrlimit */
6325 if (ndx == 0 || ndx == 1)
6330 if (ndx == 0 || ndx == 1)
6337 if (ndx == 0 || ndx == 1)
6342 if (ndx == 0 || ndx == 1)
6347 if (ndx == 0 || ndx == 1)
6352 if (ndx == 0 || ndx == 1)
6357 if (ndx == 0 || ndx == 1)
6364 if (ndx == 0 || ndx == 1)
6367 /* linux_sethostname */
6369 if (ndx == 0 || ndx == 1)
6372 /* linux_setdomainname */
6374 if (ndx == 0 || ndx == 1)
6379 if (ndx == 0 || ndx == 1)
6382 /* linux_create_module */
6384 /* linux_init_module */
6386 /* linux_delete_module */
6388 /* linux_get_kernel_syms */
6390 /* linux_query_module */
6392 /* linux_quotactl */
6394 /* linux_nfsservctl */
6400 /* linux_afs_syscall */
6404 /* linux_security */
6408 /* linux_setxattr */
6410 /* linux_lsetxattr */
6412 /* linux_fsetxattr */
6414 /* linux_getxattr */
6416 /* linux_lgetxattr */
6418 /* linux_fgetxattr */
6420 /* linux_listxattr */
6422 /* linux_llistxattr */
6424 /* linux_flistxattr */
6426 /* linux_removexattr */
6428 /* linux_lremovexattr */
6430 /* linux_fremovexattr */
6434 if (ndx == 0 || ndx == 1)
6439 if (ndx == 0 || ndx == 1)
6442 /* linux_sys_futex */
6444 if (ndx == 0 || ndx == 1)
6447 /* linux_sched_setaffinity */
6449 if (ndx == 0 || ndx == 1)
6452 /* linux_sched_getaffinity */
6454 if (ndx == 0 || ndx == 1)
6457 /* linux_set_thread_area */
6459 /* linux_lookup_dcookie */
6461 /* linux_epoll_create */
6463 if (ndx == 0 || ndx == 1)
6466 /* linux_epoll_ctl_old */
6468 /* linux_epoll_wait_old */
6470 /* linux_remap_file_pages */
6472 /* linux_getdents64 */
6474 if (ndx == 0 || ndx == 1)
6477 /* linux_set_tid_address */
6479 if (ndx == 0 || ndx == 1)
6482 /* linux_semtimedop */
6484 /* linux_fadvise64 */
6486 if (ndx == 0 || ndx == 1)
6489 /* linux_timer_create */
6491 if (ndx == 0 || ndx == 1)
6494 /* linux_timer_settime */
6496 if (ndx == 0 || ndx == 1)
6499 /* linux_timer_gettime */
6501 if (ndx == 0 || ndx == 1)
6504 /* linux_timer_getoverrun */
6506 if (ndx == 0 || ndx == 1)
6509 /* linux_timer_delete */
6511 if (ndx == 0 || ndx == 1)
6514 /* linux_clock_settime */
6516 if (ndx == 0 || ndx == 1)
6519 /* linux_clock_gettime */
6521 if (ndx == 0 || ndx == 1)
6524 /* linux_clock_getres */
6526 if (ndx == 0 || ndx == 1)
6529 /* linux_clock_nanosleep */
6531 if (ndx == 0 || ndx == 1)
6534 /* linux_exit_group */
6536 if (ndx == 0 || ndx == 1)
6539 /* linux_epoll_wait */
6541 if (ndx == 0 || ndx == 1)
6544 /* linux_epoll_ctl */
6546 if (ndx == 0 || ndx == 1)
6551 if (ndx == 0 || ndx == 1)
6556 if (ndx == 0 || ndx == 1)
6561 /* linux_set_mempolicy */
6563 /* linux_get_mempolicy */
6567 /* linux_mq_unlink */
6569 /* linux_mq_timedsend */
6571 /* linux_mq_timedreceive */
6573 /* linux_mq_notify */
6575 /* linux_mq_getsetattr */
6577 /* linux_kexec_load */
6581 if (ndx == 0 || ndx == 1)
6586 /* linux_request_key */
6590 /* linux_ioprio_set */
6592 /* linux_ioprio_get */
6594 /* linux_inotify_init */
6596 /* linux_inotify_add_watch */
6598 /* linux_inotify_rm_watch */
6600 /* linux_migrate_pages */
6604 if (ndx == 0 || ndx == 1)
6609 if (ndx == 0 || ndx == 1)
6614 if (ndx == 0 || ndx == 1)
6617 /* linux_fchownat */
6619 if (ndx == 0 || ndx == 1)
6622 /* linux_futimesat */
6624 if (ndx == 0 || ndx == 1)
6627 /* linux_newfstatat */
6629 if (ndx == 0 || ndx == 1)
6632 /* linux_unlinkat */
6634 if (ndx == 0 || ndx == 1)
6637 /* linux_renameat */
6639 if (ndx == 0 || ndx == 1)
6644 if (ndx == 0 || ndx == 1)
6647 /* linux_symlinkat */
6649 if (ndx == 0 || ndx == 1)
6652 /* linux_readlinkat */
6654 if (ndx == 0 || ndx == 1)
6657 /* linux_fchmodat */
6659 if (ndx == 0 || ndx == 1)
6662 /* linux_faccessat */
6664 if (ndx == 0 || ndx == 1)
6667 /* linux_pselect6 */
6669 if (ndx == 0 || ndx == 1)
6674 if (ndx == 0 || ndx == 1)
6679 /* linux_set_robust_list */
6681 if (ndx == 0 || ndx == 1)
6684 /* linux_get_robust_list */
6686 if (ndx == 0 || ndx == 1)
6693 /* linux_sync_file_range */
6695 /* linux_vmsplice */
6697 /* linux_move_pages */
6699 /* linux_utimensat */
6701 /* linux_epoll_pwait */
6703 if (ndx == 0 || ndx == 1)
6706 /* linux_signalfd */
6712 if (ndx == 0 || ndx == 1)
6715 /* linux_fallocate */
6717 if (ndx == 0 || ndx == 1)
6720 /* linux_timerfd_settime */
6722 /* linux_timerfd_gettime */
6726 if (ndx == 0 || ndx == 1)
6729 /* linux_signalfd4 */
6731 /* linux_eventfd2 */
6733 if (ndx == 0 || ndx == 1)
6736 /* linux_epoll_create1 */
6738 if (ndx == 0 || ndx == 1)
6743 if (ndx == 0 || ndx == 1)
6748 if (ndx == 0 || ndx == 1)
6751 /* linux_inotify_init1 */
6757 /* linux_rt_tsigqueueinfo */
6759 /* linux_perf_event_open */
6761 /* linux_recvmmsg */
6763 /* linux_fanotify_init */
6765 /* linux_fanotify_mark */
6767 /* linux_prlimit64 */
6769 if (ndx == 0 || ndx == 1)
6772 /* linux_name_to_handle_at */
6774 /* linux_open_by_handle_at */
6776 /* linux_clock_adjtime */
6780 /* linux_sendmmsg */
6784 /* linux_process_vm_readv */
6786 /* linux_process_vm_writev */
6790 /* linux_finit_module */
6796 strlcpy(desc, p, descsz);