diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/syscall_64.h | 301 | ||||
-rw-r--r-- | include/syscall_64_2.6.18.h | 301 | ||||
-rw-r--r-- | include/syscall_64_2.6.32.h | 312 | ||||
-rw-r--r-- | include/syscall_names.h | 438 |
4 files changed, 1352 insertions, 0 deletions
diff --git a/include/syscall_64.h b/include/syscall_64.h new file mode 100644 index 0000000..6b1ade7 --- /dev/null +++ b/include/syscall_64.h @@ -0,0 +1,301 @@ +#define __NR_read 0 +#define __NR_write 1 +#define __NR_open 2 +#define __NR_close 3 +#define __NR_stat 4 +#define __NR_fstat 5 +#define __NR_lstat 6 +#define __NR_poll 7 +#define __NR_lseek 8 +#define __NR_mmap 9 +#define __NR_mprotect 10 +#define __NR_munmap 11 +#define __NR_brk 12 +#define __NR_rt_sigaction 13 +#define __NR_rt_sigprocmask 14 +#define __NR_rt_sigreturn 15 +#define __NR_ioctl 16 +#define __NR_pread64 17 +#define __NR_pwrite64 18 +#define __NR_readv 19 +#define __NR_writev 20 +#define __NR_access 21 +#define __NR_pipe 22 +#define __NR_select 23 +#define __NR_sched_yield 24 +#define __NR_mremap 25 +#define __NR_msync 26 +#define __NR_mincore 27 +#define __NR_madvise 28 +#define __NR_shmget 29 +#define __NR_shmat 30 +#define __NR_shmctl 31 +#define __NR_dup 32 +#define __NR_dup2 33 +#define __NR_pause 34 +#define __NR_nanosleep 35 +#define __NR_getitimer 36 +#define __NR_alarm 37 +#define __NR_setitimer 38 +#define __NR_getpid 39 +#define __NR_sendfile 40 +#define __NR_socket 41 +#define __NR_connect 42 +#define __NR_accept 43 +#define __NR_sendto 44 +#define __NR_recvfrom 45 +#define __NR_sendmsg 46 +#define __NR_recvmsg 47 +#define __NR_shutdown 48 +#define __NR_bind 49 +#define __NR_listen 50 +#define __NR_getsockname 51 +#define __NR_getpeername 52 +#define __NR_socketpair 53 +#define __NR_setsockopt 54 +#define __NR_getsockopt 55 +#define __NR_clone 56 +#define __NR_fork 57 +#define __NR_vfork 58 +#define __NR_execve 59 +#define __NR_exit 60 +#define __NR_wait4 61 +#define __NR_kill 62 +#define __NR_uname 63 +#define __NR_semget 64 +#define __NR_semop 65 +#define __NR_semctl 66 +#define __NR_shmdt 67 +#define __NR_msgget 68 +#define __NR_msgsnd 69 +#define __NR_msgrcv 70 +#define __NR_msgctl 71 +#define __NR_fcntl 72 +#define __NR_flock 73 +#define __NR_fsync 74 +#define __NR_fdatasync 75 +#define __NR_truncate 76 +#define __NR_ftruncate 77 +#define __NR_getdents 78 +#define __NR_getcwd 79 +#define __NR_chdir 80 +#define __NR_fchdir 81 +#define __NR_rename 82 +#define __NR_mkdir 83 +#define __NR_rmdir 84 +#define __NR_creat 85 +#define __NR_link 86 +#define __NR_unlink 87 +#define __NR_symlink 88 +#define __NR_readlink 89 +#define __NR_chmod 90 +#define __NR_fchmod 91 +#define __NR_chown 92 +#define __NR_fchown 93 +#define __NR_lchown 94 +#define __NR_umask 95 +#define __NR_gettimeofday 96 +#define __NR_getrlimit 97 +#define __NR_getrusage 98 +#define __NR_sysinfo 99 +#define __NR_times 100 +#define __NR_ptrace 101 +#define __NR_getuid 102 +#define __NR_syslog 103 +#define __NR_getgid 104 +#define __NR_setuid 105 +#define __NR_setgid 106 +#define __NR_geteuid 107 +#define __NR_getegid 108 +#define __NR_setpgid 109 +#define __NR_getppid 110 +#define __NR_getpgrp 111 +#define __NR_setsid 112 +#define __NR_setreuid 113 +#define __NR_setregid 114 +#define __NR_getgroups 115 +#define __NR_setgroups 116 +#define __NR_setresuid 117 +#define __NR_getresuid 118 +#define __NR_setresgid 119 +#define __NR_getresgid 120 +#define __NR_getpgid 121 +#define __NR_setfsuid 122 +#define __NR_setfsgid 123 +#define __NR_getsid 124 +#define __NR_capget 125 +#define __NR_capset 126 +#define __NR_rt_sigpending 127 +#define __NR_rt_sigtimedwait 128 +#define __NR_rt_sigqueueinfo 129 +#define __NR_rt_sigsuspend 130 +#define __NR_sigaltstack 131 +#define __NR_utime 132 +#define __NR_mknod 133 +#define __NR_uselib 134 +#define __NR_personality 135 +#define __NR_ustat 136 +#define __NR_statfs 137 +#define __NR_fstatfs 138 +#define __NR_sysfs 139 +#define __NR_getpriority 140 +#define __NR_setpriority 141 +#define __NR_sched_setparam 142 +#define __NR_sched_getparam 143 +#define __NR_sched_setscheduler 144 +#define __NR_sched_getscheduler 145 +#define __NR_sched_get_priority_max 146 +#define __NR_sched_get_priority_min 147 +#define __NR_sched_rr_get_interval 148 +#define __NR_mlock 149 +#define __NR_munlock 150 +#define __NR_mlockall 151 +#define __NR_munlockall 152 +#define __NR_vhangup 153 +#define __NR_modify_ldt 154 +#define __NR_pivot_root 155 +#define __NR__sysctl 156 +#define __NR_prctl 157 +#define __NR_arch_prctl 158 +#define __NR_adjtimex 159 +#define __NR_setrlimit 160 +#define __NR_chroot 161 +#define __NR_sync 162 +#define __NR_acct 163 +#define __NR_settimeofday 164 +#define __NR_mount 165 +#define __NR_umount2 166 +#define __NR_swapon 167 +#define __NR_swapoff 168 +#define __NR_reboot 169 +#define __NR_sethostname 170 +#define __NR_setdomainname 171 +#define __NR_iopl 172 +#define __NR_ioperm 173 +#define __NR_create_module 174 +#define __NR_init_module 175 +#define __NR_delete_module 176 +#define __NR_get_kernel_syms 177 +#define __NR_query_module 178 +#define __NR_quotactl 179 +#define __NR_nfsservctl 180 +#define __NR_getpmsg 181 /* reserved for LiS/STREAMS */ +#define __NR_putpmsg 182 /* reserved for LiS/STREAMS */ +#define __NR_afs_syscall 183 /* reserved for AFS */ +#define __NR_tuxcall 184 /* reserved for tux */ +#define __NR_security 185 +#define __NR_gettid 186 +#define __NR_readahead 187 +#define __NR_setxattr 188 +#define __NR_lsetxattr 189 +#define __NR_fsetxattr 190 +#define __NR_getxattr 191 +#define __NR_lgetxattr 192 +#define __NR_fgetxattr 193 +#define __NR_listxattr 194 +#define __NR_llistxattr 195 +#define __NR_flistxattr 196 +#define __NR_removexattr 197 +#define __NR_lremovexattr 198 +#define __NR_fremovexattr 199 +#define __NR_tkill 200 +#define __NR_time 201 +#define __NR_futex 202 +#define __NR_sched_setaffinity 203 +#define __NR_sched_getaffinity 204 +#define __NR_set_thread_area 205 +#define __NR_io_setup 206 +#define __NR_io_destroy 207 +#define __NR_io_getevents 208 +#define __NR_io_submit 209 +#define __NR_io_cancel 210 +#define __NR_get_thread_area 211 +#define __NR_lookup_dcookie 212 +#define __NR_epoll_create 213 +#define __NR_epoll_ctl_old 214 +#define __NR_epoll_wait_old 215 +#define __NR_remap_file_pages 216 +#define __NR_getdents64 217 +#define __NR_set_tid_address 218 +#define __NR_restart_syscall 219 +#define __NR_semtimedop 220 +#define __NR_fadvise64 221 +#define __NR_timer_create 222 +#define __NR_timer_settime 223 +#define __NR_timer_gettime 224 +#define __NR_timer_getoverrun 225 +#define __NR_timer_delete 226 +#define __NR_clock_settime 227 +#define __NR_clock_gettime 228 +#define __NR_clock_getres 229 +#define __NR_clock_nanosleep 230 +#define __NR_exit_group 231 +#define __NR_epoll_wait 232 +#define __NR_epoll_ctl 233 +#define __NR_tgkill 234 +#define __NR_utimes 235 +#define __NR_vserver 236 +#define __NR_mbind 237 +#define __NR_set_mempolicy 238 +#define __NR_get_mempolicy 239 +#define __NR_mq_open 240 +#define __NR_mq_unlink 241 +#define __NR_mq_timedsend 242 +#define __NR_mq_timedreceive 243 +#define __NR_mq_notify 244 +#define __NR_mq_getsetattr 245 +#define __NR_kexec_load 246 +#define __NR_waitid 247 +#define __NR_add_key 248 +#define __NR_request_key 249 +#define __NR_keyctl 250 +#define __NR_ioprio_set 251 +#define __NR_ioprio_get 252 +#define __NR_inotify_init 253 +#define __NR_inotify_add_watch 254 +#define __NR_inotify_rm_watch 255 +#define __NR_migrate_pages 256 +#define __NR_openat 257 +#define __NR_mkdirat 258 +#define __NR_mknodat 259 +#define __NR_fchownat 260 +#define __NR_futimesat 261 +#define __NR_newfstatat 262 +#define __NR_unlinkat 263 +#define __NR_renameat 264 +#define __NR_linkat 265 +#define __NR_symlinkat 266 +#define __NR_readlinkat 267 +#define __NR_fchmodat 268 +#define __NR_faccessat 269 +#define __NR_pselect6 270 +#define __NR_ppoll 271 +#define __NR_unshare 272 +#define __NR_set_robust_list 273 +#define __NR_get_robust_list 274 +#define __NR_splice 275 +#define __NR_tee 276 +#define __NR_sync_file_range 277 +#define __NR_vmsplice 278 +#define __NR_move_pages 279 +#define __NR_utimensat 280 +#define __NR_epoll_pwait 281 +#define __NR_signalfd 282 +#define __NR_timerfd_create 283 +#define __NR_eventfd 284 +#define __NR_fallocate 285 +#define __NR_timerfd_settime 286 +#define __NR_timerfd_gettime 287 +#define __NR_accept4 288 +#define __NR_signalfd4 289 +#define __NR_eventfd2 290 +#define __NR_epoll_create1 291 +#define __NR_dup3 292 +#define __NR_pipe2 293 +#define __NR_inotify_init1 294 +#define __NR_preadv 295 +#define __NR_pwritev 296 +#define __NR_rt_tgsigqueueinfo 297 +#define __NR_perf_event_open 298 +#define __NR_recvmmsg 299 +#define __NR_prlimit64 300 diff --git a/include/syscall_64_2.6.18.h b/include/syscall_64_2.6.18.h new file mode 100644 index 0000000..6b1ade7 --- /dev/null +++ b/include/syscall_64_2.6.18.h @@ -0,0 +1,301 @@ +#define __NR_read 0 +#define __NR_write 1 +#define __NR_open 2 +#define __NR_close 3 +#define __NR_stat 4 +#define __NR_fstat 5 +#define __NR_lstat 6 +#define __NR_poll 7 +#define __NR_lseek 8 +#define __NR_mmap 9 +#define __NR_mprotect 10 +#define __NR_munmap 11 +#define __NR_brk 12 +#define __NR_rt_sigaction 13 +#define __NR_rt_sigprocmask 14 +#define __NR_rt_sigreturn 15 +#define __NR_ioctl 16 +#define __NR_pread64 17 +#define __NR_pwrite64 18 +#define __NR_readv 19 +#define __NR_writev 20 +#define __NR_access 21 +#define __NR_pipe 22 +#define __NR_select 23 +#define __NR_sched_yield 24 +#define __NR_mremap 25 +#define __NR_msync 26 +#define __NR_mincore 27 +#define __NR_madvise 28 +#define __NR_shmget 29 +#define __NR_shmat 30 +#define __NR_shmctl 31 +#define __NR_dup 32 +#define __NR_dup2 33 +#define __NR_pause 34 +#define __NR_nanosleep 35 +#define __NR_getitimer 36 +#define __NR_alarm 37 +#define __NR_setitimer 38 +#define __NR_getpid 39 +#define __NR_sendfile 40 +#define __NR_socket 41 +#define __NR_connect 42 +#define __NR_accept 43 +#define __NR_sendto 44 +#define __NR_recvfrom 45 +#define __NR_sendmsg 46 +#define __NR_recvmsg 47 +#define __NR_shutdown 48 +#define __NR_bind 49 +#define __NR_listen 50 +#define __NR_getsockname 51 +#define __NR_getpeername 52 +#define __NR_socketpair 53 +#define __NR_setsockopt 54 +#define __NR_getsockopt 55 +#define __NR_clone 56 +#define __NR_fork 57 +#define __NR_vfork 58 +#define __NR_execve 59 +#define __NR_exit 60 +#define __NR_wait4 61 +#define __NR_kill 62 +#define __NR_uname 63 +#define __NR_semget 64 +#define __NR_semop 65 +#define __NR_semctl 66 +#define __NR_shmdt 67 +#define __NR_msgget 68 +#define __NR_msgsnd 69 +#define __NR_msgrcv 70 +#define __NR_msgctl 71 +#define __NR_fcntl 72 +#define __NR_flock 73 +#define __NR_fsync 74 +#define __NR_fdatasync 75 +#define __NR_truncate 76 +#define __NR_ftruncate 77 +#define __NR_getdents 78 +#define __NR_getcwd 79 +#define __NR_chdir 80 +#define __NR_fchdir 81 +#define __NR_rename 82 +#define __NR_mkdir 83 +#define __NR_rmdir 84 +#define __NR_creat 85 +#define __NR_link 86 +#define __NR_unlink 87 +#define __NR_symlink 88 +#define __NR_readlink 89 +#define __NR_chmod 90 +#define __NR_fchmod 91 +#define __NR_chown 92 +#define __NR_fchown 93 +#define __NR_lchown 94 +#define __NR_umask 95 +#define __NR_gettimeofday 96 +#define __NR_getrlimit 97 +#define __NR_getrusage 98 +#define __NR_sysinfo 99 +#define __NR_times 100 +#define __NR_ptrace 101 +#define __NR_getuid 102 +#define __NR_syslog 103 +#define __NR_getgid 104 +#define __NR_setuid 105 +#define __NR_setgid 106 +#define __NR_geteuid 107 +#define __NR_getegid 108 +#define __NR_setpgid 109 +#define __NR_getppid 110 +#define __NR_getpgrp 111 +#define __NR_setsid 112 +#define __NR_setreuid 113 +#define __NR_setregid 114 +#define __NR_getgroups 115 +#define __NR_setgroups 116 +#define __NR_setresuid 117 +#define __NR_getresuid 118 +#define __NR_setresgid 119 +#define __NR_getresgid 120 +#define __NR_getpgid 121 +#define __NR_setfsuid 122 +#define __NR_setfsgid 123 +#define __NR_getsid 124 +#define __NR_capget 125 +#define __NR_capset 126 +#define __NR_rt_sigpending 127 +#define __NR_rt_sigtimedwait 128 +#define __NR_rt_sigqueueinfo 129 +#define __NR_rt_sigsuspend 130 +#define __NR_sigaltstack 131 +#define __NR_utime 132 +#define __NR_mknod 133 +#define __NR_uselib 134 +#define __NR_personality 135 +#define __NR_ustat 136 +#define __NR_statfs 137 +#define __NR_fstatfs 138 +#define __NR_sysfs 139 +#define __NR_getpriority 140 +#define __NR_setpriority 141 +#define __NR_sched_setparam 142 +#define __NR_sched_getparam 143 +#define __NR_sched_setscheduler 144 +#define __NR_sched_getscheduler 145 +#define __NR_sched_get_priority_max 146 +#define __NR_sched_get_priority_min 147 +#define __NR_sched_rr_get_interval 148 +#define __NR_mlock 149 +#define __NR_munlock 150 +#define __NR_mlockall 151 +#define __NR_munlockall 152 +#define __NR_vhangup 153 +#define __NR_modify_ldt 154 +#define __NR_pivot_root 155 +#define __NR__sysctl 156 +#define __NR_prctl 157 +#define __NR_arch_prctl 158 +#define __NR_adjtimex 159 +#define __NR_setrlimit 160 +#define __NR_chroot 161 +#define __NR_sync 162 +#define __NR_acct 163 +#define __NR_settimeofday 164 +#define __NR_mount 165 +#define __NR_umount2 166 +#define __NR_swapon 167 +#define __NR_swapoff 168 +#define __NR_reboot 169 +#define __NR_sethostname 170 +#define __NR_setdomainname 171 +#define __NR_iopl 172 +#define __NR_ioperm 173 +#define __NR_create_module 174 +#define __NR_init_module 175 +#define __NR_delete_module 176 +#define __NR_get_kernel_syms 177 +#define __NR_query_module 178 +#define __NR_quotactl 179 +#define __NR_nfsservctl 180 +#define __NR_getpmsg 181 /* reserved for LiS/STREAMS */ +#define __NR_putpmsg 182 /* reserved for LiS/STREAMS */ +#define __NR_afs_syscall 183 /* reserved for AFS */ +#define __NR_tuxcall 184 /* reserved for tux */ +#define __NR_security 185 +#define __NR_gettid 186 +#define __NR_readahead 187 +#define __NR_setxattr 188 +#define __NR_lsetxattr 189 +#define __NR_fsetxattr 190 +#define __NR_getxattr 191 +#define __NR_lgetxattr 192 +#define __NR_fgetxattr 193 +#define __NR_listxattr 194 +#define __NR_llistxattr 195 +#define __NR_flistxattr 196 +#define __NR_removexattr 197 +#define __NR_lremovexattr 198 +#define __NR_fremovexattr 199 +#define __NR_tkill 200 +#define __NR_time 201 +#define __NR_futex 202 +#define __NR_sched_setaffinity 203 +#define __NR_sched_getaffinity 204 +#define __NR_set_thread_area 205 +#define __NR_io_setup 206 +#define __NR_io_destroy 207 +#define __NR_io_getevents 208 +#define __NR_io_submit 209 +#define __NR_io_cancel 210 +#define __NR_get_thread_area 211 +#define __NR_lookup_dcookie 212 +#define __NR_epoll_create 213 +#define __NR_epoll_ctl_old 214 +#define __NR_epoll_wait_old 215 +#define __NR_remap_file_pages 216 +#define __NR_getdents64 217 +#define __NR_set_tid_address 218 +#define __NR_restart_syscall 219 +#define __NR_semtimedop 220 +#define __NR_fadvise64 221 +#define __NR_timer_create 222 +#define __NR_timer_settime 223 +#define __NR_timer_gettime 224 +#define __NR_timer_getoverrun 225 +#define __NR_timer_delete 226 +#define __NR_clock_settime 227 +#define __NR_clock_gettime 228 +#define __NR_clock_getres 229 +#define __NR_clock_nanosleep 230 +#define __NR_exit_group 231 +#define __NR_epoll_wait 232 +#define __NR_epoll_ctl 233 +#define __NR_tgkill 234 +#define __NR_utimes 235 +#define __NR_vserver 236 +#define __NR_mbind 237 +#define __NR_set_mempolicy 238 +#define __NR_get_mempolicy 239 +#define __NR_mq_open 240 +#define __NR_mq_unlink 241 +#define __NR_mq_timedsend 242 +#define __NR_mq_timedreceive 243 +#define __NR_mq_notify 244 +#define __NR_mq_getsetattr 245 +#define __NR_kexec_load 246 +#define __NR_waitid 247 +#define __NR_add_key 248 +#define __NR_request_key 249 +#define __NR_keyctl 250 +#define __NR_ioprio_set 251 +#define __NR_ioprio_get 252 +#define __NR_inotify_init 253 +#define __NR_inotify_add_watch 254 +#define __NR_inotify_rm_watch 255 +#define __NR_migrate_pages 256 +#define __NR_openat 257 +#define __NR_mkdirat 258 +#define __NR_mknodat 259 +#define __NR_fchownat 260 +#define __NR_futimesat 261 +#define __NR_newfstatat 262 +#define __NR_unlinkat 263 +#define __NR_renameat 264 +#define __NR_linkat 265 +#define __NR_symlinkat 266 +#define __NR_readlinkat 267 +#define __NR_fchmodat 268 +#define __NR_faccessat 269 +#define __NR_pselect6 270 +#define __NR_ppoll 271 +#define __NR_unshare 272 +#define __NR_set_robust_list 273 +#define __NR_get_robust_list 274 +#define __NR_splice 275 +#define __NR_tee 276 +#define __NR_sync_file_range 277 +#define __NR_vmsplice 278 +#define __NR_move_pages 279 +#define __NR_utimensat 280 +#define __NR_epoll_pwait 281 +#define __NR_signalfd 282 +#define __NR_timerfd_create 283 +#define __NR_eventfd 284 +#define __NR_fallocate 285 +#define __NR_timerfd_settime 286 +#define __NR_timerfd_gettime 287 +#define __NR_accept4 288 +#define __NR_signalfd4 289 +#define __NR_eventfd2 290 +#define __NR_epoll_create1 291 +#define __NR_dup3 292 +#define __NR_pipe2 293 +#define __NR_inotify_init1 294 +#define __NR_preadv 295 +#define __NR_pwritev 296 +#define __NR_rt_tgsigqueueinfo 297 +#define __NR_perf_event_open 298 +#define __NR_recvmmsg 299 +#define __NR_prlimit64 300 diff --git a/include/syscall_64_2.6.32.h b/include/syscall_64_2.6.32.h new file mode 100644 index 0000000..decfe3f --- /dev/null +++ b/include/syscall_64_2.6.32.h @@ -0,0 +1,312 @@ +#define __NR_read 0 +#define __NR_write 1 +#define __NR_open 2 +#define __NR_close 3 +#define __NR_stat 4 +#define __NR_fstat 5 +#define __NR_lstat 6 +#define __NR_poll 7 +#define __NR_lseek 8 +#define __NR_mmap 9 +#define __NR_mprotect 10 +#define __NR_munmap 11 +#define __NR_brk 12 +#define __NR_rt_sigaction 13 +#define __NR_rt_sigprocmask 14 +#define __NR_rt_sigreturn 15 +#define __NR_ioctl 16 +#define __NR_pread64 17 +#define __NR_pwrite64 18 +#define __NR_readv 19 +#define __NR_writev 20 +#define __NR_access 21 +#define __NR_pipe 22 +#define __NR_select 23 +#define __NR_sched_yield 24 +#define __NR_mremap 25 +#define __NR_msync 26 +#define __NR_mincore 27 +#define __NR_madvise 28 +#define __NR_shmget 29 +#define __NR_shmat 30 +#define __NR_shmctl 31 +#define __NR_dup 32 +#define __NR_dup2 33 +#define __NR_pause 34 +#define __NR_nanosleep 35 +#define __NR_getitimer 36 +#define __NR_alarm 37 +#define __NR_setitimer 38 +#define __NR_getpid 39 +#define __NR_sendfile 40 +#define __NR_socket 41 +#define __NR_connect 42 +#define __NR_accept 43 +#define __NR_sendto 44 +#define __NR_recvfrom 45 +#define __NR_sendmsg 46 +#define __NR_recvmsg 47 +#define __NR_shutdown 48 +#define __NR_bind 49 +#define __NR_listen 50 +#define __NR_getsockname 51 +#define __NR_getpeername 52 +#define __NR_socketpair 53 +#define __NR_setsockopt 54 +#define __NR_getsockopt 55 +#define __NR_clone 56 +#define __NR_fork 57 +#define __NR_vfork 58 +#define __NR_execve 59 +#define __NR_exit 60 +#define __NR_wait4 61 +#define __NR_kill 62 +#define __NR_uname 63 +#define __NR_semget 64 +#define __NR_semop 65 +#define __NR_semctl 66 +#define __NR_shmdt 67 +#define __NR_msgget 68 +#define __NR_msgsnd 69 +#define __NR_msgrcv 70 +#define __NR_msgctl 71 +#define __NR_fcntl 72 +#define __NR_flock 73 +#define __NR_fsync 74 +#define __NR_fdatasync 75 +#define __NR_truncate 76 +#define __NR_ftruncate 77 +#define __NR_getdents 78 +#define __NR_getcwd 79 +#define __NR_chdir 80 +#define __NR_fchdir 81 +#define __NR_rename 82 +#define __NR_mkdir 83 +#define __NR_rmdir 84 +#define __NR_creat 85 +#define __NR_link 86 +#define __NR_unlink 87 +#define __NR_symlink 88 +#define __NR_readlink 89 +#define __NR_chmod 90 +#define __NR_fchmod 91 +#define __NR_chown 92 +#define __NR_fchown 93 +#define __NR_lchown 94 +#define __NR_umask 95 +#define __NR_gettimeofday 96 +#define __NR_getrlimit 97 +#define __NR_getrusage 98 +#define __NR_sysinfo 99 +#define __NR_times 100 +#define __NR_ptrace 101 +#define __NR_getuid 102 +#define __NR_syslog 103 +#define __NR_getgid 104 +#define __NR_setuid 105 +#define __NR_setgid 106 +#define __NR_geteuid 107 +#define __NR_getegid 108 +#define __NR_setpgid 109 +#define __NR_getppid 110 +#define __NR_getpgrp 111 +#define __NR_setsid 112 +#define __NR_setreuid 113 +#define __NR_setregid 114 +#define __NR_getgroups 115 +#define __NR_setgroups 116 +#define __NR_setresuid 117 +#define __NR_getresuid 118 +#define __NR_setresgid 119 +#define __NR_getresgid 120 +#define __NR_getpgid 121 +#define __NR_setfsuid 122 +#define __NR_setfsgid 123 +#define __NR_getsid 124 +#define __NR_capget 125 +#define __NR_capset 126 +#define __NR_rt_sigpending 127 +#define __NR_rt_sigtimedwait 128 +#define __NR_rt_sigqueueinfo 129 +#define __NR_rt_sigsuspend 130 +#define __NR_sigaltstack 131 +#define __NR_utime 132 +#define __NR_mknod 133 +#define __NR_uselib 134 +#define __NR_personality 135 +#define __NR_ustat 136 +#define __NR_statfs 137 +#define __NR_fstatfs 138 +#define __NR_sysfs 139 +#define __NR_getpriority 140 +#define __NR_setpriority 141 +#define __NR_sched_setparam 142 +#define __NR_sched_getparam 143 +#define __NR_sched_setscheduler 144 +#define __NR_sched_getscheduler 145 +#define __NR_sched_get_priority_max 146 +#define __NR_sched_get_priority_min 147 +#define __NR_sched_rr_get_interval 148 +#define __NR_mlock 149 +#define __NR_munlock 150 +#define __NR_mlockall 151 +#define __NR_munlockall 152 +#define __NR_vhangup 153 +#define __NR_modify_ldt 154 +#define __NR_pivot_root 155 +#define __NR__sysctl 156 +#define __NR_prctl 157 +#define __NR_arch_prctl 158 +#define __NR_adjtimex 159 +#define __NR_setrlimit 160 +#define __NR_chroot 161 +#define __NR_sync 162 +#define __NR_acct 163 +#define __NR_settimeofday 164 +#define __NR_mount 165 +#define __NR_umount2 166 +#define __NR_swapon 167 +#define __NR_swapoff 168 +#define __NR_reboot 169 +#define __NR_sethostname 170 +#define __NR_setdomainname 171 +#define __NR_iopl 172 +#define __NR_ioperm 173 +#define __NR_create_module 174 +#define __NR_init_module 175 +#define __NR_delete_module 176 +#define __NR_get_kernel_syms 177 +#define __NR_query_module 178 +#define __NR_quotactl 179 +#define __NR_nfsservctl 180 +#define __NR_getpmsg 181 +#define __NR_putpmsg 182 +#define __NR_afs_syscall 183 +#define __NR_tuxcall 184 +#define __NR_security 185 +#define __NR_gettid 186 +#define __NR_readahead 187 +#define __NR_setxattr 188 +#define __NR_lsetxattr 189 +#define __NR_fsetxattr 190 +#define __NR_getxattr 191 +#define __NR_lgetxattr 192 +#define __NR_fgetxattr 193 +#define __NR_listxattr 194 +#define __NR_llistxattr 195 +#define __NR_flistxattr 196 +#define __NR_removexattr 197 +#define __NR_lremovexattr 198 +#define __NR_fremovexattr 199 +#define __NR_tkill 200 +#define __NR_time 201 +#define __NR_futex 202 +#define __NR_sched_setaffinity 203 +#define __NR_sched_getaffinity 204 +#define __NR_set_thread_area 205 +#define __NR_io_setup 206 +#define __NR_io_destroy 207 +#define __NR_io_getevents 208 +#define __NR_io_submit 209 +#define __NR_io_cancel 210 +#define __NR_get_thread_area 211 +#define __NR_lookup_dcookie 212 +#define __NR_epoll_create 213 +#define __NR_epoll_ctl_old 214 +#define __NR_epoll_wait_old 215 +#define __NR_remap_file_pages 216 +#define __NR_getdents64 217 +#define __NR_set_tid_address 218 +#define __NR_restart_syscall 219 +#define __NR_semtimedop 220 +#define __NR_fadvise64 221 +#define __NR_timer_create 222 +#define __NR_timer_settime 223 +#define __NR_timer_gettime 224 +#define __NR_timer_getoverrun 225 +#define __NR_timer_delete 226 +#define __NR_clock_settime 227 +#define __NR_clock_gettime 228 +#define __NR_clock_getres 229 +#define __NR_clock_nanosleep 230 +#define __NR_exit_group 231 +#define __NR_epoll_wait 232 +#define __NR_epoll_ctl 233 +#define __NR_tgkill 234 +#define __NR_utimes 235 +#define __NR_vserver 236 +#define __NR_mbind 237 +#define __NR_set_mempolicy 238 +#define __NR_get_mempolicy 239 +#define __NR_mq_open 240 +#define __NR_mq_unlink 241 +#define __NR_mq_timedsend 242 +#define __NR_mq_timedreceive 243 +#define __NR_mq_notify 244 +#define __NR_mq_getsetattr 245 +#define __NR_kexec_load 246 +#define __NR_waitid 247 +#define __NR_add_key 248 +#define __NR_request_key 249 +#define __NR_keyctl 250 +#define __NR_ioprio_set 251 +#define __NR_ioprio_get 252 +#define __NR_inotify_init 253 +#define __NR_inotify_add_watch 254 +#define __NR_inotify_rm_watch 255 +#define __NR_migrate_pages 256 +#define __NR_openat 257 +#define __NR_mkdirat 258 +#define __NR_mknodat 259 +#define __NR_fchownat 260 +#define __NR_futimesat 261 +#define __NR_newfstatat 262 +#define __NR_unlinkat 263 +#define __NR_renameat 264 +#define __NR_linkat 265 +#define __NR_symlinkat 266 +#define __NR_readlinkat 267 +#define __NR_fchmodat 268 +#define __NR_faccessat 269 +#define __NR_pselect6 270 +#define __NR_ppoll 271 +#define __NR_unshare 272 +#define __NR_set_robust_list 273 +#define __NR_get_robust_list 274 +#define __NR_splice 275 +#define __NR_tee 276 +#define __NR_sync_file_range 277 +#define __NR_vmsplice 278 +#define __NR_move_pages 279 +#define __NR_utimensat 280 +#define __NR_epoll_pwait 281 +#define __NR_signalfd 282 +#define __NR_timerfd_create 283 +#define __NR_eventfd 284 +#define __NR_fallocate 285 +#define __NR_timerfd_settime 286 +#define __NR_timerfd_gettime 287 +#define __NR_accept4 288 +#define __NR_signalfd4 289 +#define __NR_eventfd2 290 +#define __NR_epoll_create1 291 +#define __NR_dup3 292 +#define __NR_pipe2 293 +#define __NR_inotify_init1 294 +#define __NR_preadv 295 +#define __NR_pwritev 296 +#define __NR_rt_tgsigqueueinfo 297 +#define __NR_perf_event_open 298 +#define __NR_recvmmsg 299 +#define __NR_fanotify_init 300 +#define __NR_fanotify_mark 301 +#define __NR_prlimit64 302 +#define __NR_name_to_handle_at 303 +#define __NR_open_by_handle_at 304 +#define __NR_clock_adjtime 305 +#define __NR_syncfs 306 +#define __NR_sendmmsg 307 +#define __NR_setns 308 +#define __NR_get_cpu 309 +#define __NR_process_vm_readv 310 +#define __NR_process_vm_writev 311 diff --git a/include/syscall_names.h b/include/syscall_names.h new file mode 100644 index 0000000..7146a1f --- /dev/null +++ b/include/syscall_names.h @@ -0,0 +1,438 @@ +/* + * 0x.Tools xCapture - sample thread activity from Linux procfs [https://0x.tools] + * Copyright 2019-2021 Tanel Poder + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * SPDX-License-Identifier: GPL-2.0-or-later + * + * NOTES: + * + * full architecture-specific list linux kernel source: + * arch/x86/entry/syscalls/syscall_64.tbl + * or run ausyscall --dump or parse unistd.h + * + * awk '/^[0-9]/{ printf("[%4d] = {\"%s\", \"%s\"},\n", $1, $2, $3); }' < ./arch/x86/entry/syscalls/syscall_64.tbl + */ + +typedef struct sysent { + const char *abi; + const char *name; +} struct_sysent; + +const struct_sysent sysent0[] = { +[ 0] = {"common", "read"}, +[ 1] = {"common", "write"}, +[ 2] = {"common", "open"}, +[ 3] = {"common", "close"}, +[ 4] = {"common", "stat"}, +[ 5] = {"common", "fstat"}, +[ 6] = {"common", "lstat"}, +[ 7] = {"common", "poll"}, +[ 8] = {"common", "lseek"}, +[ 9] = {"common", "mmap"}, +[ 10] = {"common", "mprotect"}, +[ 11] = {"common", "munmap"}, +[ 12] = {"common", "brk"}, +[ 13] = {"64", "rt_sigaction"}, +[ 14] = {"common", "rt_sigprocmask"}, +[ 15] = {"64", "rt_sigreturn"}, +[ 16] = {"64", "ioctl"}, +[ 17] = {"common", "pread64"}, +[ 18] = {"common", "pwrite64"}, +[ 19] = {"64", "readv"}, +[ 20] = {"64", "writev"}, +[ 21] = {"common", "access"}, +[ 22] = {"common", "pipe"}, +[ 23] = {"common", "select"}, +[ 24] = {"common", "sched_yield"}, +[ 25] = {"common", "mremap"}, +[ 26] = {"common", "msync"}, +[ 27] = {"common", "mincore"}, +[ 28] = {"common", "madvise"}, +[ 29] = {"common", "shmget"}, +[ 30] = {"common", "shmat"}, +[ 31] = {"common", "shmctl"}, +[ 32] = {"common", "dup"}, +[ 33] = {"common", "dup2"}, +[ 34] = {"common", "pause"}, +[ 35] = {"common", "nanosleep"}, +[ 36] = {"common", "getitimer"}, +[ 37] = {"common", "alarm"}, +[ 38] = {"common", "setitimer"}, +[ 39] = {"common", "getpid"}, +[ 40] = {"common", "sendfile"}, +[ 41] = {"common", "socket"}, +[ 42] = {"common", "connect"}, +[ 43] = {"common", "accept"}, +[ 44] = {"common", "sendto"}, +[ 45] = {"64", "recvfrom"}, +[ 46] = {"64", "sendmsg"}, +[ 47] = {"64", "recvmsg"}, +[ 48] = {"common", "shutdown"}, +[ 49] = {"common", "bind"}, +[ 50] = {"common", "listen"}, +[ 51] = {"common", "getsockname"}, +[ 52] = {"common", "getpeername"}, +[ 53] = {"common", "socketpair"}, +[ 54] = {"64", "setsockopt"}, +[ 55] = {"64", "getsockopt"}, +[ 56] = {"common", "clone"}, +[ 57] = {"common", "fork"}, +[ 58] = {"common", "vfork"}, +[ 59] = {"64", "execve"}, +[ 60] = {"common", "exit"}, +[ 61] = {"common", "wait4"}, +[ 62] = {"common", "kill"}, +[ 63] = {"common", "uname"}, +[ 64] = {"common", "semget"}, +[ 65] = {"common", "semop"}, +[ 66] = {"common", "semctl"}, +[ 67] = {"common", "shmdt"}, +[ 68] = {"common", "msgget"}, +[ 69] = {"common", "msgsnd"}, +[ 70] = {"common", "msgrcv"}, +[ 71] = {"common", "msgctl"}, +[ 72] = {"common", "fcntl"}, +[ 73] = {"common", "flock"}, +[ 74] = {"common", "fsync"}, +[ 75] = {"common", "fdatasync"}, +[ 76] = {"common", "truncate"}, +[ 77] = {"common", "ftruncate"}, +[ 78] = {"common", "getdents"}, +[ 79] = {"common", "getcwd"}, +[ 80] = {"common", "chdir"}, +[ 81] = {"common", "fchdir"}, +[ 82] = {"common", "rename"}, +[ 83] = {"common", "mkdir"}, +[ 84] = {"common", "rmdir"}, +[ 85] = {"common", "creat"}, +[ 86] = {"common", "link"}, +[ 87] = {"common", "unlink"}, +[ 88] = {"common", "symlink"}, +[ 89] = {"common", "readlink"}, +[ 90] = {"common", "chmod"}, +[ 91] = {"common", "fchmod"}, +[ 92] = {"common", "chown"}, +[ 93] = {"common", "fchown"}, +[ 94] = {"common", "lchown"}, +[ 95] = {"common", "umask"}, +[ 96] = {"common", "gettimeofday"}, +[ 97] = {"common", "getrlimit"}, +[ 98] = {"common", "getrusage"}, +[ 99] = {"common", "sysinfo"}, +[ 100] = {"common", "times"}, +[ 101] = {"64", "ptrace"}, +[ 102] = {"common", "getuid"}, +[ 103] = {"common", "syslog"}, +[ 104] = {"common", "getgid"}, +[ 105] = {"common", "setuid"}, +[ 106] = {"common", "setgid"}, +[ 107] = {"common", "geteuid"}, +[ 108] = {"common", "getegid"}, +[ 109] = {"common", "setpgid"}, +[ 110] = {"common", "getppid"}, +[ 111] = {"common", "getpgrp"}, +[ 112] = {"common", "setsid"}, +[ 113] = {"common", "setreuid"}, +[ 114] = {"common", "setregid"}, +[ 115] = {"common", "getgroups"}, +[ 116] = {"common", "setgroups"}, +[ 117] = {"common", "setresuid"}, +[ 118] = {"common", "getresuid"}, +[ 119] = {"common", "setresgid"}, +[ 120] = {"common", "getresgid"}, +[ 121] = {"common", "getpgid"}, +[ 122] = {"common", "setfsuid"}, +[ 123] = {"common", "setfsgid"}, +[ 124] = {"common", "getsid"}, +[ 125] = {"common", "capget"}, +[ 126] = {"common", "capset"}, +[ 127] = {"64", "rt_sigpending"}, +[ 128] = {"64", "rt_sigtimedwait"}, +[ 129] = {"64", "rt_sigqueueinfo"}, +[ 130] = {"common", "rt_sigsuspend"}, +[ 131] = {"64", "sigaltstack"}, +[ 132] = {"common", "utime"}, +[ 133] = {"common", "mknod"}, +[ 134] = {"64", "uselib"}, +[ 135] = {"common", "personality"}, +[ 136] = {"common", "ustat"}, +[ 137] = {"common", "statfs"}, +[ 138] = {"common", "fstatfs"}, +[ 139] = {"common", "sysfs"}, +[ 140] = {"common", "getpriority"}, +[ 141] = {"common", "setpriority"}, +[ 142] = {"common", "sched_setparam"}, +[ 143] = {"common", "sched_getparam"}, +[ 144] = {"common", "sched_setscheduler"}, +[ 145] = {"common", "sched_getscheduler"}, +[ 146] = {"common", "sched_get_priority_max"}, +[ 147] = {"common", "sched_get_priority_min"}, +[ 148] = {"common", "sched_rr_get_interval"}, +[ 149] = {"common", "mlock"}, +[ 150] = {"common", "munlock"}, +[ 151] = {"common", "mlockall"}, +[ 152] = {"common", "munlockall"}, +[ 153] = {"common", "vhangup"}, +[ 154] = {"common", "modify_ldt"}, +[ 155] = {"common", "pivot_root"}, +[ 156] = {"64", "_sysctl"}, +[ 157] = {"common", "prctl"}, +[ 158] = {"common", "arch_prctl"}, +[ 159] = {"common", "adjtimex"}, +[ 160] = {"common", "setrlimit"}, +[ 161] = {"common", "chroot"}, +[ 162] = {"common", "sync"}, +[ 163] = {"common", "acct"}, +[ 164] = {"common", "settimeofday"}, +[ 165] = {"common", "mount"}, +[ 166] = {"common", "umount2"}, +[ 167] = {"common", "swapon"}, +[ 168] = {"common", "swapoff"}, +[ 169] = {"common", "reboot"}, +[ 170] = {"common", "sethostname"}, +[ 171] = {"common", "setdomainname"}, +[ 172] = {"common", "iopl"}, +[ 173] = {"common", "ioperm"}, +[ 174] = {"64", "create_module"}, +[ 175] = {"common", "init_module"}, +[ 176] = {"common", "delete_module"}, +[ 177] = {"64", "get_kernel_syms"}, +[ 178] = {"64", "query_module"}, +[ 179] = {"common", "quotactl"}, +[ 180] = {"64", "nfsservctl"}, +[ 181] = {"common", "getpmsg"}, +[ 182] = {"common", "putpmsg"}, +[ 183] = {"common", "afs_syscall"}, +[ 184] = {"common", "tuxcall"}, +[ 185] = {"common", "security"}, +[ 186] = {"common", "gettid"}, +[ 187] = {"common", "readahead"}, +[ 188] = {"common", "setxattr"}, +[ 189] = {"common", "lsetxattr"}, +[ 190] = {"common", "fsetxattr"}, +[ 191] = {"common", "getxattr"}, +[ 192] = {"common", "lgetxattr"}, +[ 193] = {"common", "fgetxattr"}, +[ 194] = {"common", "listxattr"}, +[ 195] = {"common", "llistxattr"}, +[ 196] = {"common", "flistxattr"}, +[ 197] = {"common", "removexattr"}, +[ 198] = {"common", "lremovexattr"}, +[ 199] = {"common", "fremovexattr"}, +[ 200] = {"common", "tkill"}, +[ 201] = {"common", "time"}, +[ 202] = {"common", "futex"}, +[ 203] = {"common", "sched_setaffinity"}, +[ 204] = {"common", "sched_getaffinity"}, +[ 205] = {"64", "set_thread_area"}, +[ 206] = {"64", "io_setup"}, +[ 207] = {"common", "io_destroy"}, +[ 208] = {"common", "io_getevents"}, +[ 209] = {"64", "io_submit"}, +[ 210] = {"common", "io_cancel"}, +[ 211] = {"64", "get_thread_area"}, +[ 212] = {"common", "lookup_dcookie"}, +[ 213] = {"common", "epoll_create"}, +[ 214] = {"64", "epoll_ctl_old"}, +[ 215] = {"64", "epoll_wait_old"}, +[ 216] = {"common", "remap_file_pages"}, +[ 217] = {"common", "getdents64"}, +[ 218] = {"common", "set_tid_address"}, +[ 219] = {"common", "restart_syscall"}, +[ 220] = {"common", "semtimedop"}, +[ 221] = {"common", "fadvise64"}, +[ 222] = {"64", "timer_create"}, +[ 223] = {"common", "timer_settime"}, +[ 224] = {"common", "timer_gettime"}, +[ 225] = {"common", "timer_getoverrun"}, +[ 226] = {"common", "timer_delete"}, +[ 227] = {"common", "clock_settime"}, +[ 228] = {"common", "clock_gettime"}, +[ 229] = {"common", "clock_getres"}, +[ 230] = {"common", "clock_nanosleep"}, +[ 231] = {"common", "exit_group"}, +[ 232] = {"common", "epoll_wait"}, +[ 233] = {"common", "epoll_ctl"}, +[ 234] = {"common", "tgkill"}, +[ 235] = {"common", "utimes"}, +[ 236] = {"64", "vserver"}, +[ 237] = {"common", "mbind"}, +[ 238] = {"common", "set_mempolicy"}, +[ 239] = {"common", "get_mempolicy"}, +[ 240] = {"common", "mq_open"}, +[ 241] = {"common", "mq_unlink"}, +[ 242] = {"common", "mq_timedsend"}, +[ 243] = {"common", "mq_timedreceive"}, +[ 244] = {"64", "mq_notify"}, +[ 245] = {"common", "mq_getsetattr"}, +[ 246] = {"64", "kexec_load"}, +[ 247] = {"64", "waitid"}, +[ 248] = {"common", "add_key"}, +[ 249] = {"common", "request_key"}, +[ 250] = {"common", "keyctl"}, +[ 251] = {"common", "ioprio_set"}, +[ 252] = {"common", "ioprio_get"}, +[ 253] = {"common", "inotify_init"}, +[ 254] = {"common", "inotify_add_watch"}, +[ 255] = {"common", "inotify_rm_watch"}, +[ 256] = {"common", "migrate_pages"}, +[ 257] = {"common", "openat"}, +[ 258] = {"common", "mkdirat"}, +[ 259] = {"common", "mknodat"}, +[ 260] = {"common", "fchownat"}, +[ 261] = {"common", "futimesat"}, +[ 262] = {"common", "newfstatat"}, +[ 263] = {"common", "unlinkat"}, +[ 264] = {"common", "renameat"}, +[ 265] = {"common", "linkat"}, +[ 266] = {"common", "symlinkat"}, +[ 267] = {"common", "readlinkat"}, +[ 268] = {"common", "fchmodat"}, +[ 269] = {"common", "faccessat"}, +[ 270] = {"common", "pselect6"}, +[ 271] = {"common", "ppoll"}, +[ 272] = {"common", "unshare"}, +[ 273] = {"64", "set_robust_list"}, +[ 274] = {"64", "get_robust_list"}, +[ 275] = {"common", "splice"}, +[ 276] = {"common", "tee"}, +[ 277] = {"common", "sync_file_range"}, +[ 278] = {"64", "vmsplice"}, +[ 279] = {"64", "move_pages"}, +[ 280] = {"common", "utimensat"}, +[ 281] = {"common", "epoll_pwait"}, +[ 282] = {"common", "signalfd"}, +[ 283] = {"common", "timerfd_create"}, +[ 284] = {"common", "eventfd"}, +[ 285] = {"common", "fallocate"}, +[ 286] = {"common", "timerfd_settime"}, +[ 287] = {"common", "timerfd_gettime"}, +[ 288] = {"common", "accept4"}, +[ 289] = {"common", "signalfd4"}, +[ 290] = {"common", "eventfd2"}, +[ 291] = {"common", "epoll_create1"}, +[ 292] = {"common", "dup3"}, +[ 293] = {"common", "pipe2"}, +[ 294] = {"common", "inotify_init1"}, +[ 295] = {"64", "preadv"}, +[ 296] = {"64", "pwritev"}, +[ 297] = {"64", "rt_tgsigqueueinfo"}, +[ 298] = {"common", "perf_event_open"}, +[ 299] = {"64", "recvmmsg"}, +[ 300] = {"common", "fanotify_init"}, +[ 301] = {"common", "fanotify_mark"}, +[ 302] = {"common", "prlimit64"}, +[ 303] = {"common", "name_to_handle_at"}, +[ 304] = {"common", "open_by_handle_at"}, +[ 305] = {"common", "clock_adjtime"}, +[ 306] = {"common", "syncfs"}, +[ 307] = {"64", "sendmmsg"}, +[ 308] = {"common", "setns"}, +[ 309] = {"common", "getcpu"}, +[ 310] = {"64", "process_vm_readv"}, +[ 311] = {"64", "process_vm_writev"}, +[ 312] = {"common", "kcmp"}, +[ 313] = {"common", "finit_module"}, +[ 314] = {"common", "sched_setattr"}, +[ 315] = {"common", "sched_getattr"}, +[ 316] = {"common", "renameat2"}, +[ 317] = {"common", "seccomp"}, +[ 318] = {"common", "getrandom"}, +[ 319] = {"common", "memfd_create"}, +[ 320] = {"common", "kexec_file_load"}, +[ 321] = {"common", "bpf"}, +[ 322] = {"64", "execveat"}, +[ 323] = {"common", "userfaultfd"}, +[ 324] = {"common", "membarrier"}, +[ 325] = {"common", "mlock2"}, +[ 326] = {"common", "copy_file_range"}, +[ 327] = {"64", "preadv2"}, +[ 328] = {"64", "pwritev2"}, +[ 329] = {"common", "pkey_mprotect"}, +[ 330] = {"common", "pkey_alloc"}, +[ 331] = {"common", "pkey_free"}, +[ 332] = {"common", "statx"}, +[ 333] = {"common", "io_pgetevents"}, +[ 334] = {"common", "rseq"}, +/* gap */ +[ 424] = {"common", "pidfd_send_signal"}, +[ 425] = {"common", "io_uring_setup"}, +[ 426] = {"common", "io_uring_enter"}, +[ 427] = {"common", "io_uring_register"}, +[ 428] = {"common", "open_tree"}, +[ 429] = {"common", "move_mount"}, +[ 430] = {"common", "fsopen"}, +[ 431] = {"common", "fsconfig"}, +[ 432] = {"common", "fsmount"}, +[ 433] = {"common", "fspick"}, +[ 434] = {"common", "pidfd_open"}, +[ 435] = {"common", "clone3"}, +/* gap */ +[ 437] = {"common", "openat2"}, +[ 438] = {"common", "pidfd_getfd"}, +[ 439] = {"common", "faccessat2"}, +[ 440] = {"common", "process_madvise"}, +[ 441] = {"common", "epoll_pwait2"}, +[ 442] = {"common", "mount_setattr"}, +[ 443] = {"common", "quotactl_fd"}, +[ 444] = {"common", "landlock_create_ruleset"}, +[ 445] = {"common", "landlock_add_rule"}, +[ 446] = {"common", "landlock_restrict_self"}, +[ 447] = {"common", "memfd_secret"}, +[ 448] = {"common", "process_mrelease"}, +[ 449] = {"common", "futex_waitv"}, +/* gap */ +[ 512] = {"x32", "rt_sigaction"}, +[ 513] = {"x32", "rt_sigreturn"}, +[ 514] = {"x32", "ioctl"}, +[ 515] = {"x32", "readv"}, +[ 516] = {"x32", "writev"}, +[ 517] = {"x32", "recvfrom"}, +[ 518] = {"x32", "sendmsg"}, +[ 519] = {"x32", "recvmsg"}, +[ 520] = {"x32", "execve"}, +[ 521] = {"x32", "ptrace"}, +[ 522] = {"x32", "rt_sigpending"}, +[ 523] = {"x32", "rt_sigtimedwait"}, +[ 524] = {"x32", "rt_sigqueueinfo"}, +[ 525] = {"x32", "sigaltstack"}, +[ 526] = {"x32", "timer_create"}, +[ 527] = {"x32", "mq_notify"}, +[ 528] = {"x32", "kexec_load"}, +[ 529] = {"x32", "waitid"}, +[ 530] = {"x32", "set_robust_list"}, +[ 531] = {"x32", "get_robust_list"}, +[ 532] = {"x32", "vmsplice"}, +[ 533] = {"x32", "move_pages"}, +[ 534] = {"x32", "preadv"}, +[ 535] = {"x32", "pwritev"}, +[ 536] = {"x32", "rt_tgsigqueueinfo"}, +[ 537] = {"x32", "recvmmsg"}, +[ 538] = {"x32", "sendmmsg"}, +[ 539] = {"x32", "process_vm_readv"}, +[ 540] = {"x32", "process_vm_writev"}, +[ 541] = {"x32", "setsockopt"}, +[ 542] = {"x32", "getsockopt"}, +[ 543] = {"x32", "io_setup"}, +[ 544] = {"x32", "io_submit"}, +[ 545] = {"x32", "execveat"}, +[ 546] = {"x32", "preadv2"}, +[ 547] = {"x32", "pwritev2"}, +}; + +#define NR_SYSCALLS sizeof(sysent0) / sizeof(sysent0[0]) + |