linux-user,mips: update syscall-args-o32.c.inc

Add a script to update the file from strace github and run it

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20200310103403.3284090-22-laurent@vivier.eu>
[lv: added file in MAINTAINERS]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Laurent Vivier 2020-03-10 11:34:03 +01:00
parent ac5d3c670a
commit 5733333020
3 changed files with 494 additions and 438 deletions

View File

@ -2449,6 +2449,7 @@ F: linux-user/
F: default-configs/*-linux-user.mak F: default-configs/*-linux-user.mak
F: scripts/qemu-binfmt-conf.sh F: scripts/qemu-binfmt-conf.sh
F: scripts/update-syscalltbl.sh F: scripts/update-syscalltbl.sh
F: scripts/update-mips-syscall-args.sh
Tiny Code Generator (TCG) Tiny Code Generator (TCG)
------------------------- -------------------------

View File

@ -1,438 +1,436 @@
# define MIPS_SYS(name, args) args, [ 0] = 7, /* syscall */
MIPS_SYS(sys_syscall , 8) /* 4000 */ [ 1] = 1, /* exit */
MIPS_SYS(sys_exit , 1) [ 2] = 0, /* fork */
MIPS_SYS(sys_fork , 0) [ 3] = 3, /* read */
MIPS_SYS(sys_read , 3) [ 4] = 3, /* write */
MIPS_SYS(sys_write , 3) [ 5] = 3, /* open */
MIPS_SYS(sys_open , 3) /* 4005 */ [ 6] = 1, /* close */
MIPS_SYS(sys_close , 1) [ 7] = 3, /* waitpid */
MIPS_SYS(sys_waitpid , 3) [ 8] = 2, /* creat */
MIPS_SYS(sys_creat , 2) [ 9] = 2, /* link */
MIPS_SYS(sys_link , 2) [ 10] = 1, /* unlink */
MIPS_SYS(sys_unlink , 1) /* 4010 */ [ 11] = 3, /* execve */
MIPS_SYS(sys_execve , 0) [ 12] = 1, /* chdir */
MIPS_SYS(sys_chdir , 1) [ 13] = 1, /* time */
MIPS_SYS(sys_time , 1) [ 14] = 3, /* mknod */
MIPS_SYS(sys_mknod , 3) [ 15] = 2, /* chmod */
MIPS_SYS(sys_chmod , 2) /* 4015 */ [ 16] = 3, /* lchown */
MIPS_SYS(sys_lchown , 3) [ 17] = 0, /* break */
MIPS_SYS(sys_ni_syscall , 0) [ 18] = 2, /* oldstat */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_stat */ [ 19] = 3, /* lseek */
MIPS_SYS(sys_lseek , 3) [ 20] = 0, /* getpid */
MIPS_SYS(sys_getpid , 0) /* 4020 */ [ 21] = 5, /* mount */
MIPS_SYS(sys_mount , 5) [ 22] = 1, /* umount */
MIPS_SYS(sys_umount , 1) [ 23] = 1, /* setuid */
MIPS_SYS(sys_setuid , 1) [ 24] = 0, /* getuid */
MIPS_SYS(sys_getuid , 0) [ 25] = 1, /* stime */
MIPS_SYS(sys_stime , 1) /* 4025 */ [ 26] = 4, /* ptrace */
MIPS_SYS(sys_ptrace , 4) [ 27] = 1, /* alarm */
MIPS_SYS(sys_alarm , 1) [ 28] = 2, /* oldfstat */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_fstat */ [ 29] = 0, /* pause */
MIPS_SYS(sys_pause , 0) [ 30] = 2, /* utime */
MIPS_SYS(sys_utime , 2) /* 4030 */ [ 31] = 0, /* stty */
MIPS_SYS(sys_ni_syscall , 0) [ 32] = 0, /* gtty */
MIPS_SYS(sys_ni_syscall , 0) [ 33] = 2, /* access */
MIPS_SYS(sys_access , 2) [ 34] = 1, /* nice */
MIPS_SYS(sys_nice , 1) [ 35] = 1, /* ftime */
MIPS_SYS(sys_ni_syscall , 0) /* 4035 */ [ 36] = 0, /* sync */
MIPS_SYS(sys_sync , 0) [ 37] = 2, /* kill */
MIPS_SYS(sys_kill , 2) [ 38] = 2, /* rename */
MIPS_SYS(sys_rename , 2) [ 39] = 2, /* mkdir */
MIPS_SYS(sys_mkdir , 2) [ 40] = 1, /* rmdir */
MIPS_SYS(sys_rmdir , 1) /* 4040 */ [ 41] = 1, /* dup */
MIPS_SYS(sys_dup , 1) [ 42] = 0, /* pipe */
MIPS_SYS(sys_pipe , 0) [ 43] = 1, /* times */
MIPS_SYS(sys_times , 1) [ 44] = 0, /* prof */
MIPS_SYS(sys_ni_syscall , 0) [ 45] = 1, /* brk */
MIPS_SYS(sys_brk , 1) /* 4045 */ [ 46] = 1, /* setgid */
MIPS_SYS(sys_setgid , 1) [ 47] = 0, /* getgid */
MIPS_SYS(sys_getgid , 0) [ 48] = 2, /* signal */
MIPS_SYS(sys_ni_syscall , 0) /* was signal(2) */ [ 49] = 0, /* geteuid */
MIPS_SYS(sys_geteuid , 0) [ 50] = 0, /* getegid */
MIPS_SYS(sys_getegid , 0) /* 4050 */ [ 51] = 1, /* acct */
MIPS_SYS(sys_acct , 0) [ 52] = 2, /* umount2 */
MIPS_SYS(sys_umount2 , 2) [ 53] = 0, /* lock */
MIPS_SYS(sys_ni_syscall , 0) [ 54] = 3, /* ioctl */
MIPS_SYS(sys_ioctl , 3) [ 55] = 3, /* fcntl */
MIPS_SYS(sys_fcntl , 3) /* 4055 */ [ 56] = 0, /* mpx */
MIPS_SYS(sys_ni_syscall , 2) [ 57] = 2, /* setpgid */
MIPS_SYS(sys_setpgid , 2) [ 58] = 0, /* ulimit */
MIPS_SYS(sys_ni_syscall , 0) [ 59] = 1, /* oldolduname */
MIPS_SYS(sys_olduname , 1) [ 60] = 1, /* umask */
MIPS_SYS(sys_umask , 1) /* 4060 */ [ 61] = 1, /* chroot */
MIPS_SYS(sys_chroot , 1) [ 62] = 2, /* ustat */
MIPS_SYS(sys_ustat , 2) [ 63] = 2, /* dup2 */
MIPS_SYS(sys_dup2 , 2) [ 64] = 0, /* getppid */
MIPS_SYS(sys_getppid , 0) [ 65] = 0, /* getpgrp */
MIPS_SYS(sys_getpgrp , 0) /* 4065 */ [ 66] = 0, /* setsid */
MIPS_SYS(sys_setsid , 0) [ 67] = 3, /* sigaction */
MIPS_SYS(sys_sigaction , 3) [ 68] = 0, /* sgetmask */
MIPS_SYS(sys_sgetmask , 0) [ 69] = 1, /* ssetmask */
MIPS_SYS(sys_ssetmask , 1) [ 70] = 2, /* setreuid */
MIPS_SYS(sys_setreuid , 2) /* 4070 */ [ 71] = 2, /* setregid */
MIPS_SYS(sys_setregid , 2) [ 72] = 1, /* sigsuspend */
MIPS_SYS(sys_sigsuspend , 0) [ 73] = 1, /* sigpending */
MIPS_SYS(sys_sigpending , 1) [ 74] = 2, /* sethostname */
MIPS_SYS(sys_sethostname , 2) [ 75] = 2, /* setrlimit */
MIPS_SYS(sys_setrlimit , 2) /* 4075 */ [ 76] = 2, /* getrlimit */
MIPS_SYS(sys_getrlimit , 2) [ 77] = 2, /* getrusage */
MIPS_SYS(sys_getrusage , 2) [ 78] = 2, /* gettimeofday */
MIPS_SYS(sys_gettimeofday, 2) [ 79] = 2, /* settimeofday */
MIPS_SYS(sys_settimeofday, 2) [ 80] = 2, /* getgroups */
MIPS_SYS(sys_getgroups , 2) /* 4080 */ [ 81] = 2, /* setgroups */
MIPS_SYS(sys_setgroups , 2) [ 82] = 0, /* reserved82 */
MIPS_SYS(sys_ni_syscall , 0) /* old_select */ [ 83] = 2, /* symlink */
MIPS_SYS(sys_symlink , 2) [ 84] = 2, /* oldlstat */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_lstat */ [ 85] = 3, /* readlink */
MIPS_SYS(sys_readlink , 3) /* 4085 */ [ 86] = 1, /* uselib */
MIPS_SYS(sys_uselib , 1) [ 87] = 2, /* swapon */
MIPS_SYS(sys_swapon , 2) [ 88] = 4, /* reboot */
MIPS_SYS(sys_reboot , 3) [ 89] = 3, /* readdir */
MIPS_SYS(old_readdir , 3) [ 90] = 6, /* mmap */
MIPS_SYS(old_mmap , 6) /* 4090 */ [ 91] = 2, /* munmap */
MIPS_SYS(sys_munmap , 2) [ 92] = 2, /* truncate */
MIPS_SYS(sys_truncate , 2) [ 93] = 2, /* ftruncate */
MIPS_SYS(sys_ftruncate , 2) [ 94] = 2, /* fchmod */
MIPS_SYS(sys_fchmod , 2) [ 95] = 3, /* fchown */
MIPS_SYS(sys_fchown , 3) /* 4095 */ [ 96] = 2, /* getpriority */
MIPS_SYS(sys_getpriority , 2) [ 97] = 3, /* setpriority */
MIPS_SYS(sys_setpriority , 3) [ 98] = 0, /* profil */
MIPS_SYS(sys_ni_syscall , 0) [ 99] = 2, /* statfs */
MIPS_SYS(sys_statfs , 2) [ 100] = 2, /* fstatfs */
MIPS_SYS(sys_fstatfs , 2) /* 4100 */ [ 101] = 3, /* ioperm */
MIPS_SYS(sys_ni_syscall , 0) /* was ioperm(2) */ [ 102] = 2, /* socketcall */
MIPS_SYS(sys_socketcall , 2) [ 103] = 3, /* syslog */
MIPS_SYS(sys_syslog , 3) [ 104] = 3, /* setitimer */
MIPS_SYS(sys_setitimer , 3) [ 105] = 2, /* getitimer */
MIPS_SYS(sys_getitimer , 2) /* 4105 */ [ 106] = 2, /* stat */
MIPS_SYS(sys_newstat , 2) [ 107] = 2, /* lstat */
MIPS_SYS(sys_newlstat , 2) [ 108] = 2, /* fstat */
MIPS_SYS(sys_newfstat , 2) [ 109] = 1, /* olduname */
MIPS_SYS(sys_uname , 1) [ 110] = 1, /* iopl */
MIPS_SYS(sys_ni_syscall , 0) /* 4110 was iopl(2) */ [ 111] = 0, /* vhangup */
MIPS_SYS(sys_vhangup , 0) [ 112] = 0, /* idle */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_idle() */ [ 113] = 5, /* vm86 */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_vm86 */ [ 114] = 4, /* wait4 */
MIPS_SYS(sys_wait4 , 4) [ 115] = 1, /* swapoff */
MIPS_SYS(sys_swapoff , 1) /* 4115 */ [ 116] = 1, /* sysinfo */
MIPS_SYS(sys_sysinfo , 1) [ 117] = 6, /* ipc */
MIPS_SYS(sys_ipc , 6) [ 118] = 1, /* fsync */
MIPS_SYS(sys_fsync , 1) [ 119] = 0, /* sigreturn */
MIPS_SYS(sys_sigreturn , 0) [ 120] = 5, /* clone */
MIPS_SYS(sys_clone , 6) /* 4120 */ [ 121] = 2, /* setdomainname */
MIPS_SYS(sys_setdomainname, 2) [ 122] = 1, /* uname */
MIPS_SYS(sys_newuname , 1) [ 123] = 0, /* modify_ldt */
MIPS_SYS(sys_ni_syscall , 0) /* sys_modify_ldt */ [ 124] = 1, /* adjtimex */
MIPS_SYS(sys_adjtimex , 1) [ 125] = 3, /* mprotect */
MIPS_SYS(sys_mprotect , 3) /* 4125 */ [ 126] = 3, /* sigprocmask */
MIPS_SYS(sys_sigprocmask , 3) [ 127] = 2, /* create_module */
MIPS_SYS(sys_ni_syscall , 0) /* was create_module */ [ 128] = 3, /* init_module */
MIPS_SYS(sys_init_module , 5) [ 129] = 2, /* delete_module */
MIPS_SYS(sys_delete_module, 1) [ 130] = 1, /* get_kernel_syms */
MIPS_SYS(sys_ni_syscall , 0) /* 4130 was get_kernel_syms */ [ 131] = 4, /* quotactl */
MIPS_SYS(sys_quotactl , 0) [ 132] = 1, /* getpgid */
MIPS_SYS(sys_getpgid , 1) [ 133] = 1, /* fchdir */
MIPS_SYS(sys_fchdir , 1) [ 134] = 2, /* bdflush */
MIPS_SYS(sys_bdflush , 2) [ 135] = 3, /* sysfs */
MIPS_SYS(sys_sysfs , 3) /* 4135 */ [ 136] = 1, /* personality */
MIPS_SYS(sys_personality , 1) [ 137] = 0, /* afs_syscall */
MIPS_SYS(sys_ni_syscall , 0) /* for afs_syscall */ [ 138] = 1, /* setfsuid */
MIPS_SYS(sys_setfsuid , 1) [ 139] = 1, /* setfsgid */
MIPS_SYS(sys_setfsgid , 1) [ 140] = 5, /* _llseek */
MIPS_SYS(sys_llseek , 5) /* 4140 */ [ 141] = 3, /* getdents */
MIPS_SYS(sys_getdents , 3) [ 142] = 5, /* _newselect */
MIPS_SYS(sys_select , 5) [ 143] = 2, /* flock */
MIPS_SYS(sys_flock , 2) [ 144] = 3, /* msync */
MIPS_SYS(sys_msync , 3) [ 145] = 3, /* readv */
MIPS_SYS(sys_readv , 3) /* 4145 */ [ 146] = 3, /* writev */
MIPS_SYS(sys_writev , 3) [ 147] = 3, /* cacheflush */
MIPS_SYS(sys_cacheflush , 3) [ 148] = 3, /* cachectl */
MIPS_SYS(sys_cachectl , 3) [ 149] = 4, /* sysmips */
MIPS_SYS(sys_sysmips , 4) [ 150] = 0, /* setup */
MIPS_SYS(sys_ni_syscall , 0) /* 4150 */ [ 151] = 1, /* getsid */
MIPS_SYS(sys_getsid , 1) [ 152] = 1, /* fdatasync */
MIPS_SYS(sys_fdatasync , 0) [ 153] = 1, /* _sysctl */
MIPS_SYS(sys_sysctl , 1) [ 154] = 2, /* mlock */
MIPS_SYS(sys_mlock , 2) [ 155] = 2, /* munlock */
MIPS_SYS(sys_munlock , 2) /* 4155 */ [ 156] = 1, /* mlockall */
MIPS_SYS(sys_mlockall , 1) [ 157] = 0, /* munlockall */
MIPS_SYS(sys_munlockall , 0) [ 158] = 2, /* sched_setparam */
MIPS_SYS(sys_sched_setparam, 2) [ 159] = 2, /* sched_getparam */
MIPS_SYS(sys_sched_getparam, 2) [ 160] = 3, /* sched_setscheduler */
MIPS_SYS(sys_sched_setscheduler, 3) /* 4160 */ [ 161] = 1, /* sched_getscheduler */
MIPS_SYS(sys_sched_getscheduler, 1) [ 162] = 0, /* sched_yield */
MIPS_SYS(sys_sched_yield , 0) [ 163] = 1, /* sched_get_priority_max */
MIPS_SYS(sys_sched_get_priority_max, 1) [ 164] = 1, /* sched_get_priority_min */
MIPS_SYS(sys_sched_get_priority_min, 1) [ 165] = 2, /* sched_rr_get_interval */
MIPS_SYS(sys_sched_rr_get_interval, 2) /* 4165 */ [ 166] = 2, /* nanosleep */
MIPS_SYS(sys_nanosleep, 2) [ 167] = 5, /* mremap */
MIPS_SYS(sys_mremap , 5) [ 168] = 3, /* accept */
MIPS_SYS(sys_accept , 3) [ 169] = 3, /* bind */
MIPS_SYS(sys_bind , 3) [ 170] = 3, /* connect */
MIPS_SYS(sys_connect , 3) /* 4170 */ [ 171] = 3, /* getpeername */
MIPS_SYS(sys_getpeername , 3) [ 172] = 3, /* getsockname */
MIPS_SYS(sys_getsockname , 3) [ 173] = 5, /* getsockopt */
MIPS_SYS(sys_getsockopt , 5) [ 174] = 2, /* listen */
MIPS_SYS(sys_listen , 2) [ 175] = 4, /* recv */
MIPS_SYS(sys_recv , 4) /* 4175 */ [ 176] = 6, /* recvfrom */
MIPS_SYS(sys_recvfrom , 6) [ 177] = 3, /* recvmsg */
MIPS_SYS(sys_recvmsg , 3) [ 178] = 4, /* send */
MIPS_SYS(sys_send , 4) [ 179] = 3, /* sendmsg */
MIPS_SYS(sys_sendmsg , 3) [ 180] = 6, /* sendto */
MIPS_SYS(sys_sendto , 6) /* 4180 */ [ 181] = 5, /* setsockopt */
MIPS_SYS(sys_setsockopt , 5) [ 182] = 2, /* shutdown */
MIPS_SYS(sys_shutdown , 2) [ 183] = 3, /* socket */
MIPS_SYS(sys_socket , 3) [ 184] = 4, /* socketpair */
MIPS_SYS(sys_socketpair , 4) [ 185] = 3, /* setresuid */
MIPS_SYS(sys_setresuid , 3) /* 4185 */ [ 186] = 3, /* getresuid */
MIPS_SYS(sys_getresuid , 3) [ 187] = 5, /* query_module */
MIPS_SYS(sys_ni_syscall , 0) /* was sys_query_module */ [ 188] = 3, /* poll */
MIPS_SYS(sys_poll , 3) [ 189] = 3, /* nfsservctl */
MIPS_SYS(sys_nfsservctl , 3) [ 190] = 3, /* setresgid */
MIPS_SYS(sys_setresgid , 3) /* 4190 */ [ 191] = 3, /* getresgid */
MIPS_SYS(sys_getresgid , 3) [ 192] = 5, /* prctl */
MIPS_SYS(sys_prctl , 5) [ 193] = 0, /* rt_sigreturn */
MIPS_SYS(sys_rt_sigreturn, 0) [ 194] = 4, /* rt_sigaction */
MIPS_SYS(sys_rt_sigaction, 4) [ 195] = 4, /* rt_sigprocmask */
MIPS_SYS(sys_rt_sigprocmask, 4) /* 4195 */ [ 196] = 2, /* rt_sigpending */
MIPS_SYS(sys_rt_sigpending, 2) [ 197] = 4, /* rt_sigtimedwait */
MIPS_SYS(sys_rt_sigtimedwait, 4) [ 198] = 3, /* rt_sigqueueinfo */
MIPS_SYS(sys_rt_sigqueueinfo, 3) [ 199] = 2, /* rt_sigsuspend */
MIPS_SYS(sys_rt_sigsuspend, 0) [ 200] = 6, /* pread64 */
MIPS_SYS(sys_pread64 , 6) /* 4200 */ [ 201] = 6, /* pwrite64 */
MIPS_SYS(sys_pwrite64 , 6) [ 202] = 3, /* chown */
MIPS_SYS(sys_chown , 3) [ 203] = 2, /* getcwd */
MIPS_SYS(sys_getcwd , 2) [ 204] = 2, /* capget */
MIPS_SYS(sys_capget , 2) [ 205] = 2, /* capset */
MIPS_SYS(sys_capset , 2) /* 4205 */ [ 206] = 2, /* sigaltstack */
MIPS_SYS(sys_sigaltstack , 2) [ 207] = 4, /* sendfile */
MIPS_SYS(sys_sendfile , 4) [ 208] = 5, /* getpmsg */
MIPS_SYS(sys_ni_syscall , 0) [ 209] = 5, /* putpmsg */
MIPS_SYS(sys_ni_syscall , 0) [ 210] = 6, /* mmap2 */
MIPS_SYS(sys_mmap2 , 6) /* 4210 */ [ 211] = 4, /* truncate64 */
MIPS_SYS(sys_truncate64 , 4) [ 212] = 4, /* ftruncate64 */
MIPS_SYS(sys_ftruncate64 , 4) [ 213] = 2, /* stat64 */
MIPS_SYS(sys_stat64 , 2) [ 214] = 2, /* lstat64 */
MIPS_SYS(sys_lstat64 , 2) [ 215] = 2, /* fstat64 */
MIPS_SYS(sys_fstat64 , 2) /* 4215 */ [ 216] = 2, /* pivot_root */
MIPS_SYS(sys_pivot_root , 2) [ 217] = 3, /* mincore */
MIPS_SYS(sys_mincore , 3) [ 218] = 3, /* madvise */
MIPS_SYS(sys_madvise , 3) [ 219] = 3, /* getdents64 */
MIPS_SYS(sys_getdents64 , 3) [ 220] = 3, /* fcntl64 */
MIPS_SYS(sys_fcntl64 , 3) /* 4220 */ [ 221] = 0, /* reserved221 */
MIPS_SYS(sys_ni_syscall , 0) [ 222] = 0, /* gettid */
MIPS_SYS(sys_gettid , 0) [ 223] = 5, /* readahead */
MIPS_SYS(sys_readahead , 5) [ 224] = 5, /* setxattr */
MIPS_SYS(sys_setxattr , 5) [ 225] = 5, /* lsetxattr */
MIPS_SYS(sys_lsetxattr , 5) /* 4225 */ [ 226] = 5, /* fsetxattr */
MIPS_SYS(sys_fsetxattr , 5) [ 227] = 4, /* getxattr */
MIPS_SYS(sys_getxattr , 4) [ 228] = 4, /* lgetxattr */
MIPS_SYS(sys_lgetxattr , 4) [ 229] = 4, /* fgetxattr */
MIPS_SYS(sys_fgetxattr , 4) [ 230] = 3, /* listxattr */
MIPS_SYS(sys_listxattr , 3) /* 4230 */ [ 231] = 3, /* llistxattr */
MIPS_SYS(sys_llistxattr , 3) [ 232] = 3, /* flistxattr */
MIPS_SYS(sys_flistxattr , 3) [ 233] = 2, /* removexattr */
MIPS_SYS(sys_removexattr , 2) [ 234] = 2, /* lremovexattr */
MIPS_SYS(sys_lremovexattr, 2) [ 235] = 2, /* fremovexattr */
MIPS_SYS(sys_fremovexattr, 2) /* 4235 */ [ 236] = 2, /* tkill */
MIPS_SYS(sys_tkill , 2) [ 237] = 4, /* sendfile64 */
MIPS_SYS(sys_sendfile64 , 5) [ 238] = 6, /* futex */
MIPS_SYS(sys_futex , 6) [ 239] = 3, /* sched_setaffinity */
MIPS_SYS(sys_sched_setaffinity, 3) [ 240] = 3, /* sched_getaffinity */
MIPS_SYS(sys_sched_getaffinity, 3) /* 4240 */ [ 241] = 2, /* io_setup */
MIPS_SYS(sys_io_setup , 2) [ 242] = 1, /* io_destroy */
MIPS_SYS(sys_io_destroy , 1) [ 243] = 5, /* io_getevents */
MIPS_SYS(sys_io_getevents, 5) [ 244] = 3, /* io_submit */
MIPS_SYS(sys_io_submit , 3) [ 245] = 3, /* io_cancel */
MIPS_SYS(sys_io_cancel , 3) /* 4245 */ [ 246] = 1, /* exit_group */
MIPS_SYS(sys_exit_group , 1) [ 247] = 4, /* lookup_dcookie */
MIPS_SYS(sys_lookup_dcookie, 3) [ 248] = 1, /* epoll_create */
MIPS_SYS(sys_epoll_create, 1) [ 249] = 4, /* epoll_ctl */
MIPS_SYS(sys_epoll_ctl , 4) [ 250] = 4, /* epoll_wait */
MIPS_SYS(sys_epoll_wait , 3) /* 4250 */ [ 251] = 5, /* remap_file_pages */
MIPS_SYS(sys_remap_file_pages, 5) [ 252] = 1, /* set_tid_address */
MIPS_SYS(sys_set_tid_address, 1) [ 253] = 0, /* restart_syscall */
MIPS_SYS(sys_restart_syscall, 0) [ 254] = 7, /* fadvise64 */
MIPS_SYS(sys_fadvise64_64, 7) [ 255] = 3, /* statfs64 */
MIPS_SYS(sys_statfs64 , 3) /* 4255 */ [ 256] = 3, /* fstatfs64 */
MIPS_SYS(sys_fstatfs64 , 2) [ 257] = 3, /* timer_create */
MIPS_SYS(sys_timer_create, 3) [ 258] = 4, /* timer_settime */
MIPS_SYS(sys_timer_settime, 4) [ 259] = 2, /* timer_gettime */
MIPS_SYS(sys_timer_gettime, 2) [ 260] = 1, /* timer_getoverrun */
MIPS_SYS(sys_timer_getoverrun, 1) /* 4260 */ [ 261] = 1, /* timer_delete */
MIPS_SYS(sys_timer_delete, 1) [ 262] = 2, /* clock_settime */
MIPS_SYS(sys_clock_settime, 2) [ 263] = 2, /* clock_gettime */
MIPS_SYS(sys_clock_gettime, 2) [ 264] = 2, /* clock_getres */
MIPS_SYS(sys_clock_getres, 2) [ 265] = 4, /* clock_nanosleep */
MIPS_SYS(sys_clock_nanosleep, 4) /* 4265 */ [ 266] = 3, /* tgkill */
MIPS_SYS(sys_tgkill , 3) [ 267] = 2, /* utimes */
MIPS_SYS(sys_utimes , 2) [ 268] = 6, /* mbind */
MIPS_SYS(sys_mbind , 4) [ 269] = 5, /* get_mempolicy */
MIPS_SYS(sys_ni_syscall , 0) /* sys_get_mempolicy */ [ 270] = 3, /* set_mempolicy */
MIPS_SYS(sys_ni_syscall , 0) /* 4270 sys_set_mempolicy */ [ 271] = 4, /* mq_open */
MIPS_SYS(sys_mq_open , 4) [ 272] = 1, /* mq_unlink */
MIPS_SYS(sys_mq_unlink , 1) [ 273] = 5, /* mq_timedsend */
MIPS_SYS(sys_mq_timedsend, 5) [ 274] = 5, /* mq_timedreceive */
MIPS_SYS(sys_mq_timedreceive, 5) [ 275] = 2, /* mq_notify */
MIPS_SYS(sys_mq_notify , 2) /* 4275 */ [ 276] = 3, /* mq_getsetattr */
MIPS_SYS(sys_mq_getsetattr, 3) [ 277] = 5, /* vserver */
MIPS_SYS(sys_ni_syscall , 0) /* sys_vserver */ [ 278] = 5, /* waitid */
MIPS_SYS(sys_waitid , 4) [ 279] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYS(sys_ni_syscall , 0) /* available, was setaltroot */ [ 280] = 5, /* add_key */
MIPS_SYS(sys_add_key , 5) [ 281] = 4, /* request_key */
MIPS_SYS(sys_request_key, 4) [ 282] = 5, /* keyctl */
MIPS_SYS(sys_keyctl , 5) [ 283] = 1, /* set_thread_area */
MIPS_SYS(sys_set_thread_area, 1) [ 284] = 0, /* inotify_init */
MIPS_SYS(sys_inotify_init, 0) [ 285] = 3, /* inotify_add_watch */
MIPS_SYS(sys_inotify_add_watch, 3) /* 4285 */ [ 286] = 2, /* inotify_rm_watch */
MIPS_SYS(sys_inotify_rm_watch, 2) [ 287] = 4, /* migrate_pages */
MIPS_SYS(sys_migrate_pages, 4) [ 288] = 4, /* openat */
MIPS_SYS(sys_openat, 4) [ 289] = 3, /* mkdirat */
MIPS_SYS(sys_mkdirat, 3) [ 290] = 4, /* mknodat */
MIPS_SYS(sys_mknodat, 4) /* 4290 */ [ 291] = 5, /* fchownat */
MIPS_SYS(sys_fchownat, 5) [ 292] = 3, /* futimesat */
MIPS_SYS(sys_futimesat, 3) [ 293] = 4, /* fstatat64 */
MIPS_SYS(sys_fstatat64, 4) [ 294] = 3, /* unlinkat */
MIPS_SYS(sys_unlinkat, 3) [ 295] = 4, /* renameat */
MIPS_SYS(sys_renameat, 4) /* 4295 */ [ 296] = 5, /* linkat */
MIPS_SYS(sys_linkat, 5) [ 297] = 3, /* symlinkat */
MIPS_SYS(sys_symlinkat, 3) [ 298] = 4, /* readlinkat */
MIPS_SYS(sys_readlinkat, 4) [ 299] = 3, /* fchmodat */
MIPS_SYS(sys_fchmodat, 3) [ 300] = 3, /* faccessat */
MIPS_SYS(sys_faccessat, 3) /* 4300 */ [ 301] = 6, /* pselect6 */
MIPS_SYS(sys_pselect6, 6) [ 302] = 5, /* ppoll */
MIPS_SYS(sys_ppoll, 5) [ 303] = 1, /* unshare */
MIPS_SYS(sys_unshare, 1) [ 304] = 6, /* splice */
MIPS_SYS(sys_splice, 6) [ 305] = 7, /* sync_file_range */
MIPS_SYS(sys_sync_file_range, 7) /* 4305 */ [ 306] = 4, /* tee */
MIPS_SYS(sys_tee, 4) [ 307] = 4, /* vmsplice */
MIPS_SYS(sys_vmsplice, 4) [ 308] = 6, /* move_pages */
MIPS_SYS(sys_move_pages, 6) [ 309] = 2, /* set_robust_list */
MIPS_SYS(sys_set_robust_list, 2) [ 310] = 3, /* get_robust_list */
MIPS_SYS(sys_get_robust_list, 3) /* 4310 */ [ 311] = 4, /* kexec_load */
MIPS_SYS(sys_kexec_load, 4) [ 312] = 3, /* getcpu */
MIPS_SYS(sys_getcpu, 3) [ 313] = 6, /* epoll_pwait */
MIPS_SYS(sys_epoll_pwait, 6) [ 314] = 3, /* ioprio_set */
MIPS_SYS(sys_ioprio_set, 3) [ 315] = 2, /* ioprio_get */
MIPS_SYS(sys_ioprio_get, 2) [ 316] = 4, /* utimensat */
MIPS_SYS(sys_utimensat, 4) [ 317] = 3, /* signalfd */
MIPS_SYS(sys_signalfd, 3) [ 318] = 4, /* timerfd */
MIPS_SYS(sys_ni_syscall, 0) /* was timerfd */ [ 319] = 1, /* eventfd */
MIPS_SYS(sys_eventfd, 1) [ 320] = 6, /* fallocate */
MIPS_SYS(sys_fallocate, 6) /* 4320 */ [ 321] = 2, /* timerfd_create */
MIPS_SYS(sys_timerfd_create, 2) [ 322] = 2, /* timerfd_gettime */
MIPS_SYS(sys_timerfd_gettime, 2) [ 323] = 4, /* timerfd_settime */
MIPS_SYS(sys_timerfd_settime, 4) [ 324] = 4, /* signalfd4 */
MIPS_SYS(sys_signalfd4, 4) [ 325] = 2, /* eventfd2 */
MIPS_SYS(sys_eventfd2, 2) /* 4325 */ [ 326] = 1, /* epoll_create1 */
MIPS_SYS(sys_epoll_create1, 1) [ 327] = 3, /* dup3 */
MIPS_SYS(sys_dup3, 3) [ 328] = 2, /* pipe2 */
MIPS_SYS(sys_pipe2, 2) [ 329] = 1, /* inotify_init1 */
MIPS_SYS(sys_inotify_init1, 1) [ 330] = 5, /* preadv */
MIPS_SYS(sys_preadv, 5) /* 4330 */ [ 331] = 5, /* pwritev */
MIPS_SYS(sys_pwritev, 5) [ 332] = 4, /* rt_tgsigqueueinfo */
MIPS_SYS(sys_rt_tgsigqueueinfo, 4) [ 333] = 5, /* perf_event_open */
MIPS_SYS(sys_perf_event_open, 5) [ 334] = 4, /* accept4 */
MIPS_SYS(sys_accept4, 4) [ 335] = 5, /* recvmmsg */
MIPS_SYS(sys_recvmmsg, 5) /* 4335 */ [ 336] = 2, /* fanotify_init */
MIPS_SYS(sys_fanotify_init, 2) [ 337] = 6, /* fanotify_mark */
MIPS_SYS(sys_fanotify_mark, 6) [ 338] = 4, /* prlimit64 */
MIPS_SYS(sys_prlimit64, 4) [ 339] = 5, /* name_to_handle_at */
MIPS_SYS(sys_name_to_handle_at, 5) [ 340] = 3, /* open_by_handle_at */
MIPS_SYS(sys_open_by_handle_at, 3) /* 4340 */ [ 341] = 2, /* clock_adjtime */
MIPS_SYS(sys_clock_adjtime, 2) [ 342] = 1, /* syncfs */
MIPS_SYS(sys_syncfs, 1) [ 343] = 4, /* sendmmsg */
MIPS_SYS(sys_sendmmsg, 4) [ 344] = 2, /* setns */
MIPS_SYS(sys_setns, 2) [ 345] = 6, /* process_vm_readv */
MIPS_SYS(sys_process_vm_readv, 6) /* 345 */ [ 346] = 6, /* process_vm_writev */
MIPS_SYS(sys_process_vm_writev, 6) [ 347] = 5, /* kcmp */
MIPS_SYS(sys_kcmp, 5) [ 348] = 3, /* finit_module */
MIPS_SYS(sys_finit_module, 3) [ 349] = 3, /* sched_setattr */
MIPS_SYS(sys_sched_setattr, 2) [ 350] = 4, /* sched_getattr */
MIPS_SYS(sys_sched_getattr, 3) /* 350 */ [ 351] = 5, /* renameat2 */
MIPS_SYS(sys_renameat2, 5) [ 352] = 3, /* seccomp */
MIPS_SYS(sys_seccomp, 3) [ 353] = 3, /* getrandom */
MIPS_SYS(sys_getrandom, 3) [ 354] = 2, /* memfd_create */
MIPS_SYS(sys_memfd_create, 2) [ 355] = 3, /* bpf */
MIPS_SYS(sys_bpf, 3) /* 355 */ [ 356] = 5, /* execveat */
MIPS_SYS(sys_execveat, 5) [ 357] = 1, /* userfaultfd */
MIPS_SYS(sys_userfaultfd, 1) [ 358] = 2, /* membarrier */
MIPS_SYS(sys_membarrier, 2) [ 359] = 3, /* mlock2 */
MIPS_SYS(sys_mlock2, 3) [ 360] = 6, /* copy_file_range */
MIPS_SYS(sys_copy_file_range, 6) /* 360 */ [ 361] = 6, /* preadv2 */
MIPS_SYS(sys_preadv2, 6) [ 362] = 6, /* pwritev2 */
MIPS_SYS(sys_pwritev2, 6) [ 363] = 4, /* pkey_mprotect */
MIPS_SYS(sys_pkey_mprotect, 4) [ 364] = 2, /* pkey_alloc */
MIPS_SYS(sys_pkey_alloc, 2) [ 365] = 1, /* pkey_free */
MIPS_SYS(sys_pkey_free, 1) /* 365 */ [ 366] = 5, /* statx */
MIPS_SYS(sys_statx, 5) [ 367] = 4, /* rseq */
MIPS_SYS(sys_rseq, 4) [ 368] = 6, /* io_pgetevents */
MIPS_SYS(sys_io_pgetevents, 6) [ 369] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 370] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 370 */ [ 371] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 372] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 373] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 374] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 375] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 375 */ [ 376] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 377] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 378] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 379] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 380] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 380 */ [ 381] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 382] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 383] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 384] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 385] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 385 */ [ 386] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 387] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 388] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 389] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 390] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 390 */ [ 391] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 392] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, [ 393] = 3, /* semget */
MIPS_SYS(sys_semget, 3) [ 394] = 4, /* semctl */
MIPS_SYS(sys_semctl, 4) [ 395] = 3, /* shmget */
MIPS_SYS(sys_shmget, 3) /* 395 */ [ 396] = 3, /* shmctl */
MIPS_SYS(sys_shmctl, 3) [ 397] = 3, /* shmat */
MIPS_SYS(sys_shmat, 3) [ 398] = 1, /* shmdt */
MIPS_SYS(sys_shmdt, 1) [ 399] = 2, /* msgget */
MIPS_SYS(sys_msgget, 2) [ 400] = 4, /* msgsnd */
MIPS_SYS(sys_msgsnd, 4) /* 400 */ [ 401] = 5, /* msgrcv */
MIPS_SYS(sys_msgrcv, 5) [ 402] = 3, /* msgctl */
MIPS_SYS(sys_msgctl, 3) [ 403] = 2, /* clock_gettime64 */
MIPS_SYS(sys_clock_gettime64, 2) [ 404] = 2, /* clock_settime64 */
MIPS_SYS(sys_clock_settime64, 2) [ 405] = 2, /* clock_adjtime64 */
MIPS_SYS(sys_clock_adjtime64, 2) /* 405 */ [ 406] = 2, /* clock_getres_time64 */
MIPS_SYS(sys_clock_getres_time64, 2) [ 407] = 4, /* clock_nanosleep_time64 */
MIPS_SYS(sys_clock_nanosleep_time64, 4) [ 408] = 2, /* timer_gettime64 */
MIPS_SYS(sys_timer_gettime64, 2) [ 409] = 4, /* timer_settime64 */
MIPS_SYS(sys_timer_settime64, 4) [ 410] = 2, /* timerfd_gettime64 */
MIPS_SYS(sys_timerfd_gettime64, 2) /* 410 */ [ 411] = 4, /* timerfd_settime64 */
MIPS_SYS(sys_timerfd_settime64, 4) [ 412] = 4, /* utimensat_time64 */
MIPS_SYS(sys_utimensat_time64, 4) [ 413] = 6, /* pselect6_time64 */
MIPS_SYS(sys_pselect6_time64, 6) [ 414] = 5, /* ppoll_time64 */
MIPS_SYS(sys_ppoll_time64, 5) [ 415] = MIPS_SYSCALL_NUMBER_UNUSED,
MIPS_SYSCALL_NUMBER_UNUSED, /* 415 */ [ 416] = 6, /* io_pgetevents_time64 */
MIPS_SYS(sys_io_pgetevents_time64, 6) [ 417] = 5, /* recvmmsg_time64 */
MIPS_SYS(sys_recvmmsg_time64, 5) [ 418] = 5, /* mq_timedsend_time64 */
MIPS_SYS(sys_mq_timedsend_time64, 5) [ 419] = 5, /* mq_timedreceive_time64 */
MIPS_SYS(sys_mq_timedreceive_time64, 5) [ 420] = 4, /* semtimedop_time64 */
MIPS_SYS(sys_semtimedop_time64, 4) /* 420 */ [ 421] = 4, /* rt_sigtimedwait_time64 */
MIPS_SYS(sys_rt_sigtimedwait_time64, 4) [ 422] = 6, /* futex_time64 */
MIPS_SYS(sys_futex_time64, 6) [ 423] = 2, /* sched_rr_get_interval_time64 */
MIPS_SYS(sys_sched_rr_get_interval_time64, 2) [ 424] = 4, /* pidfd_send_signal */
MIPS_SYS(sys_pidfd_send_signal, 4) [ 425] = 2, /* io_uring_setup */
MIPS_SYS(sys_io_uring_setup, 2) /* 425 */ [ 426] = 6, /* io_uring_enter */
MIPS_SYS(sys_io_uring_enter, 6) [ 427] = 4, /* io_uring_register */
MIPS_SYS(sys_io_uring_register, 4) [ 428] = 3, /* open_tree */
MIPS_SYS(sys_open_tree, 3) [ 429] = 5, /* move_mount */
MIPS_SYS(sys_move_mount, 5) [ 430] = 2, /* fsopen */
MIPS_SYS(sys_fsopen, 2) /* 430 */ [ 431] = 5, /* fsconfig */
MIPS_SYS(sys_fsconfig, 5) [ 432] = 3, /* fsmount */
MIPS_SYS(sys_fsmount, 3) [ 433] = 3, /* fspick */
MIPS_SYS(sys_fspick, 3) [ 434] = 2, /* pidfd_open */
MIPS_SYS(sys_pidfd_open, 2) [ 435] = 2, /* clone3 */
MIPS_SYS(sys_clone3, 2) /* 435 */
# undef MIPS_SYS

