forked from Minki/linux
lttng: syscall instrumentation
x86-32 and x86-64 system call instrumentation, along with the lttng-syscalls-generate-headers.sh script that generates the headers from the system call list. See README for details. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
763be8c0a9
commit
54a69e5511
@ -0,0 +1,263 @@
|
||||
syscall sys_read nr 0 nbargs 3 types: (unsigned int, char *, size_t) args: (fd, buf, count)
|
||||
syscall sys_write nr 1 nbargs 3 types: (unsigned int, const char *, size_t) args: (fd, buf, count)
|
||||
syscall sys_open nr 2 nbargs 3 types: (const char *, int, int) args: (filename, flags, mode)
|
||||
syscall sys_close nr 3 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_newstat nr 4 nbargs 2 types: (const char *, struct stat *) args: (filename, statbuf)
|
||||
syscall sys_newfstat nr 5 nbargs 2 types: (unsigned int, struct stat *) args: (fd, statbuf)
|
||||
syscall sys_newlstat nr 6 nbargs 2 types: (const char *, struct stat *) args: (filename, statbuf)
|
||||
syscall sys_poll nr 7 nbargs 3 types: (struct pollfd *, unsigned int, long) args: (ufds, nfds, timeout_msecs)
|
||||
syscall sys_lseek nr 8 nbargs 3 types: (unsigned int, off_t, unsigned int) args: (fd, offset, origin)
|
||||
syscall sys_mmap nr 9 nbargs 6 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (addr, len, prot, flags, fd, off)
|
||||
syscall sys_mprotect nr 10 nbargs 3 types: (unsigned long, size_t, unsigned long) args: (start, len, prot)
|
||||
syscall sys_munmap nr 11 nbargs 2 types: (unsigned long, size_t) args: (addr, len)
|
||||
syscall sys_brk nr 12 nbargs 1 types: (unsigned long) args: (brk)
|
||||
syscall sys_rt_sigaction nr 13 nbargs 4 types: (int, const struct sigaction *, struct sigaction *, size_t) args: (sig, act, oact, sigsetsize)
|
||||
syscall sys_rt_sigprocmask nr 14 nbargs 4 types: (int, sigset_t *, sigset_t *, size_t) args: (how, nset, oset, sigsetsize)
|
||||
syscall sys_ioctl nr 16 nbargs 3 types: (unsigned int, unsigned int, unsigned long) args: (fd, cmd, arg)
|
||||
syscall sys_readv nr 19 nbargs 3 types: (unsigned long, const struct iovec *, unsigned long) args: (fd, vec, vlen)
|
||||
syscall sys_writev nr 20 nbargs 3 types: (unsigned long, const struct iovec *, unsigned long) args: (fd, vec, vlen)
|
||||
syscall sys_access nr 21 nbargs 2 types: (const char *, int) args: (filename, mode)
|
||||
syscall sys_pipe nr 22 nbargs 1 types: (int *) args: (fildes)
|
||||
syscall sys_select nr 23 nbargs 5 types: (int, fd_set *, fd_set *, fd_set *, struct timeval *) args: (n, inp, outp, exp, tvp)
|
||||
syscall sys_sched_yield nr 24 nbargs 0 types: () args: ()
|
||||
syscall sys_mremap nr 25 nbargs 5 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (addr, old_len, new_len, flags, new_addr)
|
||||
syscall sys_msync nr 26 nbargs 3 types: (unsigned long, size_t, int) args: (start, len, flags)
|
||||
syscall sys_mincore nr 27 nbargs 3 types: (unsigned long, size_t, unsigned char *) args: (start, len, vec)
|
||||
syscall sys_madvise nr 28 nbargs 3 types: (unsigned long, size_t, int) args: (start, len_in, behavior)
|
||||
syscall sys_shmget nr 29 nbargs 3 types: (key_t, size_t, int) args: (key, size, shmflg)
|
||||
syscall sys_shmat nr 30 nbargs 3 types: (int, char *, int) args: (shmid, shmaddr, shmflg)
|
||||
syscall sys_shmctl nr 31 nbargs 3 types: (int, int, struct shmid_ds *) args: (shmid, cmd, buf)
|
||||
syscall sys_dup nr 32 nbargs 1 types: (unsigned int) args: (fildes)
|
||||
syscall sys_dup2 nr 33 nbargs 2 types: (unsigned int, unsigned int) args: (oldfd, newfd)
|
||||
syscall sys_pause nr 34 nbargs 0 types: () args: ()
|
||||
syscall sys_nanosleep nr 35 nbargs 2 types: (struct timespec *, struct timespec *) args: (rqtp, rmtp)
|
||||
syscall sys_getitimer nr 36 nbargs 2 types: (int, struct itimerval *) args: (which, value)
|
||||
syscall sys_alarm nr 37 nbargs 1 types: (unsigned int) args: (seconds)
|
||||
syscall sys_setitimer nr 38 nbargs 3 types: (int, struct itimerval *, struct itimerval *) args: (which, value, ovalue)
|
||||
syscall sys_getpid nr 39 nbargs 0 types: () args: ()
|
||||
syscall sys_sendfile64 nr 40 nbargs 4 types: (int, int, loff_t *, size_t) args: (out_fd, in_fd, offset, count)
|
||||
syscall sys_socket nr 41 nbargs 3 types: (int, int, int) args: (family, type, protocol)
|
||||
syscall sys_connect nr 42 nbargs 3 types: (int, struct sockaddr *, int) args: (fd, uservaddr, addrlen)
|
||||
syscall sys_accept nr 43 nbargs 3 types: (int, struct sockaddr *, int *) args: (fd, upeer_sockaddr, upeer_addrlen)
|
||||
syscall sys_sendto nr 44 nbargs 6 types: (int, void *, size_t, unsigned, struct sockaddr *, int) args: (fd, buff, len, flags, addr, addr_len)
|
||||
syscall sys_recvfrom nr 45 nbargs 6 types: (int, void *, size_t, unsigned, struct sockaddr *, int *) args: (fd, ubuf, size, flags, addr, addr_len)
|
||||
syscall sys_sendmsg nr 46 nbargs 3 types: (int, struct msghdr *, unsigned) args: (fd, msg, flags)
|
||||
syscall sys_recvmsg nr 47 nbargs 3 types: (int, struct msghdr *, unsigned int) args: (fd, msg, flags)
|
||||
syscall sys_shutdown nr 48 nbargs 2 types: (int, int) args: (fd, how)
|
||||
syscall sys_bind nr 49 nbargs 3 types: (int, struct sockaddr *, int) args: (fd, umyaddr, addrlen)
|
||||
syscall sys_listen nr 50 nbargs 2 types: (int, int) args: (fd, backlog)
|
||||
syscall sys_getsockname nr 51 nbargs 3 types: (int, struct sockaddr *, int *) args: (fd, usockaddr, usockaddr_len)
|
||||
syscall sys_getpeername nr 52 nbargs 3 types: (int, struct sockaddr *, int *) args: (fd, usockaddr, usockaddr_len)
|
||||
syscall sys_socketpair nr 53 nbargs 4 types: (int, int, int, int *) args: (family, type, protocol, usockvec)
|
||||
syscall sys_setsockopt nr 54 nbargs 5 types: (int, int, int, char *, int) args: (fd, level, optname, optval, optlen)
|
||||
syscall sys_getsockopt nr 55 nbargs 5 types: (int, int, int, char *, int *) args: (fd, level, optname, optval, optlen)
|
||||
syscall sys_exit nr 60 nbargs 1 types: (int) args: (error_code)
|
||||
syscall sys_wait4 nr 61 nbargs 4 types: (pid_t, int *, int, struct rusage *) args: (upid, stat_addr, options, ru)
|
||||
syscall sys_kill nr 62 nbargs 2 types: (pid_t, int) args: (pid, sig)
|
||||
syscall sys_newuname nr 63 nbargs 1 types: (struct new_utsname *) args: (name)
|
||||
syscall sys_semget nr 64 nbargs 3 types: (key_t, int, int) args: (key, nsems, semflg)
|
||||
syscall sys_semop nr 65 nbargs 3 types: (int, struct sembuf *, unsigned) args: (semid, tsops, nsops)
|
||||
syscall sys_shmdt nr 67 nbargs 1 types: (char *) args: (shmaddr)
|
||||
syscall sys_msgget nr 68 nbargs 2 types: (key_t, int) args: (key, msgflg)
|
||||
syscall sys_msgsnd nr 69 nbargs 4 types: (int, struct msgbuf *, size_t, int) args: (msqid, msgp, msgsz, msgflg)
|
||||
syscall sys_msgrcv nr 70 nbargs 5 types: (int, struct msgbuf *, size_t, long, int) args: (msqid, msgp, msgsz, msgtyp, msgflg)
|
||||
syscall sys_msgctl nr 71 nbargs 3 types: (int, int, struct msqid_ds *) args: (msqid, cmd, buf)
|
||||
syscall sys_fcntl nr 72 nbargs 3 types: (unsigned int, unsigned int, unsigned long) args: (fd, cmd, arg)
|
||||
syscall sys_flock nr 73 nbargs 2 types: (unsigned int, unsigned int) args: (fd, cmd)
|
||||
syscall sys_fsync nr 74 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_fdatasync nr 75 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_truncate nr 76 nbargs 2 types: (const char *, long) args: (path, length)
|
||||
syscall sys_ftruncate nr 77 nbargs 2 types: (unsigned int, unsigned long) args: (fd, length)
|
||||
syscall sys_getdents nr 78 nbargs 3 types: (unsigned int, struct linux_dirent *, unsigned int) args: (fd, dirent, count)
|
||||
syscall sys_getcwd nr 79 nbargs 2 types: (char *, unsigned long) args: (buf, size)
|
||||
syscall sys_chdir nr 80 nbargs 1 types: (const char *) args: (filename)
|
||||
syscall sys_fchdir nr 81 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_rename nr 82 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_mkdir nr 83 nbargs 2 types: (const char *, int) args: (pathname, mode)
|
||||
syscall sys_rmdir nr 84 nbargs 1 types: (const char *) args: (pathname)
|
||||
syscall sys_creat nr 85 nbargs 2 types: (const char *, int) args: (pathname, mode)
|
||||
syscall sys_link nr 86 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_unlink nr 87 nbargs 1 types: (const char *) args: (pathname)
|
||||
syscall sys_symlink nr 88 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_readlink nr 89 nbargs 3 types: (const char *, char *, int) args: (path, buf, bufsiz)
|
||||
syscall sys_chmod nr 90 nbargs 2 types: (const char *, mode_t) args: (filename, mode)
|
||||
syscall sys_fchmod nr 91 nbargs 2 types: (unsigned int, mode_t) args: (fd, mode)
|
||||
syscall sys_chown nr 92 nbargs 3 types: (const char *, uid_t, gid_t) args: (filename, user, group)
|
||||
syscall sys_fchown nr 93 nbargs 3 types: (unsigned int, uid_t, gid_t) args: (fd, user, group)
|
||||
syscall sys_lchown nr 94 nbargs 3 types: (const char *, uid_t, gid_t) args: (filename, user, group)
|
||||
syscall sys_umask nr 95 nbargs 1 types: (int) args: (mask)
|
||||
syscall sys_gettimeofday nr 96 nbargs 2 types: (struct timeval *, struct timezone *) args: (tv, tz)
|
||||
syscall sys_getrlimit nr 97 nbargs 2 types: (unsigned int, struct rlimit *) args: (resource, rlim)
|
||||
syscall sys_getrusage nr 98 nbargs 2 types: (int, struct rusage *) args: (who, ru)
|
||||
syscall sys_sysinfo nr 99 nbargs 1 types: (struct sysinfo *) args: (info)
|
||||
syscall sys_times nr 100 nbargs 1 types: (struct tms *) args: (tbuf)
|
||||
syscall sys_ptrace nr 101 nbargs 4 types: (long, long, unsigned long, unsigned long) args: (request, pid, addr, data)
|
||||
syscall sys_getuid nr 102 nbargs 0 types: () args: ()
|
||||
syscall sys_syslog nr 103 nbargs 3 types: (int, char *, int) args: (type, buf, len)
|
||||
syscall sys_getgid nr 104 nbargs 0 types: () args: ()
|
||||
syscall sys_setuid nr 105 nbargs 1 types: (uid_t) args: (uid)
|
||||
syscall sys_setgid nr 106 nbargs 1 types: (gid_t) args: (gid)
|
||||
syscall sys_geteuid nr 107 nbargs 0 types: () args: ()
|
||||
syscall sys_getegid nr 108 nbargs 0 types: () args: ()
|
||||
syscall sys_setpgid nr 109 nbargs 2 types: (pid_t, pid_t) args: (pid, pgid)
|
||||
syscall sys_getppid nr 110 nbargs 0 types: () args: ()
|
||||
syscall sys_getpgrp nr 111 nbargs 0 types: () args: ()
|
||||
syscall sys_setsid nr 112 nbargs 0 types: () args: ()
|
||||
syscall sys_setreuid nr 113 nbargs 2 types: (uid_t, uid_t) args: (ruid, euid)
|
||||
syscall sys_setregid nr 114 nbargs 2 types: (gid_t, gid_t) args: (rgid, egid)
|
||||
syscall sys_getgroups nr 115 nbargs 2 types: (int, gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_setgroups nr 116 nbargs 2 types: (int, gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_setresuid nr 117 nbargs 3 types: (uid_t, uid_t, uid_t) args: (ruid, euid, suid)
|
||||
syscall sys_getresuid nr 118 nbargs 3 types: (uid_t *, uid_t *, uid_t *) args: (ruid, euid, suid)
|
||||
syscall sys_setresgid nr 119 nbargs 3 types: (gid_t, gid_t, gid_t) args: (rgid, egid, sgid)
|
||||
syscall sys_getresgid nr 120 nbargs 3 types: (gid_t *, gid_t *, gid_t *) args: (rgid, egid, sgid)
|
||||
syscall sys_getpgid nr 121 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_setfsuid nr 122 nbargs 1 types: (uid_t) args: (uid)
|
||||
syscall sys_setfsgid nr 123 nbargs 1 types: (gid_t) args: (gid)
|
||||
syscall sys_getsid nr 124 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_capget nr 125 nbargs 2 types: (cap_user_header_t, cap_user_data_t) args: (header, dataptr)
|
||||
syscall sys_capset nr 126 nbargs 2 types: (cap_user_header_t, const cap_user_data_t) args: (header, data)
|
||||
syscall sys_rt_sigpending nr 127 nbargs 2 types: (sigset_t *, size_t) args: (set, sigsetsize)
|
||||
syscall sys_rt_sigtimedwait nr 128 nbargs 4 types: (const sigset_t *, siginfo_t *, const struct timespec *, size_t) args: (uthese, uinfo, uts, sigsetsize)
|
||||
syscall sys_rt_sigqueueinfo nr 129 nbargs 3 types: (pid_t, int, siginfo_t *) args: (pid, sig, uinfo)
|
||||
syscall sys_rt_sigsuspend nr 130 nbargs 2 types: (sigset_t *, size_t) args: (unewset, sigsetsize)
|
||||
syscall sys_utime nr 132 nbargs 2 types: (char *, struct utimbuf *) args: (filename, times)
|
||||
syscall sys_mknod nr 133 nbargs 3 types: (const char *, int, unsigned) args: (filename, mode, dev)
|
||||
syscall sys_personality nr 135 nbargs 1 types: (unsigned int) args: (personality)
|
||||
syscall sys_ustat nr 136 nbargs 2 types: (unsigned, struct ustat *) args: (dev, ubuf)
|
||||
syscall sys_statfs nr 137 nbargs 2 types: (const char *, struct statfs *) args: (pathname, buf)
|
||||
syscall sys_fstatfs nr 138 nbargs 2 types: (unsigned int, struct statfs *) args: (fd, buf)
|
||||
syscall sys_sysfs nr 139 nbargs 3 types: (int, unsigned long, unsigned long) args: (option, arg1, arg2)
|
||||
syscall sys_getpriority nr 140 nbargs 2 types: (int, int) args: (which, who)
|
||||
syscall sys_setpriority nr 141 nbargs 3 types: (int, int, int) args: (which, who, niceval)
|
||||
syscall sys_sched_setparam nr 142 nbargs 2 types: (pid_t, struct sched_param *) args: (pid, param)
|
||||
syscall sys_sched_getparam nr 143 nbargs 2 types: (pid_t, struct sched_param *) args: (pid, param)
|
||||
syscall sys_sched_setscheduler nr 144 nbargs 3 types: (pid_t, int, struct sched_param *) args: (pid, policy, param)
|
||||
syscall sys_sched_getscheduler nr 145 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_sched_get_priority_max nr 146 nbargs 1 types: (int) args: (policy)
|
||||
syscall sys_sched_get_priority_min nr 147 nbargs 1 types: (int) args: (policy)
|
||||
syscall sys_sched_rr_get_interval nr 148 nbargs 2 types: (pid_t, struct timespec *) args: (pid, interval)
|
||||
syscall sys_mlock nr 149 nbargs 2 types: (unsigned long, size_t) args: (start, len)
|
||||
syscall sys_munlock nr 150 nbargs 2 types: (unsigned long, size_t) args: (start, len)
|
||||
syscall sys_mlockall nr 151 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_munlockall nr 152 nbargs 0 types: () args: ()
|
||||
syscall sys_vhangup nr 153 nbargs 0 types: () args: ()
|
||||
syscall sys_pivot_root nr 155 nbargs 2 types: (const char *, const char *) args: (new_root, put_old)
|
||||
syscall sys_sysctl nr 156 nbargs 1 types: (struct __sysctl_args *) args: (args)
|
||||
syscall sys_prctl nr 157 nbargs 5 types: (int, unsigned long, unsigned long, unsigned long, unsigned long) args: (option, arg2, arg3, arg4, arg5)
|
||||
syscall sys_adjtimex nr 159 nbargs 1 types: (struct timex *) args: (txc_p)
|
||||
syscall sys_setrlimit nr 160 nbargs 2 types: (unsigned int, struct rlimit *) args: (resource, rlim)
|
||||
syscall sys_chroot nr 161 nbargs 1 types: (const char *) args: (filename)
|
||||
syscall sys_sync nr 162 nbargs 0 types: () args: ()
|
||||
syscall sys_settimeofday nr 164 nbargs 2 types: (struct timeval *, struct timezone *) args: (tv, tz)
|
||||
syscall sys_mount nr 165 nbargs 5 types: (char *, char *, char *, unsigned long, void *) args: (dev_name, dir_name, type, flags, data)
|
||||
syscall sys_umount nr 166 nbargs 2 types: (char *, int) args: (name, flags)
|
||||
syscall sys_swapon nr 167 nbargs 2 types: (const char *, int) args: (specialfile, swap_flags)
|
||||
syscall sys_swapoff nr 168 nbargs 1 types: (const char *) args: (specialfile)
|
||||
syscall sys_reboot nr 169 nbargs 4 types: (int, int, unsigned int, void *) args: (magic1, magic2, cmd, arg)
|
||||
syscall sys_sethostname nr 170 nbargs 2 types: (char *, int) args: (name, len)
|
||||
syscall sys_setdomainname nr 171 nbargs 2 types: (char *, int) args: (name, len)
|
||||
syscall sys_init_module nr 175 nbargs 3 types: (void *, unsigned long, const char *) args: (umod, len, uargs)
|
||||
syscall sys_delete_module nr 176 nbargs 2 types: (const char *, unsigned int) args: (name_user, flags)
|
||||
syscall sys_nfsservctl nr 180 nbargs 3 types: (int, struct nfsctl_arg *, void *) args: (cmd, arg, res)
|
||||
syscall sys_gettid nr 186 nbargs 0 types: () args: ()
|
||||
syscall sys_setxattr nr 188 nbargs 5 types: (const char *, const char *, const void *, size_t, int) args: (pathname, name, value, size, flags)
|
||||
syscall sys_lsetxattr nr 189 nbargs 5 types: (const char *, const char *, const void *, size_t, int) args: (pathname, name, value, size, flags)
|
||||
syscall sys_fsetxattr nr 190 nbargs 5 types: (int, const char *, const void *, size_t, int) args: (fd, name, value, size, flags)
|
||||
syscall sys_getxattr nr 191 nbargs 4 types: (const char *, const char *, void *, size_t) args: (pathname, name, value, size)
|
||||
syscall sys_lgetxattr nr 192 nbargs 4 types: (const char *, const char *, void *, size_t) args: (pathname, name, value, size)
|
||||
syscall sys_fgetxattr nr 193 nbargs 4 types: (int, const char *, void *, size_t) args: (fd, name, value, size)
|
||||
syscall sys_listxattr nr 194 nbargs 3 types: (const char *, char *, size_t) args: (pathname, list, size)
|
||||
syscall sys_llistxattr nr 195 nbargs 3 types: (const char *, char *, size_t) args: (pathname, list, size)
|
||||
syscall sys_flistxattr nr 196 nbargs 3 types: (int, char *, size_t) args: (fd, list, size)
|
||||
syscall sys_removexattr nr 197 nbargs 2 types: (const char *, const char *) args: (pathname, name)
|
||||
syscall sys_lremovexattr nr 198 nbargs 2 types: (const char *, const char *) args: (pathname, name)
|
||||
syscall sys_fremovexattr nr 199 nbargs 2 types: (int, const char *) args: (fd, name)
|
||||
syscall sys_tkill nr 200 nbargs 2 types: (pid_t, int) args: (pid, sig)
|
||||
syscall sys_time nr 201 nbargs 1 types: (time_t *) args: (tloc)
|
||||
syscall sys_futex nr 202 nbargs 6 types: (u32 *, int, u32, struct timespec *, u32 *, u32) args: (uaddr, op, val, utime, uaddr2, val3)
|
||||
syscall sys_sched_setaffinity nr 203 nbargs 3 types: (pid_t, unsigned int, unsigned long *) args: (pid, len, user_mask_ptr)
|
||||
syscall sys_sched_getaffinity nr 204 nbargs 3 types: (pid_t, unsigned int, unsigned long *) args: (pid, len, user_mask_ptr)
|
||||
syscall sys_io_setup nr 206 nbargs 2 types: (unsigned, aio_context_t *) args: (nr_events, ctxp)
|
||||
syscall sys_io_destroy nr 207 nbargs 1 types: (aio_context_t) args: (ctx)
|
||||
syscall sys_io_getevents nr 208 nbargs 5 types: (aio_context_t, long, long, struct io_event *, struct timespec *) args: (ctx_id, min_nr, nr, events, timeout)
|
||||
syscall sys_io_submit nr 209 nbargs 3 types: (aio_context_t, long, struct iocb * *) args: (ctx_id, nr, iocbpp)
|
||||
syscall sys_io_cancel nr 210 nbargs 3 types: (aio_context_t, struct iocb *, struct io_event *) args: (ctx_id, iocb, result)
|
||||
syscall sys_epoll_create nr 213 nbargs 1 types: (int) args: (size)
|
||||
syscall sys_remap_file_pages nr 216 nbargs 5 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (start, size, prot, pgoff, flags)
|
||||
syscall sys_getdents64 nr 217 nbargs 3 types: (unsigned int, struct linux_dirent64 *, unsigned int) args: (fd, dirent, count)
|
||||
syscall sys_set_tid_address nr 218 nbargs 1 types: (int *) args: (tidptr)
|
||||
syscall sys_restart_syscall nr 219 nbargs 0 types: () args: ()
|
||||
syscall sys_semtimedop nr 220 nbargs 4 types: (int, struct sembuf *, unsigned, const struct timespec *) args: (semid, tsops, nsops, timeout)
|
||||
syscall sys_timer_create nr 222 nbargs 3 types: (const clockid_t, struct sigevent *, timer_t *) args: (which_clock, timer_event_spec, created_timer_id)
|
||||
syscall sys_timer_settime nr 223 nbargs 4 types: (timer_t, int, const struct itimerspec *, struct itimerspec *) args: (timer_id, flags, new_setting, old_setting)
|
||||
syscall sys_timer_gettime nr 224 nbargs 2 types: (timer_t, struct itimerspec *) args: (timer_id, setting)
|
||||
syscall sys_timer_getoverrun nr 225 nbargs 1 types: (timer_t) args: (timer_id)
|
||||
syscall sys_timer_delete nr 226 nbargs 1 types: (timer_t) args: (timer_id)
|
||||
syscall sys_clock_settime nr 227 nbargs 2 types: (const clockid_t, const struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_gettime nr 228 nbargs 2 types: (const clockid_t, struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_getres nr 229 nbargs 2 types: (const clockid_t, struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_nanosleep nr 230 nbargs 4 types: (const clockid_t, int, const struct timespec *, struct timespec *) args: (which_clock, flags, rqtp, rmtp)
|
||||
syscall sys_exit_group nr 231 nbargs 1 types: (int) args: (error_code)
|
||||
syscall sys_epoll_wait nr 232 nbargs 4 types: (int, struct epoll_event *, int, int) args: (epfd, events, maxevents, timeout)
|
||||
syscall sys_epoll_ctl nr 233 nbargs 4 types: (int, int, int, struct epoll_event *) args: (epfd, op, fd, event)
|
||||
syscall sys_tgkill nr 234 nbargs 3 types: (pid_t, pid_t, int) args: (tgid, pid, sig)
|
||||
syscall sys_utimes nr 235 nbargs 2 types: (char *, struct timeval *) args: (filename, utimes)
|
||||
syscall sys_mq_open nr 240 nbargs 4 types: (const char *, int, mode_t, struct mq_attr *) args: (u_name, oflag, mode, u_attr)
|
||||
syscall sys_mq_unlink nr 241 nbargs 1 types: (const char *) args: (u_name)
|
||||
syscall sys_mq_timedsend nr 242 nbargs 5 types: (mqd_t, const char *, size_t, unsigned int, const struct timespec *) args: (mqdes, u_msg_ptr, msg_len, msg_prio, u_abs_timeout)
|
||||
syscall sys_mq_timedreceive nr 243 nbargs 5 types: (mqd_t, char *, size_t, unsigned int *, const struct timespec *) args: (mqdes, u_msg_ptr, msg_len, u_msg_prio, u_abs_timeout)
|
||||
syscall sys_mq_notify nr 244 nbargs 2 types: (mqd_t, const struct sigevent *) args: (mqdes, u_notification)
|
||||
syscall sys_mq_getsetattr nr 245 nbargs 3 types: (mqd_t, const struct mq_attr *, struct mq_attr *) args: (mqdes, u_mqstat, u_omqstat)
|
||||
syscall sys_kexec_load nr 246 nbargs 4 types: (unsigned long, unsigned long, struct kexec_segment *, unsigned long) args: (entry, nr_segments, segments, flags)
|
||||
syscall sys_waitid nr 247 nbargs 5 types: (int, pid_t, struct siginfo *, int, struct rusage *) args: (which, upid, infop, options, ru)
|
||||
syscall sys_ioprio_set nr 251 nbargs 3 types: (int, int, int) args: (which, who, ioprio)
|
||||
syscall sys_ioprio_get nr 252 nbargs 2 types: (int, int) args: (which, who)
|
||||
syscall sys_inotify_init nr 253 nbargs 0 types: () args: ()
|
||||
syscall sys_inotify_add_watch nr 254 nbargs 3 types: (int, const char *, u32) args: (fd, pathname, mask)
|
||||
syscall sys_inotify_rm_watch nr 255 nbargs 2 types: (int, __s32) args: (fd, wd)
|
||||
syscall sys_openat nr 257 nbargs 4 types: (int, const char *, int, int) args: (dfd, filename, flags, mode)
|
||||
syscall sys_mkdirat nr 258 nbargs 3 types: (int, const char *, int) args: (dfd, pathname, mode)
|
||||
syscall sys_mknodat nr 259 nbargs 4 types: (int, const char *, int, unsigned) args: (dfd, filename, mode, dev)
|
||||
syscall sys_fchownat nr 260 nbargs 5 types: (int, const char *, uid_t, gid_t, int) args: (dfd, filename, user, group, flag)
|
||||
syscall sys_futimesat nr 261 nbargs 3 types: (int, const char *, struct timeval *) args: (dfd, filename, utimes)
|
||||
syscall sys_newfstatat nr 262 nbargs 4 types: (int, const char *, struct stat *, int) args: (dfd, filename, statbuf, flag)
|
||||
syscall sys_unlinkat nr 263 nbargs 3 types: (int, const char *, int) args: (dfd, pathname, flag)
|
||||
syscall sys_renameat nr 264 nbargs 4 types: (int, const char *, int, const char *) args: (olddfd, oldname, newdfd, newname)
|
||||
syscall sys_linkat nr 265 nbargs 5 types: (int, const char *, int, const char *, int) args: (olddfd, oldname, newdfd, newname, flags)
|
||||
syscall sys_symlinkat nr 266 nbargs 3 types: (const char *, int, const char *) args: (oldname, newdfd, newname)
|
||||
syscall sys_readlinkat nr 267 nbargs 4 types: (int, const char *, char *, int) args: (dfd, pathname, buf, bufsiz)
|
||||
syscall sys_fchmodat nr 268 nbargs 3 types: (int, const char *, mode_t) args: (dfd, filename, mode)
|
||||
syscall sys_faccessat nr 269 nbargs 3 types: (int, const char *, int) args: (dfd, filename, mode)
|
||||
syscall sys_pselect6 nr 270 nbargs 6 types: (int, fd_set *, fd_set *, fd_set *, struct timespec *, void *) args: (n, inp, outp, exp, tsp, sig)
|
||||
syscall sys_ppoll nr 271 nbargs 5 types: (struct pollfd *, unsigned int, struct timespec *, const sigset_t *, size_t) args: (ufds, nfds, tsp, sigmask, sigsetsize)
|
||||
syscall sys_unshare nr 272 nbargs 1 types: (unsigned long) args: (unshare_flags)
|
||||
syscall sys_set_robust_list nr 273 nbargs 2 types: (struct robust_list_head *, size_t) args: (head, len)
|
||||
syscall sys_get_robust_list nr 274 nbargs 3 types: (int, struct robust_list_head * *, size_t *) args: (pid, head_ptr, len_ptr)
|
||||
syscall sys_splice nr 275 nbargs 6 types: (int, loff_t *, int, loff_t *, size_t, unsigned int) args: (fd_in, off_in, fd_out, off_out, len, flags)
|
||||
syscall sys_tee nr 276 nbargs 4 types: (int, int, size_t, unsigned int) args: (fdin, fdout, len, flags)
|
||||
syscall sys_vmsplice nr 278 nbargs 4 types: (int, const struct iovec *, unsigned long, unsigned int) args: (fd, iov, nr_segs, flags)
|
||||
syscall sys_utimensat nr 280 nbargs 4 types: (int, const char *, struct timespec *, int) args: (dfd, filename, utimes, flags)
|
||||
syscall sys_epoll_pwait nr 281 nbargs 6 types: (int, struct epoll_event *, int, int, const sigset_t *, size_t) args: (epfd, events, maxevents, timeout, sigmask, sigsetsize)
|
||||
syscall sys_signalfd nr 282 nbargs 3 types: (int, sigset_t *, size_t) args: (ufd, user_mask, sizemask)
|
||||
syscall sys_timerfd_create nr 283 nbargs 2 types: (int, int) args: (clockid, flags)
|
||||
syscall sys_eventfd nr 284 nbargs 1 types: (unsigned int) args: (count)
|
||||
syscall sys_timerfd_settime nr 286 nbargs 4 types: (int, int, const struct itimerspec *, struct itimerspec *) args: (ufd, flags, utmr, otmr)
|
||||
syscall sys_timerfd_gettime nr 287 nbargs 2 types: (int, struct itimerspec *) args: (ufd, otmr)
|
||||
syscall sys_accept4 nr 288 nbargs 4 types: (int, struct sockaddr *, int *, int) args: (fd, upeer_sockaddr, upeer_addrlen, flags)
|
||||
syscall sys_signalfd4 nr 289 nbargs 4 types: (int, sigset_t *, size_t, int) args: (ufd, user_mask, sizemask, flags)
|
||||
syscall sys_eventfd2 nr 290 nbargs 2 types: (unsigned int, int) args: (count, flags)
|
||||
syscall sys_epoll_create1 nr 291 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_dup3 nr 292 nbargs 3 types: (unsigned int, unsigned int, int) args: (oldfd, newfd, flags)
|
||||
syscall sys_pipe2 nr 293 nbargs 2 types: (int *, int) args: (fildes, flags)
|
||||
syscall sys_inotify_init1 nr 294 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_preadv nr 295 nbargs 5 types: (unsigned long, const struct iovec *, unsigned long, unsigned long, unsigned long) args: (fd, vec, vlen, pos_l, pos_h)
|
||||
syscall sys_pwritev nr 296 nbargs 5 types: (unsigned long, const struct iovec *, unsigned long, unsigned long, unsigned long) args: (fd, vec, vlen, pos_l, pos_h)
|
||||
syscall sys_rt_tgsigqueueinfo nr 297 nbargs 4 types: (pid_t, pid_t, int, siginfo_t *) args: (tgid, pid, sig, uinfo)
|
||||
syscall sys_perf_event_open nr 298 nbargs 5 types: (struct perf_event_attr *, pid_t, int, int, unsigned long) args: (attr_uptr, pid, cpu, group_fd, flags)
|
||||
syscall sys_recvmmsg nr 299 nbargs 5 types: (int, struct mmsghdr *, unsigned int, unsigned int, struct timespec *) args: (fd, mmsg, vlen, flags, timeout)
|
||||
syscall sys_prlimit64 nr 302 nbargs 4 types: (pid_t, unsigned int, const struct rlimit64 *, struct rlimit64 *) args: (pid, resource, new_rlim, old_rlim)
|
||||
syscall sys_clock_adjtime nr 305 nbargs 2 types: (const clockid_t, struct timex *) args: (which_clock, utx)
|
||||
syscall sys_syncfs nr 306 nbargs 1 types: (int) args: (fd)
|
||||
syscall sys_sendmmsg nr 307 nbargs 4 types: (int, struct mmsghdr *, unsigned int, unsigned int) args: (fd, mmsg, vlen, flags)
|
||||
syscall sys_setns nr 308 nbargs 2 types: (int, int) args: (fd, nstype)
|
@ -0,0 +1,291 @@
|
||||
syscall sys_restart_syscall nr 0 nbargs 0 types: () args: ()
|
||||
syscall sys_exit nr 1 nbargs 1 types: (int) args: (error_code)
|
||||
syscall sys_read nr 3 nbargs 3 types: (unsigned int, char *, size_t) args: (fd, buf, count)
|
||||
syscall sys_write nr 4 nbargs 3 types: (unsigned int, const char *, size_t) args: (fd, buf, count)
|
||||
syscall sys_open nr 5 nbargs 3 types: (const char *, int, int) args: (filename, flags, mode)
|
||||
syscall sys_close nr 6 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_waitpid nr 7 nbargs 3 types: (pid_t, int *, int) args: (pid, stat_addr, options)
|
||||
syscall sys_creat nr 8 nbargs 2 types: (const char *, int) args: (pathname, mode)
|
||||
syscall sys_link nr 9 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_unlink nr 10 nbargs 1 types: (const char *) args: (pathname)
|
||||
syscall sys_chdir nr 12 nbargs 1 types: (const char *) args: (filename)
|
||||
syscall sys_time nr 13 nbargs 1 types: (time_t *) args: (tloc)
|
||||
syscall sys_mknod nr 14 nbargs 3 types: (const char *, int, unsigned) args: (filename, mode, dev)
|
||||
syscall sys_chmod nr 15 nbargs 2 types: (const char *, mode_t) args: (filename, mode)
|
||||
syscall sys_lchown16 nr 16 nbargs 3 types: (const char *, old_uid_t, old_gid_t) args: (filename, user, group)
|
||||
syscall sys_stat nr 18 nbargs 2 types: (const char *, struct __old_kernel_stat *) args: (filename, statbuf)
|
||||
syscall sys_lseek nr 19 nbargs 3 types: (unsigned int, off_t, unsigned int) args: (fd, offset, origin)
|
||||
syscall sys_getpid nr 20 nbargs 0 types: () args: ()
|
||||
syscall sys_mount nr 21 nbargs 5 types: (char *, char *, char *, unsigned long, void *) args: (dev_name, dir_name, type, flags, data)
|
||||
syscall sys_oldumount nr 22 nbargs 1 types: (char *) args: (name)
|
||||
syscall sys_setuid16 nr 23 nbargs 1 types: (old_uid_t) args: (uid)
|
||||
syscall sys_getuid16 nr 24 nbargs 0 types: () args: ()
|
||||
syscall sys_stime nr 25 nbargs 1 types: (time_t *) args: (tptr)
|
||||
syscall sys_ptrace nr 26 nbargs 4 types: (long, long, unsigned long, unsigned long) args: (request, pid, addr, data)
|
||||
syscall sys_alarm nr 27 nbargs 1 types: (unsigned int) args: (seconds)
|
||||
syscall sys_fstat nr 28 nbargs 2 types: (unsigned int, struct __old_kernel_stat *) args: (fd, statbuf)
|
||||
syscall sys_pause nr 29 nbargs 0 types: () args: ()
|
||||
syscall sys_utime nr 30 nbargs 2 types: (char *, struct utimbuf *) args: (filename, times)
|
||||
syscall sys_access nr 33 nbargs 2 types: (const char *, int) args: (filename, mode)
|
||||
syscall sys_nice nr 34 nbargs 1 types: (int) args: (increment)
|
||||
syscall sys_sync nr 36 nbargs 0 types: () args: ()
|
||||
syscall sys_kill nr 37 nbargs 2 types: (pid_t, int) args: (pid, sig)
|
||||
syscall sys_rename nr 38 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_mkdir nr 39 nbargs 2 types: (const char *, int) args: (pathname, mode)
|
||||
syscall sys_rmdir nr 40 nbargs 1 types: (const char *) args: (pathname)
|
||||
syscall sys_dup nr 41 nbargs 1 types: (unsigned int) args: (fildes)
|
||||
syscall sys_pipe nr 42 nbargs 1 types: (int *) args: (fildes)
|
||||
syscall sys_times nr 43 nbargs 1 types: (struct tms *) args: (tbuf)
|
||||
syscall sys_brk nr 45 nbargs 1 types: (unsigned long) args: (brk)
|
||||
syscall sys_setgid16 nr 46 nbargs 1 types: (old_gid_t) args: (gid)
|
||||
syscall sys_getgid16 nr 47 nbargs 0 types: () args: ()
|
||||
syscall sys_signal nr 48 nbargs 2 types: (int, __sighandler_t) args: (sig, handler)
|
||||
syscall sys_geteuid16 nr 49 nbargs 0 types: () args: ()
|
||||
syscall sys_getegid16 nr 50 nbargs 0 types: () args: ()
|
||||
syscall sys_acct nr 51 nbargs 1 types: (const char *) args: (name)
|
||||
syscall sys_umount nr 52 nbargs 2 types: (char *, int) args: (name, flags)
|
||||
syscall sys_ioctl nr 54 nbargs 3 types: (unsigned int, unsigned int, unsigned long) args: (fd, cmd, arg)
|
||||
syscall sys_fcntl nr 55 nbargs 3 types: (unsigned int, unsigned int, unsigned long) args: (fd, cmd, arg)
|
||||
syscall sys_setpgid nr 57 nbargs 2 types: (pid_t, pid_t) args: (pid, pgid)
|
||||
syscall sys_olduname nr 59 nbargs 1 types: (struct oldold_utsname *) args: (name)
|
||||
syscall sys_umask nr 60 nbargs 1 types: (int) args: (mask)
|
||||
syscall sys_chroot nr 61 nbargs 1 types: (const char *) args: (filename)
|
||||
syscall sys_ustat nr 62 nbargs 2 types: (unsigned, struct ustat *) args: (dev, ubuf)
|
||||
syscall sys_dup2 nr 63 nbargs 2 types: (unsigned int, unsigned int) args: (oldfd, newfd)
|
||||
syscall sys_getppid nr 64 nbargs 0 types: () args: ()
|
||||
syscall sys_getpgrp nr 65 nbargs 0 types: () args: ()
|
||||
syscall sys_setsid nr 66 nbargs 0 types: () args: ()
|
||||
syscall sys_sgetmask nr 68 nbargs 0 types: () args: ()
|
||||
syscall sys_ssetmask nr 69 nbargs 1 types: (int) args: (newmask)
|
||||
syscall sys_setreuid16 nr 70 nbargs 2 types: (old_uid_t, old_uid_t) args: (ruid, euid)
|
||||
syscall sys_setregid16 nr 71 nbargs 2 types: (old_gid_t, old_gid_t) args: (rgid, egid)
|
||||
syscall sys_sigpending nr 73 nbargs 1 types: (old_sigset_t *) args: (set)
|
||||
syscall sys_sethostname nr 74 nbargs 2 types: (char *, int) args: (name, len)
|
||||
syscall sys_setrlimit nr 75 nbargs 2 types: (unsigned int, struct rlimit *) args: (resource, rlim)
|
||||
syscall sys_old_getrlimit nr 76 nbargs 2 types: (unsigned int, struct rlimit *) args: (resource, rlim)
|
||||
syscall sys_getrusage nr 77 nbargs 2 types: (int, struct rusage *) args: (who, ru)
|
||||
syscall sys_gettimeofday nr 78 nbargs 2 types: (struct timeval *, struct timezone *) args: (tv, tz)
|
||||
syscall sys_settimeofday nr 79 nbargs 2 types: (struct timeval *, struct timezone *) args: (tv, tz)
|
||||
syscall sys_getgroups16 nr 80 nbargs 2 types: (int, old_gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_setgroups16 nr 81 nbargs 2 types: (int, old_gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_old_select nr 82 nbargs 1 types: (struct sel_arg_struct *) args: (arg)
|
||||
syscall sys_symlink nr 83 nbargs 2 types: (const char *, const char *) args: (oldname, newname)
|
||||
syscall sys_lstat nr 84 nbargs 2 types: (const char *, struct __old_kernel_stat *) args: (filename, statbuf)
|
||||
syscall sys_readlink nr 85 nbargs 3 types: (const char *, char *, int) args: (path, buf, bufsiz)
|
||||
syscall sys_uselib nr 86 nbargs 1 types: (const char *) args: (library)
|
||||
syscall sys_swapon nr 87 nbargs 2 types: (const char *, int) args: (specialfile, swap_flags)
|
||||
syscall sys_reboot nr 88 nbargs 4 types: (int, int, unsigned int, void *) args: (magic1, magic2, cmd, arg)
|
||||
syscall sys_old_readdir nr 89 nbargs 3 types: (unsigned int, struct old_linux_dirent *, unsigned int) args: (fd, dirent, count)
|
||||
syscall sys_old_mmap nr 90 nbargs 1 types: (struct mmap_arg_struct *) args: (arg)
|
||||
syscall sys_munmap nr 91 nbargs 2 types: (unsigned long, size_t) args: (addr, len)
|
||||
syscall sys_truncate nr 92 nbargs 2 types: (const char *, long) args: (path, length)
|
||||
syscall sys_ftruncate nr 93 nbargs 2 types: (unsigned int, unsigned long) args: (fd, length)
|
||||
syscall sys_fchmod nr 94 nbargs 2 types: (unsigned int, mode_t) args: (fd, mode)
|
||||
syscall sys_fchown16 nr 95 nbargs 3 types: (unsigned int, old_uid_t, old_gid_t) args: (fd, user, group)
|
||||
syscall sys_getpriority nr 96 nbargs 2 types: (int, int) args: (which, who)
|
||||
syscall sys_setpriority nr 97 nbargs 3 types: (int, int, int) args: (which, who, niceval)
|
||||
syscall sys_statfs nr 99 nbargs 2 types: (const char *, struct statfs *) args: (pathname, buf)
|
||||
syscall sys_fstatfs nr 100 nbargs 2 types: (unsigned int, struct statfs *) args: (fd, buf)
|
||||
syscall sys_socketcall nr 102 nbargs 2 types: (int, unsigned long *) args: (call, args)
|
||||
syscall sys_syslog nr 103 nbargs 3 types: (int, char *, int) args: (type, buf, len)
|
||||
syscall sys_setitimer nr 104 nbargs 3 types: (int, struct itimerval *, struct itimerval *) args: (which, value, ovalue)
|
||||
syscall sys_getitimer nr 105 nbargs 2 types: (int, struct itimerval *) args: (which, value)
|
||||
syscall sys_newstat nr 106 nbargs 2 types: (const char *, struct stat *) args: (filename, statbuf)
|
||||
syscall sys_newlstat nr 107 nbargs 2 types: (const char *, struct stat *) args: (filename, statbuf)
|
||||
syscall sys_newfstat nr 108 nbargs 2 types: (unsigned int, struct stat *) args: (fd, statbuf)
|
||||
syscall sys_uname nr 109 nbargs 1 types: (struct old_utsname *) args: (name)
|
||||
syscall sys_vhangup nr 111 nbargs 0 types: () args: ()
|
||||
syscall sys_wait4 nr 114 nbargs 4 types: (pid_t, int *, int, struct rusage *) args: (upid, stat_addr, options, ru)
|
||||
syscall sys_swapoff nr 115 nbargs 1 types: (const char *) args: (specialfile)
|
||||
syscall sys_sysinfo nr 116 nbargs 1 types: (struct sysinfo *) args: (info)
|
||||
syscall sys_ipc nr 117 nbargs 6 types: (unsigned int, int, unsigned long, unsigned long, void *, long) args: (call, first, second, third, ptr, fifth)
|
||||
syscall sys_fsync nr 118 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_setdomainname nr 121 nbargs 2 types: (char *, int) args: (name, len)
|
||||
syscall sys_newuname nr 122 nbargs 1 types: (struct new_utsname *) args: (name)
|
||||
syscall sys_adjtimex nr 124 nbargs 1 types: (struct timex *) args: (txc_p)
|
||||
syscall sys_mprotect nr 125 nbargs 3 types: (unsigned long, size_t, unsigned long) args: (start, len, prot)
|
||||
syscall sys_sigprocmask nr 126 nbargs 3 types: (int, old_sigset_t *, old_sigset_t *) args: (how, nset, oset)
|
||||
syscall sys_init_module nr 128 nbargs 3 types: (void *, unsigned long, const char *) args: (umod, len, uargs)
|
||||
syscall sys_delete_module nr 129 nbargs 2 types: (const char *, unsigned int) args: (name_user, flags)
|
||||
syscall sys_quotactl nr 131 nbargs 4 types: (unsigned int, const char *, qid_t, void *) args: (cmd, special, id, addr)
|
||||
syscall sys_getpgid nr 132 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_fchdir nr 133 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_bdflush nr 134 nbargs 2 types: (int, long) args: (func, data)
|
||||
syscall sys_sysfs nr 135 nbargs 3 types: (int, unsigned long, unsigned long) args: (option, arg1, arg2)
|
||||
syscall sys_personality nr 136 nbargs 1 types: (unsigned int) args: (personality)
|
||||
syscall sys_setfsuid16 nr 138 nbargs 1 types: (old_uid_t) args: (uid)
|
||||
syscall sys_setfsgid16 nr 139 nbargs 1 types: (old_gid_t) args: (gid)
|
||||
syscall sys_llseek nr 140 nbargs 5 types: (unsigned int, unsigned long, unsigned long, loff_t *, unsigned int) args: (fd, offset_high, offset_low, result, origin)
|
||||
syscall sys_getdents nr 141 nbargs 3 types: (unsigned int, struct linux_dirent *, unsigned int) args: (fd, dirent, count)
|
||||
syscall sys_select nr 142 nbargs 5 types: (int, fd_set *, fd_set *, fd_set *, struct timeval *) args: (n, inp, outp, exp, tvp)
|
||||
syscall sys_flock nr 143 nbargs 2 types: (unsigned int, unsigned int) args: (fd, cmd)
|
||||
syscall sys_msync nr 144 nbargs 3 types: (unsigned long, size_t, int) args: (start, len, flags)
|
||||
syscall sys_readv nr 145 nbargs 3 types: (unsigned long, const struct iovec *, unsigned long) args: (fd, vec, vlen)
|
||||
syscall sys_writev nr 146 nbargs 3 types: (unsigned long, const struct iovec *, unsigned long) args: (fd, vec, vlen)
|
||||
syscall sys_getsid nr 147 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_fdatasync nr 148 nbargs 1 types: (unsigned int) args: (fd)
|
||||
syscall sys_sysctl nr 149 nbargs 1 types: (struct __sysctl_args *) args: (args)
|
||||
syscall sys_mlock nr 150 nbargs 2 types: (unsigned long, size_t) args: (start, len)
|
||||
syscall sys_munlock nr 151 nbargs 2 types: (unsigned long, size_t) args: (start, len)
|
||||
syscall sys_mlockall nr 152 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_munlockall nr 153 nbargs 0 types: () args: ()
|
||||
syscall sys_sched_setparam nr 154 nbargs 2 types: (pid_t, struct sched_param *) args: (pid, param)
|
||||
syscall sys_sched_getparam nr 155 nbargs 2 types: (pid_t, struct sched_param *) args: (pid, param)
|
||||
syscall sys_sched_setscheduler nr 156 nbargs 3 types: (pid_t, int, struct sched_param *) args: (pid, policy, param)
|
||||
syscall sys_sched_getscheduler nr 157 nbargs 1 types: (pid_t) args: (pid)
|
||||
syscall sys_sched_yield nr 158 nbargs 0 types: () args: ()
|
||||
syscall sys_sched_get_priority_max nr 159 nbargs 1 types: (int) args: (policy)
|
||||
syscall sys_sched_get_priority_min nr 160 nbargs 1 types: (int) args: (policy)
|
||||
syscall sys_sched_rr_get_interval nr 161 nbargs 2 types: (pid_t, struct timespec *) args: (pid, interval)
|
||||
syscall sys_nanosleep nr 162 nbargs 2 types: (struct timespec *, struct timespec *) args: (rqtp, rmtp)
|
||||
syscall sys_mremap nr 163 nbargs 5 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (addr, old_len, new_len, flags, new_addr)
|
||||
syscall sys_setresuid16 nr 164 nbargs 3 types: (old_uid_t, old_uid_t, old_uid_t) args: (ruid, euid, suid)
|
||||
syscall sys_getresuid16 nr 165 nbargs 3 types: (old_uid_t *, old_uid_t *, old_uid_t *) args: (ruid, euid, suid)
|
||||
syscall sys_poll nr 168 nbargs 3 types: (struct pollfd *, unsigned int, long) args: (ufds, nfds, timeout_msecs)
|
||||
syscall sys_setresgid16 nr 170 nbargs 3 types: (old_gid_t, old_gid_t, old_gid_t) args: (rgid, egid, sgid)
|
||||
syscall sys_getresgid16 nr 171 nbargs 3 types: (old_gid_t *, old_gid_t *, old_gid_t *) args: (rgid, egid, sgid)
|
||||
syscall sys_prctl nr 172 nbargs 5 types: (int, unsigned long, unsigned long, unsigned long, unsigned long) args: (option, arg2, arg3, arg4, arg5)
|
||||
syscall sys_rt_sigaction nr 174 nbargs 4 types: (int, const struct sigaction *, struct sigaction *, size_t) args: (sig, act, oact, sigsetsize)
|
||||
syscall sys_rt_sigprocmask nr 175 nbargs 4 types: (int, sigset_t *, sigset_t *, size_t) args: (how, nset, oset, sigsetsize)
|
||||
syscall sys_rt_sigpending nr 176 nbargs 2 types: (sigset_t *, size_t) args: (set, sigsetsize)
|
||||
syscall sys_rt_sigtimedwait nr 177 nbargs 4 types: (const sigset_t *, siginfo_t *, const struct timespec *, size_t) args: (uthese, uinfo, uts, sigsetsize)
|
||||
syscall sys_rt_sigqueueinfo nr 178 nbargs 3 types: (pid_t, int, siginfo_t *) args: (pid, sig, uinfo)
|
||||
syscall sys_rt_sigsuspend nr 179 nbargs 2 types: (sigset_t *, size_t) args: (unewset, sigsetsize)
|
||||
syscall sys_chown16 nr 182 nbargs 3 types: (const char *, old_uid_t, old_gid_t) args: (filename, user, group)
|
||||
syscall sys_getcwd nr 183 nbargs 2 types: (char *, unsigned long) args: (buf, size)
|
||||
syscall sys_capget nr 184 nbargs 2 types: (cap_user_header_t, cap_user_data_t) args: (header, dataptr)
|
||||
syscall sys_capset nr 185 nbargs 2 types: (cap_user_header_t, const cap_user_data_t) args: (header, data)
|
||||
syscall sys_sendfile nr 187 nbargs 4 types: (int, int, off_t *, size_t) args: (out_fd, in_fd, offset, count)
|
||||
syscall sys_getrlimit nr 191 nbargs 2 types: (unsigned int, struct rlimit *) args: (resource, rlim)
|
||||
syscall sys_mmap_pgoff nr 192 nbargs 6 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (addr, len, prot, flags, fd, pgoff)
|
||||
syscall sys_stat64 nr 195 nbargs 2 types: (const char *, struct stat64 *) args: (filename, statbuf)
|
||||
syscall sys_lstat64 nr 196 nbargs 2 types: (const char *, struct stat64 *) args: (filename, statbuf)
|
||||
syscall sys_fstat64 nr 197 nbargs 2 types: (unsigned long, struct stat64 *) args: (fd, statbuf)
|
||||
syscall sys_lchown nr 198 nbargs 3 types: (const char *, uid_t, gid_t) args: (filename, user, group)
|
||||
syscall sys_getuid nr 199 nbargs 0 types: () args: ()
|
||||
syscall sys_getgid nr 200 nbargs 0 types: () args: ()
|
||||
syscall sys_geteuid nr 201 nbargs 0 types: () args: ()
|
||||
syscall sys_getegid nr 202 nbargs 0 types: () args: ()
|
||||
syscall sys_setreuid nr 203 nbargs 2 types: (uid_t, uid_t) args: (ruid, euid)
|
||||
syscall sys_setregid nr 204 nbargs 2 types: (gid_t, gid_t) args: (rgid, egid)
|
||||
syscall sys_getgroups nr 205 nbargs 2 types: (int, gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_setgroups nr 206 nbargs 2 types: (int, gid_t *) args: (gidsetsize, grouplist)
|
||||
syscall sys_fchown nr 207 nbargs 3 types: (unsigned int, uid_t, gid_t) args: (fd, user, group)
|
||||
syscall sys_setresuid nr 208 nbargs 3 types: (uid_t, uid_t, uid_t) args: (ruid, euid, suid)
|
||||
syscall sys_getresuid nr 209 nbargs 3 types: (uid_t *, uid_t *, uid_t *) args: (ruid, euid, suid)
|
||||
syscall sys_setresgid nr 210 nbargs 3 types: (gid_t, gid_t, gid_t) args: (rgid, egid, sgid)
|
||||
syscall sys_getresgid nr 211 nbargs 3 types: (gid_t *, gid_t *, gid_t *) args: (rgid, egid, sgid)
|
||||
syscall sys_chown nr 212 nbargs 3 types: (const char *, uid_t, gid_t) args: (filename, user, group)
|
||||
syscall sys_setuid nr 213 nbargs 1 types: (uid_t) args: (uid)
|
||||
syscall sys_setgid nr 214 nbargs 1 types: (gid_t) args: (gid)
|
||||
syscall sys_setfsuid nr 215 nbargs 1 types: (uid_t) args: (uid)
|
||||
syscall sys_setfsgid nr 216 nbargs 1 types: (gid_t) args: (gid)
|
||||
syscall sys_pivot_root nr 217 nbargs 2 types: (const char *, const char *) args: (new_root, put_old)
|
||||
syscall sys_mincore nr 218 nbargs 3 types: (unsigned long, size_t, unsigned char *) args: (start, len, vec)
|
||||
syscall sys_madvise nr 219 nbargs 3 types: (unsigned long, size_t, int) args: (start, len_in, behavior)
|
||||
syscall sys_getdents64 nr 220 nbargs 3 types: (unsigned int, struct linux_dirent64 *, unsigned int) args: (fd, dirent, count)
|
||||
syscall sys_fcntl64 nr 221 nbargs 3 types: (unsigned int, unsigned int, unsigned long) args: (fd, cmd, arg)
|
||||
syscall sys_gettid nr 224 nbargs 0 types: () args: ()
|
||||
syscall sys_setxattr nr 226 nbargs 5 types: (const char *, const char *, const void *, size_t, int) args: (pathname, name, value, size, flags)
|
||||
syscall sys_lsetxattr nr 227 nbargs 5 types: (const char *, const char *, const void *, size_t, int) args: (pathname, name, value, size, flags)
|
||||
syscall sys_fsetxattr nr 228 nbargs 5 types: (int, const char *, const void *, size_t, int) args: (fd, name, value, size, flags)
|
||||
syscall sys_getxattr nr 229 nbargs 4 types: (const char *, const char *, void *, size_t) args: (pathname, name, value, size)
|
||||
syscall sys_lgetxattr nr 230 nbargs 4 types: (const char *, const char *, void *, size_t) args: (pathname, name, value, size)
|
||||
syscall sys_fgetxattr nr 231 nbargs 4 types: (int, const char *, void *, size_t) args: (fd, name, value, size)
|
||||
syscall sys_listxattr nr 232 nbargs 3 types: (const char *, char *, size_t) args: (pathname, list, size)
|
||||
syscall sys_llistxattr nr 233 nbargs 3 types: (const char *, char *, size_t) args: (pathname, list, size)
|
||||
syscall sys_flistxattr nr 234 nbargs 3 types: (int, char *, size_t) args: (fd, list, size)
|
||||
syscall sys_removexattr nr 235 nbargs 2 types: (const char *, const char *) args: (pathname, name)
|
||||
syscall sys_lremovexattr nr 236 nbargs 2 types: (const char *, const char *) args: (pathname, name)
|
||||
syscall sys_fremovexattr nr 237 nbargs 2 types: (int, const char *) args: (fd, name)
|
||||
syscall sys_tkill nr 238 nbargs 2 types: (pid_t, int) args: (pid, sig)
|
||||
syscall sys_sendfile64 nr 239 nbargs 4 types: (int, int, loff_t *, size_t) args: (out_fd, in_fd, offset, count)
|
||||
syscall sys_futex nr 240 nbargs 6 types: (u32 *, int, u32, struct timespec *, u32 *, u32) args: (uaddr, op, val, utime, uaddr2, val3)
|
||||
syscall sys_sched_setaffinity nr 241 nbargs 3 types: (pid_t, unsigned int, unsigned long *) args: (pid, len, user_mask_ptr)
|
||||
syscall sys_sched_getaffinity nr 242 nbargs 3 types: (pid_t, unsigned int, unsigned long *) args: (pid, len, user_mask_ptr)
|
||||
syscall sys_io_setup nr 245 nbargs 2 types: (unsigned, aio_context_t *) args: (nr_events, ctxp)
|
||||
syscall sys_io_destroy nr 246 nbargs 1 types: (aio_context_t) args: (ctx)
|
||||
syscall sys_io_getevents nr 247 nbargs 5 types: (aio_context_t, long, long, struct io_event *, struct timespec *) args: (ctx_id, min_nr, nr, events, timeout)
|
||||
syscall sys_io_submit nr 248 nbargs 3 types: (aio_context_t, long, struct iocb * *) args: (ctx_id, nr, iocbpp)
|
||||
syscall sys_io_cancel nr 249 nbargs 3 types: (aio_context_t, struct iocb *, struct io_event *) args: (ctx_id, iocb, result)
|
||||
syscall sys_exit_group nr 252 nbargs 1 types: (int) args: (error_code)
|
||||
syscall sys_epoll_create nr 254 nbargs 1 types: (int) args: (size)
|
||||
syscall sys_epoll_ctl nr 255 nbargs 4 types: (int, int, int, struct epoll_event *) args: (epfd, op, fd, event)
|
||||
syscall sys_epoll_wait nr 256 nbargs 4 types: (int, struct epoll_event *, int, int) args: (epfd, events, maxevents, timeout)
|
||||
syscall sys_remap_file_pages nr 257 nbargs 5 types: (unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) args: (start, size, prot, pgoff, flags)
|
||||
syscall sys_set_tid_address nr 258 nbargs 1 types: (int *) args: (tidptr)
|
||||
syscall sys_timer_create nr 259 nbargs 3 types: (const clockid_t, struct sigevent *, timer_t *) args: (which_clock, timer_event_spec, created_timer_id)
|
||||
syscall sys_timer_settime nr 260 nbargs 4 types: (timer_t, int, const struct itimerspec *, struct itimerspec *) args: (timer_id, flags, new_setting, old_setting)
|
||||
syscall sys_timer_gettime nr 261 nbargs 2 types: (timer_t, struct itimerspec *) args: (timer_id, setting)
|
||||
syscall sys_timer_getoverrun nr 262 nbargs 1 types: (timer_t) args: (timer_id)
|
||||
syscall sys_timer_delete nr 263 nbargs 1 types: (timer_t) args: (timer_id)
|
||||
syscall sys_clock_settime nr 264 nbargs 2 types: (const clockid_t, const struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_gettime nr 265 nbargs 2 types: (const clockid_t, struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_getres nr 266 nbargs 2 types: (const clockid_t, struct timespec *) args: (which_clock, tp)
|
||||
syscall sys_clock_nanosleep nr 267 nbargs 4 types: (const clockid_t, int, const struct timespec *, struct timespec *) args: (which_clock, flags, rqtp, rmtp)
|
||||
syscall sys_statfs64 nr 268 nbargs 3 types: (const char *, size_t, struct statfs64 *) args: (pathname, sz, buf)
|
||||
syscall sys_fstatfs64 nr 269 nbargs 3 types: (unsigned int, size_t, struct statfs64 *) args: (fd, sz, buf)
|
||||
syscall sys_tgkill nr 270 nbargs 3 types: (pid_t, pid_t, int) args: (tgid, pid, sig)
|
||||
syscall sys_utimes nr 271 nbargs 2 types: (char *, struct timeval *) args: (filename, utimes)
|
||||
syscall sys_mq_open nr 277 nbargs 4 types: (const char *, int, mode_t, struct mq_attr *) args: (u_name, oflag, mode, u_attr)
|
||||
syscall sys_mq_unlink nr 278 nbargs 1 types: (const char *) args: (u_name)
|
||||
syscall sys_mq_timedsend nr 279 nbargs 5 types: (mqd_t, const char *, size_t, unsigned int, const struct timespec *) args: (mqdes, u_msg_ptr, msg_len, msg_prio, u_abs_timeout)
|
||||
syscall sys_mq_timedreceive nr 280 nbargs 5 types: (mqd_t, char *, size_t, unsigned int *, const struct timespec *) args: (mqdes, u_msg_ptr, msg_len, u_msg_prio, u_abs_timeout)
|
||||
syscall sys_mq_notify nr 281 nbargs 2 types: (mqd_t, const struct sigevent *) args: (mqdes, u_notification)
|
||||
syscall sys_mq_getsetattr nr 282 nbargs 3 types: (mqd_t, const struct mq_attr *, struct mq_attr *) args: (mqdes, u_mqstat, u_omqstat)
|
||||
syscall sys_kexec_load nr 283 nbargs 4 types: (unsigned long, unsigned long, struct kexec_segment *, unsigned long) args: (entry, nr_segments, segments, flags)
|
||||
syscall sys_waitid nr 284 nbargs 5 types: (int, pid_t, struct siginfo *, int, struct rusage *) args: (which, upid, infop, options, ru)
|
||||
syscall sys_add_key nr 286 nbargs 5 types: (const char *, const char *, const void *, size_t, key_serial_t) args: (_type, _description, _payload, plen, ringid)
|
||||
syscall sys_request_key nr 287 nbargs 4 types: (const char *, const char *, const char *, key_serial_t) args: (_type, _description, _callout_info, destringid)
|
||||
syscall sys_keyctl nr 288 nbargs 5 types: (int, unsigned long, unsigned long, unsigned long, unsigned long) args: (option, arg2, arg3, arg4, arg5)
|
||||
syscall sys_ioprio_set nr 289 nbargs 3 types: (int, int, int) args: (which, who, ioprio)
|
||||
syscall sys_ioprio_get nr 290 nbargs 2 types: (int, int) args: (which, who)
|
||||
syscall sys_inotify_init nr 291 nbargs 0 types: () args: ()
|
||||
syscall sys_inotify_add_watch nr 292 nbargs 3 types: (int, const char *, u32) args: (fd, pathname, mask)
|
||||
syscall sys_inotify_rm_watch nr 293 nbargs 2 types: (int, __s32) args: (fd, wd)
|
||||
syscall sys_openat nr 295 nbargs 4 types: (int, const char *, int, int) args: (dfd, filename, flags, mode)
|
||||
syscall sys_mkdirat nr 296 nbargs 3 types: (int, const char *, int) args: (dfd, pathname, mode)
|
||||
syscall sys_mknodat nr 297 nbargs 4 types: (int, const char *, int, unsigned) args: (dfd, filename, mode, dev)
|
||||
syscall sys_fchownat nr 298 nbargs 5 types: (int, const char *, uid_t, gid_t, int) args: (dfd, filename, user, group, flag)
|
||||
syscall sys_futimesat nr 299 nbargs 3 types: (int, const char *, struct timeval *) args: (dfd, filename, utimes)
|
||||
syscall sys_fstatat64 nr 300 nbargs 4 types: (int, const char *, struct stat64 *, int) args: (dfd, filename, statbuf, flag)
|
||||
syscall sys_unlinkat nr 301 nbargs 3 types: (int, const char *, int) args: (dfd, pathname, flag)
|
||||
syscall sys_renameat nr 302 nbargs 4 types: (int, const char *, int, const char *) args: (olddfd, oldname, newdfd, newname)
|
||||
syscall sys_linkat nr 303 nbargs 5 types: (int, const char *, int, const char *, int) args: (olddfd, oldname, newdfd, newname, flags)
|
||||
syscall sys_symlinkat nr 304 nbargs 3 types: (const char *, int, const char *) args: (oldname, newdfd, newname)
|
||||
syscall sys_readlinkat nr 305 nbargs 4 types: (int, const char *, char *, int) args: (dfd, pathname, buf, bufsiz)
|
||||
syscall sys_fchmodat nr 306 nbargs 3 types: (int, const char *, mode_t) args: (dfd, filename, mode)
|
||||
syscall sys_faccessat nr 307 nbargs 3 types: (int, const char *, int) args: (dfd, filename, mode)
|
||||
syscall sys_pselect6 nr 308 nbargs 6 types: (int, fd_set *, fd_set *, fd_set *, struct timespec *, void *) args: (n, inp, outp, exp, tsp, sig)
|
||||
syscall sys_ppoll nr 309 nbargs 5 types: (struct pollfd *, unsigned int, struct timespec *, const sigset_t *, size_t) args: (ufds, nfds, tsp, sigmask, sigsetsize)
|
||||
syscall sys_unshare nr 310 nbargs 1 types: (unsigned long) args: (unshare_flags)
|
||||
syscall sys_set_robust_list nr 311 nbargs 2 types: (struct robust_list_head *, size_t) args: (head, len)
|
||||
syscall sys_get_robust_list nr 312 nbargs 3 types: (int, struct robust_list_head * *, size_t *) args: (pid, head_ptr, len_ptr)
|
||||
syscall sys_splice nr 313 nbargs 6 types: (int, loff_t *, int, loff_t *, size_t, unsigned int) args: (fd_in, off_in, fd_out, off_out, len, flags)
|
||||
syscall sys_tee nr 315 nbargs 4 types: (int, int, size_t, unsigned int) args: (fdin, fdout, len, flags)
|
||||
syscall sys_vmsplice nr 316 nbargs 4 types: (int, const struct iovec *, unsigned long, unsigned int) args: (fd, iov, nr_segs, flags)
|
||||
syscall sys_getcpu nr 318 nbargs 3 types: (unsigned *, unsigned *, struct getcpu_cache *) args: (cpup, nodep, unused)
|
||||
syscall sys_epoll_pwait nr 319 nbargs 6 types: (int, struct epoll_event *, int, int, const sigset_t *, size_t) args: (epfd, events, maxevents, timeout, sigmask, sigsetsize)
|
||||
syscall sys_utimensat nr 320 nbargs 4 types: (int, const char *, struct timespec *, int) args: (dfd, filename, utimes, flags)
|
||||
syscall sys_signalfd nr 321 nbargs 3 types: (int, sigset_t *, size_t) args: (ufd, user_mask, sizemask)
|
||||
syscall sys_timerfd_create nr 322 nbargs 2 types: (int, int) args: (clockid, flags)
|
||||
syscall sys_eventfd nr 323 nbargs 1 types: (unsigned int) args: (count)
|
||||
syscall sys_timerfd_settime nr 325 nbargs 4 types: (int, int, const struct itimerspec *, struct itimerspec *) args: (ufd, flags, utmr, otmr)
|
||||
syscall sys_timerfd_gettime nr 326 nbargs 2 types: (int, struct itimerspec *) args: (ufd, otmr)
|
||||
syscall sys_signalfd4 nr 327 nbargs 4 types: (int, sigset_t *, size_t, int) args: (ufd, user_mask, sizemask, flags)
|
||||
syscall sys_eventfd2 nr 328 nbargs 2 types: (unsigned int, int) args: (count, flags)
|
||||
syscall sys_epoll_create1 nr 329 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_dup3 nr 330 nbargs 3 types: (unsigned int, unsigned int, int) args: (oldfd, newfd, flags)
|
||||
syscall sys_pipe2 nr 331 nbargs 2 types: (int *, int) args: (fildes, flags)
|
||||
syscall sys_inotify_init1 nr 332 nbargs 1 types: (int) args: (flags)
|
||||
syscall sys_preadv nr 333 nbargs 5 types: (unsigned long, const struct iovec *, unsigned long, unsigned long, unsigned long) args: (fd, vec, vlen, pos_l, pos_h)
|
||||
syscall sys_pwritev nr 334 nbargs 5 types: (unsigned long, const struct iovec *, unsigned long, unsigned long, unsigned long) args: (fd, vec, vlen, pos_l, pos_h)
|
||||
syscall sys_rt_tgsigqueueinfo nr 335 nbargs 4 types: (pid_t, pid_t, int, siginfo_t *) args: (tgid, pid, sig, uinfo)
|
||||
syscall sys_perf_event_open nr 336 nbargs 5 types: (struct perf_event_attr *, pid_t, int, int, unsigned long) args: (attr_uptr, pid, cpu, group_fd, flags)
|
||||
syscall sys_recvmmsg nr 337 nbargs 5 types: (int, struct mmsghdr *, unsigned int, unsigned int, struct timespec *) args: (fd, mmsg, vlen, flags, timeout)
|
||||
syscall sys_fanotify_init nr 338 nbargs 2 types: (unsigned int, unsigned int) args: (flags, event_f_flags)
|
||||
syscall sys_prlimit64 nr 340 nbargs 4 types: (pid_t, unsigned int, const struct rlimit64 *, struct rlimit64 *) args: (pid, resource, new_rlim, old_rlim)
|
||||
syscall sys_clock_adjtime nr 343 nbargs 2 types: (const clockid_t, struct timex *) args: (which_clock, utx)
|
||||
syscall sys_syncfs nr 344 nbargs 1 types: (int) args: (fd)
|
||||
syscall sys_sendmmsg nr 345 nbargs 4 types: (int, struct mmsghdr *, unsigned int, unsigned int) args: (fd, mmsg, vlen, flags)
|
||||
syscall sys_setns nr 346 nbargs 2 types: (int, int) args: (fd, nstype)
|
18
drivers/staging/lttng/instrumentation/syscalls/README
Normal file
18
drivers/staging/lttng/instrumentation/syscalls/README
Normal file
@ -0,0 +1,18 @@
|
||||
LTTng system call tracing
|
||||
|
||||
1) lttng-syscall-extractor
|
||||
|
||||
You need to build a kernel with CONFIG_FTRACE_SYSCALLS=y and
|
||||
CONFIG_KALLSYMS_ALL=y for extraction. Apply the linker patch to get your
|
||||
kernel to keep the system call metadata after boot. Then build and load
|
||||
the LTTng syscall extractor module. The module will fail to load (this
|
||||
is expected). See the dmesg output for system call metadata.
|
||||
|
||||
2) Generate system call TRACE_EVENT().
|
||||
|
||||
Take the dmesg metadata and feed it to lttng-syscalls-generate-headers.sh, e.g.,
|
||||
from the instrumentation/syscalls directory. See the script header for
|
||||
usage example.
|
||||
|
||||
After these are created, we just need to follow the new system call additions,
|
||||
no need to regenerate the whole thing, since system calls are only appended to.
|
@ -0,0 +1,3 @@
|
||||
#ifdef CONFIG_X86_64
|
||||
#include "x86-32-syscalls-3.1.0-rc6_integers.h"
|
||||
#endif
|
@ -0,0 +1,3 @@
|
||||
#ifdef CONFIG_X86_64
|
||||
#include "x86-32-syscalls-3.1.0-rc6_pointers.h"
|
||||
#endif
|
@ -0,0 +1,7 @@
|
||||
#ifdef CONFIG_X86_64
|
||||
#include "x86-64-syscalls-3.0.4_integers.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
#include "x86-32-syscalls-3.1.0-rc6_integers.h"
|
||||
#endif
|
@ -0,0 +1,14 @@
|
||||
#define OVERRIDE_32_sys_mmap
|
||||
#define OVERRIDE_64_sys_mmap
|
||||
|
||||
#ifndef CREATE_SYSCALL_TABLE
|
||||
|
||||
SC_TRACE_EVENT(sys_mmap,
|
||||
TP_PROTO(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long off),
|
||||
TP_ARGS(addr, len, prot, flags, fd, off),
|
||||
TP_STRUCT__entry(__field_hex(unsigned long, addr) __field(size_t, len) __field(int, prot) __field(int, flags) __field(int, fd) __field(off_t, offset)),
|
||||
TP_fast_assign(tp_assign(addr, addr) tp_assign(len, len) tp_assign(prot, prot) tp_assign(flags, flags) tp_assign(fd, fd) tp_assign(offset, off)),
|
||||
TP_printk()
|
||||
)
|
||||
|
||||
#endif /* CREATE_SYSCALL_TABLE */
|
@ -0,0 +1,7 @@
|
||||
#ifdef CONFIG_X86_64
|
||||
#include "x86-64-syscalls-3.0.4_pointers.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
#include "x86-32-syscalls-3.1.0-rc6_pointers.h"
|
||||
#endif
|
@ -0,0 +1,4 @@
|
||||
/*
|
||||
* This is a place-holder for override defines for system calls with
|
||||
* pointers (all architectures).
|
||||
*/
|
@ -0,0 +1,55 @@
|
||||
#if !defined(_TRACE_SYSCALLS_UNKNOWN_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_SYSCALLS_UNKNOWN_H
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/syscalls.h>
|
||||
|
||||
#define UNKNOWN_SYSCALL_NRARGS 6
|
||||
|
||||
TRACE_EVENT(sys_unknown,
|
||||
TP_PROTO(unsigned int id, unsigned long *args),
|
||||
TP_ARGS(id, args),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, id)
|
||||
__array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS)
|
||||
),
|
||||
TP_fast_assign(
|
||||
tp_assign(id, id)
|
||||
tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args))
|
||||
),
|
||||
TP_printk()
|
||||
)
|
||||
TRACE_EVENT(compat_sys_unknown,
|
||||
TP_PROTO(unsigned int id, unsigned long *args),
|
||||
TP_ARGS(id, args),
|
||||
TP_STRUCT__entry(
|
||||
__field(unsigned int, id)
|
||||
__array(unsigned long, args, UNKNOWN_SYSCALL_NRARGS)
|
||||
),
|
||||
TP_fast_assign(
|
||||
tp_assign(id, id)
|
||||
tp_memcpy(args, args, UNKNOWN_SYSCALL_NRARGS * sizeof(*args))
|
||||
),
|
||||
TP_printk()
|
||||
)
|
||||
/*
|
||||
* This is going to hook on sys_exit in the kernel.
|
||||
* We change the name so we don't clash with the sys_exit syscall entry
|
||||
* event.
|
||||
*/
|
||||
TRACE_EVENT(exit_syscall,
|
||||
TP_PROTO(struct pt_regs *regs, long ret),
|
||||
TP_ARGS(regs, ret),
|
||||
TP_STRUCT__entry(
|
||||
__field(long, ret)
|
||||
),
|
||||
TP_fast_assign(
|
||||
tp_assign(ret, ret)
|
||||
),
|
||||
TP_printk()
|
||||
)
|
||||
|
||||
#endif /* _TRACE_SYSCALLS_UNKNOWN_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include "../../../probes/define_trace.h"
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,38 @@
|
||||
#ifndef CONFIG_UID16
|
||||
|
||||
#define OVERRIDE_32_sys_getuid16
|
||||
#define OVERRIDE_32_sys_getgid16
|
||||
#define OVERRIDE_32_sys_geteuid16
|
||||
#define OVERRIDE_32_sys_getegid16
|
||||
#define OVERRIDE_32_sys_setuid16
|
||||
#define OVERRIDE_32_sys_setgid16
|
||||
#define OVERRIDE_32_sys_setfsuid16
|
||||
#define OVERRIDE_32_sys_setfsgid16
|
||||
#define OVERRIDE_32_sys_setreuid16
|
||||
#define OVERRIDE_32_sys_setregid16
|
||||
#define OVERRIDE_32_sys_fchown16
|
||||
#define OVERRIDE_32_sys_setresuid16
|
||||
#define OVERRIDE_32_sys_setresgid16
|
||||
|
||||
#define OVERRIDE_TABLE_32_sys_getuid16
|
||||
#define OVERRIDE_TABLE_32_sys_getgid16
|
||||
#define OVERRIDE_TABLE_32_sys_geteuid16
|
||||
#define OVERRIDE_TABLE_32_sys_getegid16
|
||||
#define OVERRIDE_TABLE_32_sys_setuid16
|
||||
#define OVERRIDE_TABLE_32_sys_setgid16
|
||||
#define OVERRIDE_TABLE_32_sys_setreuid16
|
||||
#define OVERRIDE_TABLE_32_sys_setregid16
|
||||
#define OVERRIDE_TABLE_32_sys_fchown16
|
||||
#define OVERRIDE_TABLE_32_sys_setfsuid16
|
||||
#define OVERRIDE_TABLE_32_sys_setfsgid16
|
||||
#define OVERRIDE_TABLE_32_sys_setresuid16
|
||||
#define OVERRIDE_TABLE_32_sys_setresgid16
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef CREATE_SYSCALL_TABLE
|
||||
|
||||
#define OVERRIDE_TABLE_32_sys_mmap
|
||||
TRACE_SYSCALL_TABLE(sys_mmap, sys_mmap, 90, 6)
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,17 @@
|
||||
#ifndef CONFIG_UID16
|
||||
|
||||
#define OVERRIDE_32_sys_getgroups16
|
||||
#define OVERRIDE_32_sys_setgroups16
|
||||
#define OVERRIDE_32_sys_lchown16
|
||||
#define OVERRIDE_32_sys_getresuid16
|
||||
#define OVERRIDE_32_sys_getresgid16
|
||||
#define OVERRIDE_32_sys_chown16
|
||||
|
||||
#define OVERRIDE_TABLE_32_sys_getgroups16
|
||||
#define OVERRIDE_TABLE_32_sys_setgroups16
|
||||
#define OVERRIDE_TABLE_32_sys_lchown16
|
||||
#define OVERRIDE_TABLE_32_sys_getresuid16
|
||||
#define OVERRIDE_TABLE_32_sys_getresgid16
|
||||
#define OVERRIDE_TABLE_32_sys_chown16
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,3 @@
|
||||
/*
|
||||
* this is a place-holder for x86_64 interger syscall definition override.
|
||||
*/
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,5 @@
|
||||
#ifndef CREATE_SYSCALL_TABLE
|
||||
|
||||
#else /* CREATE_SYSCALL_TABLE */
|
||||
|
||||
#endif /* CREATE_SYSCALL_TABLE */
|
@ -0,0 +1 @@
|
||||
obj-m += lttng-syscalls-extractor.o
|
@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2011 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
|
||||
* Copyright 2011 - Julien Desfossez <julien.desfossez@polymtl.ca>
|
||||
*
|
||||
* Dump syscall metadata to console.
|
||||
*
|
||||
* GPLv2 license.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/list.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/kallsyms.h>
|
||||
#include <linux/dcache.h>
|
||||
#include <linux/ftrace_event.h>
|
||||
#include <trace/syscall.h>
|
||||
|
||||
#ifndef CONFIG_FTRACE_SYSCALLS
|
||||
#error "You need to set CONFIG_FTRACE_SYSCALLS=y"
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_KALLSYMS_ALL
|
||||
#error "You need to set CONFIG_KALLSYMS_ALL=y"
|
||||
#endif
|
||||
|
||||
static struct syscall_metadata **__start_syscalls_metadata;
|
||||
static struct syscall_metadata **__stop_syscalls_metadata;
|
||||
|
||||
static __init
|
||||
struct syscall_metadata *find_syscall_meta(unsigned long syscall)
|
||||
{
|
||||
struct syscall_metadata **iter;
|
||||
|
||||
for (iter = __start_syscalls_metadata;
|
||||
iter < __stop_syscalls_metadata; iter++) {
|
||||
if ((*iter)->syscall_nr == syscall)
|
||||
return (*iter);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int init_module(void)
|
||||
{
|
||||
struct syscall_metadata *meta;
|
||||
int i;
|
||||
|
||||
__start_syscalls_metadata = (void *) kallsyms_lookup_name("__start_syscalls_metadata");
|
||||
__stop_syscalls_metadata = (void *) kallsyms_lookup_name("__stop_syscalls_metadata");
|
||||
|
||||
for (i = 0; i < NR_syscalls; i++) {
|
||||
int j;
|
||||
|
||||
meta = find_syscall_meta(i);
|
||||
if (!meta)
|
||||
continue;
|
||||
printk("syscall %s nr %d nbargs %d ",
|
||||
meta->name, meta->syscall_nr, meta->nb_args);
|
||||
printk("types: (");
|
||||
for (j = 0; j < meta->nb_args; j++) {
|
||||
if (j > 0)
|
||||
printk(", ");
|
||||
printk("%s", meta->types[j]);
|
||||
}
|
||||
printk(") ");
|
||||
printk("args: (");
|
||||
for (j = 0; j < meta->nb_args; j++) {
|
||||
if (j > 0)
|
||||
printk(", ");
|
||||
printk("%s", meta->args[j]);
|
||||
}
|
||||
printk(")\n");
|
||||
}
|
||||
printk("SUCCESS\n");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
void cleanup_module(void)
|
||||
{
|
||||
}
|
||||
|
||||
MODULE_LICENSE("GPL");
|
@ -0,0 +1,275 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Generate system call probe description macros from syscall metadata dump file.
|
||||
# example usage:
|
||||
#
|
||||
# lttng-syscalls-generate-headers.sh integers 3.0.4 x86-64-syscalls-3.0.4 64
|
||||
# lttng-syscalls-generate-headers.sh pointers 3.0.4 x86-64-syscalls-3.0.4 64
|
||||
|
||||
CLASS=$1
|
||||
INPUTDIR=$2
|
||||
INPUTFILE=$3
|
||||
BITNESS=$4
|
||||
INPUT=${INPUTDIR}/${INPUTFILE}
|
||||
SRCFILE=gen.tmp.0
|
||||
TMPFILE=gen.tmp.1
|
||||
HEADER=headers/${INPUTFILE}_${CLASS}.h
|
||||
|
||||
cp ${INPUT} ${SRCFILE}
|
||||
|
||||
#Cleanup
|
||||
perl -p -e 's/^\[.*\] //g' ${SRCFILE} > ${TMPFILE}
|
||||
mv ${TMPFILE} ${SRCFILE}
|
||||
|
||||
perl -p -e 's/^syscall sys_([^ ]*)/syscall $1/g' ${SRCFILE} > ${TMPFILE}
|
||||
mv ${TMPFILE} ${SRCFILE}
|
||||
|
||||
#Filter
|
||||
|
||||
if [ "$CLASS" = integers ]; then
|
||||
#select integers and no-args.
|
||||
CLASSCAP=INTEGERS
|
||||
grep -v "\\*\|cap_user_header_t" ${SRCFILE} > ${TMPFILE}
|
||||
mv ${TMPFILE} ${SRCFILE}
|
||||
fi
|
||||
|
||||
|
||||
if [ "$CLASS" = pointers ]; then
|
||||
#select system calls using pointers.
|
||||
CLASSCAP=POINTERS
|
||||
grep "\\*\|cap_#user_header_t" ${SRCFILE} > ${TMPFILE}
|
||||
mv ${TMPFILE} ${SRCFILE}
|
||||
fi
|
||||
|
||||
echo "/* THIS FILE IS AUTO-GENERATED. DO NOT EDIT */" > ${HEADER}
|
||||
|
||||
echo \
|
||||
"#ifndef CREATE_SYSCALL_TABLE
|
||||
|
||||
#if !defined(_TRACE_SYSCALLS_${CLASSCAP}_H) || defined(TRACE_HEADER_MULTI_READ)
|
||||
#define _TRACE_SYSCALLS_${CLASSCAP}_H
|
||||
|
||||
#include <linux/tracepoint.h>
|
||||
#include <linux/syscalls.h>
|
||||
#include \"${INPUTFILE}_${CLASS}_override.h\"
|
||||
#include \"syscalls_${CLASS}_override.h\"
|
||||
" >> ${HEADER}
|
||||
|
||||
if [ "$CLASS" = integers ]; then
|
||||
|
||||
NRARGS=0
|
||||
|
||||
echo \
|
||||
'SC_DECLARE_EVENT_CLASS_NOARGS(syscalls_noargs,\n'\
|
||||
' TP_STRUCT__entry(),\n'\
|
||||
' TP_fast_assign(),\n'\
|
||||
' TP_printk()\n'\
|
||||
')'\
|
||||
>> ${HEADER}
|
||||
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^)]*)\) '\
|
||||
'args: \(([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_DEFINE_EVENT_NOARGS(syscalls_noargs, sys_$1)\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# types: 4
|
||||
# args 5
|
||||
|
||||
NRARGS=1
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^)]*)\) '\
|
||||
'args: \(([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $5),\n'\
|
||||
' TP_ARGS($5),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $5)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $5, $5)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
# types: 4 5
|
||||
# args 6 7
|
||||
|
||||
NRARGS=2
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^,]*), ([^)]*)\) '\
|
||||
'args: \(([^,]*), ([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $6, $5 $7),\n'\
|
||||
' TP_ARGS($6, $7),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $6) __field($5, $7)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $6, $6) tp_assign($5, $7, $7)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
# types: 4 5 6
|
||||
# args 7 8 9
|
||||
|
||||
NRARGS=3
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^,]*), ([^,]*), ([^)]*)\) '\
|
||||
'args: \(([^,]*), ([^,]*), ([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $7, $5 $8, $6 $9),\n'\
|
||||
' TP_ARGS($7, $8, $9),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $7) __field($5, $8) __field($6, $9)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $7, $7) tp_assign($5, $8, $8) tp_assign($6, $9, $9)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
|
||||
# types: 4 5 6 7
|
||||
# args 8 9 10 11
|
||||
|
||||
NRARGS=4
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\
|
||||
'args: \(([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $8, $5 $9, $6 $10, $7 $11),\n'\
|
||||
' TP_ARGS($8, $9, $10, $11),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $8) __field($5, $9) __field($6, $10) __field($7, $11)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $8, $8) tp_assign($5, $9, $9) tp_assign($6, $10, $10) tp_assign($7, $11, $11)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
# types: 4 5 6 7 8
|
||||
# args 9 10 11 12 13
|
||||
|
||||
NRARGS=5
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\) '\
|
||||
'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $9, $5 $10, $6 $11, $7 $12, $8 $13),\n'\
|
||||
' TP_ARGS($9, $10, $11, $12, $13),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $9) __field($5, $10) __field($6, $11) __field($7, $12) __field($8, $13)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $9, $9) tp_assign($5, $10, $10) tp_assign($6, $11, $11) tp_assign($7, $12, $12) tp_assign($8, $13, $13)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
|
||||
# types: 4 5 6 7 8 9
|
||||
# args 10 11 12 13 14 15
|
||||
|
||||
NRARGS=6
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) '\
|
||||
'types: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\) '\
|
||||
'args: \(([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^,]*), ([^\)]*)\)/'\
|
||||
'#ifndef OVERRIDE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'SC_TRACE_EVENT(sys_$1,\n'\
|
||||
' TP_PROTO($4 $10, $5 $11, $6 $12, $7 $13, $8 $14, $9 $15),\n'\
|
||||
' TP_ARGS($10, $11, $12, $13, $14, $15),\n'\
|
||||
' TP_STRUCT__entry(__field($4, $10) __field($5, $11) __field($6, $12) __field($7, $13) __field($8, $14) __field($9, $15)),\n'\
|
||||
' TP_fast_assign(tp_assign($4, $10, $10) tp_assign($5, $11, $11) tp_assign($6, $12, $12) tp_assign($7, $13, $13) tp_assign($8, $14, $14) tp_assign($9, $15, $15)),\n'\
|
||||
' TP_printk()\n'\
|
||||
')\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
# Macro for tracing syscall table
|
||||
|
||||
rm -f ${TMPFILE}
|
||||
for NRARGS in $(seq 0 6); do
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} >> ${TMPFILE}
|
||||
done
|
||||
|
||||
echo \
|
||||
"
|
||||
#endif /* _TRACE_SYSCALLS_${CLASSCAP}_H */
|
||||
|
||||
/* This part must be outside protection */
|
||||
#include \"../../../probes/define_trace.h\"
|
||||
|
||||
#else /* CREATE_SYSCALL_TABLE */
|
||||
|
||||
#include \"${INPUTFILE}_${CLASS}_override.h\"
|
||||
#include \"syscalls_${CLASS}_override.h\"
|
||||
" >> ${HEADER}
|
||||
|
||||
NRARGS=0
|
||||
|
||||
if [ "$CLASS" = integers ]; then
|
||||
#noargs
|
||||
grep "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) .*$/'\
|
||||
'#ifndef OVERRIDE_TABLE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'TRACE_SYSCALL_TABLE\(syscalls_noargs, sys_$1, $2, $3\)\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
fi
|
||||
|
||||
#others.
|
||||
grep -v "^syscall [^ ]* nr [^ ]* nbargs ${NRARGS} " ${SRCFILE} > ${TMPFILE}
|
||||
perl -p -e 's/^syscall ([^ ]*) nr ([^ ]*) nbargs ([^ ]*) .*$/'\
|
||||
'#ifndef OVERRIDE_TABLE_'"${BITNESS}"'_sys_$1\n'\
|
||||
'TRACE_SYSCALL_TABLE(sys_$1, sys_$1, $2, $3)\n'\
|
||||
'#endif/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
echo -n \
|
||||
"
|
||||
#endif /* CREATE_SYSCALL_TABLE */
|
||||
" >> ${HEADER}
|
||||
|
||||
#fields names: ...char * type with *name* or *file* or *path* or *root*
|
||||
# or *put_old* or *type*
|
||||
cp -f ${HEADER} ${TMPFILE}
|
||||
rm -f ${HEADER}
|
||||
perl -p -e 's/__field\(([^,)]*char \*), ([^\)]*)(name|file|path|root|put_old|type)([^\)]*)\)/__string_from_user($2$3$4, $2$3$4)/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
cp -f ${HEADER} ${TMPFILE}
|
||||
rm -f ${HEADER}
|
||||
perl -p -e 's/tp_assign\(([^,)]*char \*), ([^,]*)(name|file|path|root|put_old|type)([^,]*), ([^\)]*)\)/tp_copy_string_from_user($2$3$4, $5)/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
#prettify addresses heuristics.
|
||||
#field names with addr or ptr
|
||||
cp -f ${HEADER} ${TMPFILE}
|
||||
rm -f ${HEADER}
|
||||
perl -p -e 's/__field\(([^,)]*), ([^,)]*addr|[^,)]*ptr)([^),]*)\)/__field_hex($1, $2$3)/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
#field types ending with '*'
|
||||
cp -f ${HEADER} ${TMPFILE}
|
||||
rm -f ${HEADER}
|
||||
perl -p -e 's/__field\(([^,)]*\*), ([^),]*)\)/__field_hex($1, $2)/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
#strip the extra type information from tp_assign.
|
||||
cp -f ${HEADER} ${TMPFILE}
|
||||
rm -f ${HEADER}
|
||||
perl -p -e 's/tp_assign\(([^,)]*), ([^,]*), ([^\)]*)\)/tp_assign($2, $3)/g'\
|
||||
${TMPFILE} >> ${HEADER}
|
||||
|
||||
rm -f ${INPUTFILE}.tmp
|
||||
rm -f ${TMPFILE}
|
||||
rm -f ${SRCFILE}
|
Loading…
Reference in New Issue
Block a user