View File

@ -0,0 +1,57 @@
#!/bin/sh
URL=https://raw.githubusercontent.com/strace/strace/master
FILES="sysent.h sysent_shorthand_defs.h linux/mips/syscallent-compat.h \
linux/mips/syscallent-o32.h linux/syscallent-common-32.h \
linux/syscallent-common.h"
output="$1"
if [ "$output" = "" ] ; then
output="$PWD"
fi
INC=linux-user/mips/syscall-args-o32.c.inc
TMP=$(mktemp -d)
cd $TMP
for file in $FILES; do
curl -O $URL/$file
done
> subcall32.h
cat > gen_mips_o32.c <<EOF
#include <stdio.h>
#define LINUX_MIPSO32
#define MAX_ARGS 7
#include "sysent.h"
#include "sysent_shorthand_defs.h"
#define SEN(syscall_name) 0,0
const struct_sysent sysent0[] = {
#include "syscallent-o32.h"
};
int main(void)
{
int i;
for (i = 4000; i < sizeof(sysent0) / sizeof(struct_sysent); i++) {
if (sysent0[i].sys_name == NULL) {
printf(" [% 4d] = MIPS_SYSCALL_NUMBER_UNUSED,\n", i - 4000);
} else {
printf(" [% 4d] = %d, /* %s */\n", i - 4000,
sysent0[i].nargs, sysent0[i].sys_name);
}
}
return 0;
}
EOF
cc -o gen_mips_o32 gen_mips_o32.c && ./gen_mips_o32 > "$output/$INC"
rm -fr "$TMP"