diff options
author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2012-11-20 09:57:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-11-24 15:12:07 +0000 |
commit | f67ad1c2634b3c7a46c43ebdbdffbe7a083e99ed (patch) | |
tree | f53ce36d1035df81ca2ec29d2cd03ae3774afa93 /meta/recipes-devtools | |
parent | ba151faad47e6874b295ebd9699ce154bc4ff741 (diff) | |
download | openembedded-core-f67ad1c2634b3c7a46c43ebdbdffbe7a083e99ed.tar.gz openembedded-core-f67ad1c2634b3c7a46c43ebdbdffbe7a083e99ed.tar.bz2 openembedded-core-f67ad1c2634b3c7a46c43ebdbdffbe7a083e99ed.zip |
strace: backport AArch64 support
This changeset updates existing OE patches to commits from upstream git
tree and adds everything needed to get AArch64 support working.
Signed-off-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools')
12 files changed, 5858 insertions, 24 deletions
diff --git a/meta/recipes-devtools/strace/strace-4.7/strace-eglibc-2.16.patch b/meta/recipes-devtools/strace/strace-4.7/0003-util-fix-building-when-glibc-has-a-stub-process_vm_r.patch index 67cf4e8c11..2fd80ec2b2 100644 --- a/meta/recipes-devtools/strace/strace-4.7/strace-eglibc-2.16.patch +++ b/meta/recipes-devtools/strace/strace-4.7/0003-util-fix-building-when-glibc-has-a-stub-process_vm_r.patch @@ -1,11 +1,10 @@ Upstream-Status: Backport -https://bugs.gentoo.org/414637 - -From 302e8ec6cd62912a3cd6494ce6702f4ad8dae0e2 Mon Sep 17 00:00:00 2001 +From 24ee60b836ad33bb4ac694ca99d6c94a8cc5ff92 Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@gentoo.org> -Date: Fri, 4 May 2012 19:30:59 -0400 -Subject: [PATCH] util: fix building when glibc has a stub process_vm_readv +Date: Fri, 4 May 2012 19:37:29 -0400 +Subject: [PATCH 03/31] util: fix building when glibc has a stub + process_vm_readv If you have a newer glibc which provides process_vm_readv, but it is built against older kernel headers which lack __NR_process_vm_readv, the library @@ -25,14 +24,14 @@ callers all hit the right place. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- - util.c | 4 +++- + util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -Index: strace-4.7/util.c -=================================================================== ---- strace-4.7.orig/util.c 2012-04-28 05:58:35.000000000 -0700 -+++ strace-4.7/util.c 2012-07-11 11:07:47.869825001 -0700 -@@ -735,7 +735,8 @@ +diff --git a/util.c b/util.c +index d347bd8..f27acdf 100644 +--- a/util.c ++++ b/util.c +@@ -735,7 +735,8 @@ static bool process_vm_readv_not_supported = 0; #if defined(__NR_process_vm_readv) static bool process_vm_readv_not_supported = 0; @@ -42,7 +41,7 @@ Index: strace-4.7/util.c const struct iovec *lvec, unsigned long liovcnt, const struct iovec *rvec, -@@ -744,6 +745,7 @@ +@@ -744,6 +745,7 @@ static ssize_t process_vm_readv(pid_t pid, { return syscall(__NR_process_vm_readv, (long)pid, lvec, liovcnt, rvec, riovcnt, flags); } @@ -50,3 +49,6 @@ Index: strace-4.7/util.c #else static bool process_vm_readv_not_supported = 1; # define process_vm_readv(...) (errno = ENOSYS, -1) +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/strace-x32.patch b/meta/recipes-devtools/strace/strace-4.7/0014-x32-update-syscall-table.patch index 3dc69b282b..b977e9db41 100644 --- a/meta/recipes-devtools/strace/strace-4.7/strace-x32.patch +++ b/meta/recipes-devtools/strace/strace-4.7/0014-x32-update-syscall-table.patch @@ -1,9 +1,9 @@ -Upstream-Status: Pending +Upstream-Status: Backport -m 364ed4f14c5edb5ddbc79c72d22498219033b29d Mon Sep 17 00:00:00 2001 +From d7df59197d406b14af21cbc734d286c27108e2db Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@gentoo.org> -Date: Mon, 4 Jun 2012 13:19:42 -0400 -Subject: [PATCH] x32: update syscall table +Date: Mon, 4 Jun 2012 14:01:59 -0400 +Subject: [PATCH 14/31] x32: update syscall table This syncs with the syscall table as it is in linux 3.4. @@ -15,13 +15,13 @@ This syncs with the syscall table as it is in linux 3.4. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- - linux/x32/syscallent.h | 24 ++++++++++++------------ + linux/x32/syscallent.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) -Index: strace-4.7/linux/x32/syscallent.h -=================================================================== ---- strace-4.7.orig/linux/x32/syscallent.h 2012-04-16 04:00:01.000000000 -0700 -+++ strace-4.7/linux/x32/syscallent.h 2012-07-11 11:08:00.285824906 -0700 +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index fcb6a23..ee4c4ce 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h @@ -57,7 +57,7 @@ { 5, TP, sys_clone, "clone" }, /* 56 */ { 0, TP, sys_fork, "fork" }, /* 57 */ @@ -86,3 +86,6 @@ Index: strace-4.7/linux/x32/syscallent.h - { 6, 0, sys_process_vm_writev, "process_vm_writev"}, /* 540 */ + { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 539 */ + { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 540 */ +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch b/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch new file mode 100644 index 0000000000..4a1e2f7bec --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0018-x32-update-g-s-etsockopt-syscall-numbers.patch @@ -0,0 +1,43 @@ +Upstream-Status: Backport + +From f04b5de5a5a743f0b3ca0895379dd2ba702ea174 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 22 Aug 2012 11:56:15 -0400 +Subject: [PATCH 18/31] x32: update {g,s}etsockopt syscall numbers + +Starting with linux 3.6 (and backported to earlier kernels), these two +syscalls have changed numbers (moving from native to compat entry points). +Update the strace syscall list accordingly. + +* linux/x32/syscallent.h: Move setsockopt from 54 to 541, and move +getsockopt from 55 to 542. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + linux/x32/syscallent.h | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index ee4c4ce..6385d45 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h +@@ -52,8 +52,8 @@ + { 3, TN, sys_getsockname, "getsockname" }, /* 51 */ + { 3, TN, sys_getpeername, "getpeername" }, /* 52 */ + { 4, TN, sys_socketpair, "socketpair" }, /* 53 */ +- { 5, TN, sys_setsockopt, "setsockopt" }, /* 54 */ +- { 5, TN, sys_getsockopt, "getsockopt" }, /* 55 */ ++ { }, /* 54 */ ++ { }, /* 55 */ + { 5, TP, sys_clone, "clone" }, /* 56 */ + { 0, TP, sys_fork, "fork" }, /* 57 */ + { 0, TP, sys_vfork, "vfork" }, /* 58 */ +@@ -342,3 +342,5 @@ + { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 538 */ + { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 539 */ + { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 540 */ ++ { 5, TN, sys_setsockopt, "setsockopt" }, /* 541 */ ++ { 5, TN, sys_getsockopt, "getsockopt" }, /* 542 */ +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0024-x32-add-64bit-annotation-too.patch b/meta/recipes-devtools/strace/strace-4.7/0024-x32-add-64bit-annotation-too.patch new file mode 100644 index 0000000000..c0406a5bdc --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0024-x32-add-64bit-annotation-too.patch @@ -0,0 +1,231 @@ +Upstream-Status: Backport + +From 85c217849046414a98d2d90173960f39defc145f Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Thu, 27 Sep 2012 01:12:39 -0400 +Subject: [PATCH 24/31] x32: add 64bit annotation too + +Since someone can invoke these entry points directly with syscall(), +at least decode their name and show that they're 64bit versions rather +than just showing syscall_###. + +* linux/x32/syscallent.h: Sync all missing entries below 312 with x86_64. + +Signed-off-by: Mike Frysinger <vapier@gentoo.org> +--- + linux/x32/syscallent.h | 84 +++++++++++++++++++++++++------------------------- + 1 file changed, 42 insertions(+), 42 deletions(-) + +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index 6385d45..978af94 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h +@@ -11,14 +11,14 @@ + { 3, 0, sys_mprotect, "mprotect" }, /* 10 */ + { 2, 0, sys_munmap, "munmap" }, /* 11 */ + { 1, 0, sys_brk, "brk" }, /* 12 */ +- { }, /* 13 */ ++ { 4, TS, printargs, "64:rt_sigaction" }, /* 13 */ + { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 14 */ +- { }, /* 15 */ +- { }, /* 16 */ ++ { 0, TS, printargs, "64:rt_sigreturn" }, /* 15 */ ++ { 3, TD, printargs, "64:ioctl" }, /* 16 */ + { 5, TD, sys_pread, "pread" }, /* 17 */ + { 5, TD, sys_pwrite, "pwrite" }, /* 18 */ +- { }, /* 19 */ +- { }, /* 20 */ ++ { 3, TD, printargs, "64:readv" }, /* 19 */ ++ { 3, TD, printargs, "64:writev" }, /* 20 */ + { 2, TF, sys_access, "access" }, /* 21 */ + { 1, TD, sys_pipe, "pipe" }, /* 22 */ + { 5, TD, sys_select, "select" }, /* 23 */ +@@ -43,21 +43,21 @@ + { 3, TN, sys_connect, "connect" }, /* 42 */ + { 3, TN, sys_accept, "accept" }, /* 43 */ + { 6, TN, sys_sendto, "sendto" }, /* 44 */ +- { }, /* 45 */ +- { }, /* 46 */ +- { }, /* 47 */ ++ { 6, TN, printargs, "64:recvfrom" }, /* 45 */ ++ { 3, TN, printargs, "64:sendmsg" }, /* 46 */ ++ { 5, TN, printargs, "64:recvmsg" }, /* 47 */ + { 2, TN, sys_shutdown, "shutdown" }, /* 48 */ + { 3, TN, sys_bind, "bind" }, /* 49 */ + { 2, TN, sys_listen, "listen" }, /* 50 */ + { 3, TN, sys_getsockname, "getsockname" }, /* 51 */ + { 3, TN, sys_getpeername, "getpeername" }, /* 52 */ + { 4, TN, sys_socketpair, "socketpair" }, /* 53 */ +- { }, /* 54 */ +- { }, /* 55 */ ++ { 5, TN, printargs, "64:setsockopt" }, /* 54 */ ++ { 5, TN, printargs, "64:getsockopt" }, /* 55 */ + { 5, TP, sys_clone, "clone" }, /* 56 */ + { 0, TP, sys_fork, "fork" }, /* 57 */ + { 0, TP, sys_vfork, "vfork" }, /* 58 */ +- { }, /* 59 */ ++ { 3, TF|TP, printargs, "64:execve" }, /* 59 */ + { 1, TP, sys_exit, "_exit" }, /* 60 */ + { 4, TP, sys_wait4, "wait4" }, /* 61 */ + { 2, TS, sys_kill, "kill" }, /* 62 */ +@@ -99,7 +99,7 @@ + { 2, 0, sys_getrusage, "getrusage" }, /* 98 */ + { 1, 0, sys_sysinfo, "sysinfo" }, /* 99 */ + { 1, 0, sys_times, "times" }, /* 100 */ +- { }, /* 101 */ ++ { 4, 0, printargs, "64:ptrace" }, /* 101 */ + { 0, NF, sys_getuid, "getuid" }, /* 102 */ + { 3, 0, sys_syslog, "syslog" }, /* 103 */ + { 0, NF, sys_getgid, "getgid" }, /* 104 */ +@@ -125,14 +125,14 @@ + { 1, 0, sys_getsid, "getsid" }, /* 124 */ + { 2, 0, sys_capget, "capget" }, /* 125 */ + { 2, 0, sys_capset, "capset" }, /* 126 */ +- { }, /* 127 */ +- { }, /* 128 */ +- { }, /* 129 */ ++ { 2, TS, printargs, "64:rt_sigpending" }, /* 127 */ ++ { 4, TS, printargs, "64:rt_sigtimedwait" }, /* 128 */ ++ { 3, TS, printargs, "64:rt_sigqueueinfo" }, /* 129 */ + { 2, TS, sys_rt_sigsuspend, "rt_sigsuspend" }, /* 130 */ +- { }, /* 131 */ ++ { 2, TS, printargs, "64:sigaltstack"}, /* 131 */ + { 2, TF, sys_utime, "utime" }, /* 132 */ + { 3, TF, sys_mknod, "mknod" }, /* 133 */ +- { }, /* 134 */ ++ { 1, TF, printargs, "64:uselib" }, /* 134 */ + { 1, 0, sys_personality, "personality" }, /* 135 */ + { 2, 0, sys_ustat, "ustat" }, /* 136 */ + { 2, TF, sys_statfs, "statfs" }, /* 137 */ +@@ -154,7 +154,7 @@ + { 0, 0, sys_vhangup, "vhangup" }, /* 153 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 154 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 155 */ +- { }, /* 156 */ ++ { 1, 0, printargs, "64:_sysctl" }, /* 156 */ + { 5, 0, sys_prctl, "prctl" }, /* 157 */ + { 2, TP, sys_arch_prctl, "arch_prctl" }, /* 158 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 159 */ +@@ -172,13 +172,13 @@ + { 2, 0, sys_setdomainname, "setdomainname" }, /* 171 */ + { 1, 0, sys_iopl, "iopl" }, /* 172 */ + { 3, 0, sys_ioperm, "ioperm" }, /* 173 */ +- { }, /* 174 */ ++ { 2, 0, printargs, "64:create_module" }, /* 174 */ + { 3, 0, sys_init_module, "init_module" }, /* 175 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 176 */ +- { }, /* 177 */ +- { }, /* 178 */ ++ { 1, 0, printargs, "64:get_kernel_syms" }, /* 177 */ ++ { 5, 0, printargs, "64:query_module" }, /* 178 */ + { 4, 0, sys_quotactl, "quotactl" }, /* 179 */ +- { }, /* 180 */ ++ { 3, 0, printargs, "64:nfsservctl" }, /* 180 */ + { 5, 0, sys_getpmsg, "getpmsg" }, /* 181 */ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 182 */ + { 5, 0, sys_afs_syscall, "afs_syscall" }, /* 183 */ +@@ -203,24 +203,24 @@ + { 6, 0, sys_futex, "futex" }, /* 202 */ + { 3, 0, sys_sched_setaffinity, "sched_setaffinity" },/* 203 */ + { 3, 0, sys_sched_getaffinity, "sched_getaffinity" },/* 204 */ +- { }, /* 205 */ ++ { 1, 0, printargs, "64:set_thread_area" }, /* 205 */ + { 2, 0, sys_io_setup, "io_setup" }, /* 206 */ + { 1, 0, sys_io_destroy, "io_destroy" }, /* 207 */ + { 5, 0, sys_io_getevents, "io_getevents" }, /* 208 */ + { 3, 0, sys_io_submit, "io_submit" }, /* 209 */ + { 3, 0, sys_io_cancel, "io_cancel" }, /* 210 */ +- { }, /* 211 */ ++ { 1, 0, printargs, "64:get_thread_area" }, /* 211 */ + { 4, 0, sys_lookup_dcookie, "lookup_dcookie"}, /* 212 */ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 213 */ +- { }, /* 214 */ +- { }, /* 215 */ ++ { 4, 0, printargs, "64:epoll_ctl_old" }, /* 214 */ ++ { 4, 0, printargs, "64:epoll_wait_old" }, /* 215 */ + { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 216 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 217 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 218 */ + { 0, 0, sys_restart_syscall, "restart_syscall"}, /* 219 */ + { 5, TI, sys_semtimedop, "semtimedop" }, /* 220 */ + { 4, TD, sys_fadvise64_64, "fadvise64" }, /* 221 */ +- { }, /* 222 */ ++ { 3, 0, printargs, "64:timer_create"}, /* 222 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 223 */ + { 2, 0, sys_timer_gettime, "timer_gettime" }, /* 224 */ + { 1, 0, sys_timer_getoverrun, "timer_getoverrun"}, /* 225 */ +@@ -234,7 +234,7 @@ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 233 */ + { 3, TS, sys_tgkill, "tgkill" }, /* 234 */ + { 2, TF, sys_utimes, "utimes" }, /* 235 */ +- { }, /* 236 */ ++ { 5, 0, printargs, "64:vserver" }, /* 236 */ + { 6, 0, sys_mbind, "mbind" }, /* 237 */ + { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 238 */ + { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 239 */ +@@ -242,10 +242,10 @@ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 241 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 242 */ + { 5, 0, sys_mq_timedreceive, "mq_timedreceive" }, /* 243 */ +- { }, /* 244 */ ++ { 2, 0, printargs, "64:mq_notify" }, /* 244 */ + { 3, 0, sys_mq_getsetattr, "mq_getsetattr" }, /* 245 */ +- { }, /* 246 */ +- { }, /* 247 */ ++ { 4, 0, printargs, "64:kexec_load" }, /* 246 */ ++ { 5, TP, printargs, "64:waitid" }, /* 247 */ + { 5, 0, sys_add_key, "add_key" }, /* 248 */ + { 4, 0, sys_request_key, "request_key" }, /* 249 */ + { 5, 0, sys_keyctl, "keyctl" }, /* 250 */ +@@ -271,13 +271,13 @@ + { 6, TD, sys_pselect6, "pselect6" }, /* 270 */ + { 5, TD, sys_ppoll, "ppoll" }, /* 271 */ + { 1, TP, sys_unshare, "unshare" }, /* 272 */ +- { }, /* 273 */ +- { }, /* 274 */ ++ { 2, 0, printargs, "64:set_robust_list" }, /* 273 */ ++ { 3, 0, printargs, "64:get_robust_list" }, /* 274 */ + { 6, TD, sys_splice, "splice" }, /* 275 */ + { 4, TD, sys_tee, "tee" }, /* 276 */ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 277 */ +- { }, /* 278 */ +- { }, /* 279 */ ++ { 4, TD, printargs, "64:vmsplice" }, /* 278 */ ++ { 6, 0, printargs, "64:move_pages" }, /* 279 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 280 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 281 */ + { 3, TD|TS, sys_signalfd, "signalfd" }, /* 282 */ +@@ -293,11 +293,11 @@ + { 3, TD, sys_dup3, "dup3" }, /* 292 */ + { 2, TD, sys_pipe2, "pipe2" }, /* 293 */ + { 1, TD, sys_inotify_init1, "inotify_init1" }, /* 294 */ +- { }, /* 295 */ +- { }, /* 296 */ +- { }, /* 297 */ ++ { 5, TD, printargs, "64:preadv" }, /* 295 */ ++ { 5, TD, printargs, "64:pwritev" }, /* 296 */ ++ { 4, TP|TS, printargs, "64:rt_tgsigqueueinfo"}, /* 297 */ + { 5, TD, sys_perf_event_open, "perf_event_open"}, /* 298 */ +- { }, /* 299 */ ++ { 5, TN, printargs, "64:recvmmsg" }, /* 299 */ + { 2, TD, sys_fanotify_init, "fanotify_init" }, /* 300 */ + { 5, TD|TF, sys_fanotify_mark, "fanotify_mark" }, /* 301 */ + { 4, 0, sys_prlimit64, "prlimit64" }, /* 302 */ +@@ -305,11 +305,11 @@ + { 3, TD, sys_open_by_handle_at, "open_by_handle_at"}, /* 304 */ + { 2, 0, sys_clock_adjtime, "clock_adjtime" }, /* 305 */ + { 1, TD, sys_syncfs, "syncfs" }, /* 306 */ +- { }, /* 307 */ ++ { 4, TN, printargs, "64:sendmmsg" }, /* 307 */ + { 2, TD, sys_setns, "setns" }, /* 308 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 309 */ +- { }, /* 310 */ +- { }, /* 311 */ ++ { 6, 0, printargs, "64:process_vm_readv" }, /* 310 */ ++ { 6, 0, printargs, "64:process_vm_writev" }, /* 311 */ + + [312 ... 511] = {}, + +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0025-Add-e-trace-memory-option.patch b/meta/recipes-devtools/strace/strace-4.7/0025-Add-e-trace-memory-option.patch new file mode 100644 index 0000000000..03ecf5df40 --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0025-Add-e-trace-memory-option.patch @@ -0,0 +1,2898 @@ +Upstream-Status: Backport + +From 9679296d56e3c0a948b1b4dcce99fd3c9b253a3d Mon Sep 17 00:00:00 2001 +From: Namhyung Kim <namhyung.kim@lge.com> +Date: Wed, 24 Oct 2012 11:41:57 +0900 +Subject: [PATCH 25/31] Add -e trace=memory option + +Add a new 'memory' category for tracing memory mapping related syscalls. + +Affected syscalls are: break, brk, get_mempolicy, madvise, mbind, +migrate_pages, mincore, mlock, mlockall, mmap, move_pages, mprotect, +mremap, msync, munlock, munlockall, munmap, remap_file_pages, and +set_mempolicy. + +* defs.h (TRACE_MEMORY): New macro. +* syscall.c (lookup_class): Handle trace=memory option. +* strace.1: Document it. +* linux/alpha/syscallent.h: Add TM flag to memory mapping related syscalls. +* linux/arm/syscallent.h: Likewise. +* linux/avr32/syscallent.h: Likewise. +* linux/bfin/syscallent.h: Likewise. +* linux/hppa/syscallent.h: Likewise. +* linux/i386/syscallent.h: Likewise. +* linux/ia64/syscallent.h: Likewise. +* linux/m68k/syscallent.h: Likewise. +* linux/microblaze/syscallent.h: Likewise. +* linux/mips/syscallent.h: Likewise. +* linux/powerpc/syscallent.h: Likewise. +* linux/s390/syscallent.h: Likewise. +* linux/s390x/syscallent.h: Likewise. +* linux/sh/syscallent.h: Likewise. +* linux/sh64/syscallent.h: Likewise. +* linux/sparc/syscallent.h: Likewise. +* linux/tile/syscallent.h: Likewise. +* linux/x32/syscallent.h: Likewise. +* linux/x86_64/syscallent.h: Likewise. + +Signed-off-by: Namhyung Kim <namhyung.kim@lge.com> +--- + defs.h | 3 +- + linux/alpha/syscallent.h | 42 +++---- + linux/arm/syscallent.h | 38 +++---- + linux/avr32/syscallent.h | 26 ++--- + linux/bfin/syscallent.h | 38 +++---- + linux/hppa/syscallent.h | 38 +++---- + linux/i386/syscallent.h | 40 +++---- + linux/ia64/syscallent.h | 36 +++--- + linux/m68k/syscallent.h | 40 +++---- + linux/microblaze/syscallent.h | 40 +++---- + linux/mips/syscallent.h | 254 +++++++++++++++++++++--------------------- + linux/powerpc/syscallent.h | 40 +++---- + linux/s390/syscallent.h | 38 +++---- + linux/s390x/syscallent.h | 36 +++--- + linux/sh/syscallent.h | 40 +++---- + linux/sh64/syscallent.h | 40 +++---- + linux/sparc/syscallent.h | 38 +++---- + linux/tile/syscallent.h | 36 +++--- + linux/x32/syscallent.h | 38 +++---- + linux/x86_64/syscallent.h | 36 +++--- + strace.1 | 3 + + syscall.c | 4 + + 22 files changed, 476 insertions(+), 468 deletions(-) + +diff --git a/defs.h b/defs.h +index 7814bbd..d366b21 100644 +--- a/defs.h ++++ b/defs.h +@@ -447,7 +447,8 @@ extern const struct xlat open_access_modes[]; + #define TRACE_PROCESS 010 /* Trace process-related syscalls. */ + #define TRACE_SIGNAL 020 /* Trace signal-related syscalls. */ + #define TRACE_DESC 040 /* Trace file descriptor-related syscalls. */ +-#define SYSCALL_NEVER_FAILS 0100 /* Syscall is always successful. */ ++#define TRACE_MEMORY 0100 /* Trace memory mapping-related syscalls. */ ++#define SYSCALL_NEVER_FAILS 0200 /* Syscall is always successful. */ + + typedef enum { + CFLAG_NONE = 0, +diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h +index a2d048b..aa76a43 100644 +--- a/linux/alpha/syscallent.h ++++ b/linux/alpha/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "chown" }, /* 16 */ +- { 1, 0, sys_brk, "brk" }, /* 17 */ ++ { 1, TM, sys_brk, "brk" }, /* 17 */ + { 5, 0, printargs, "osf_getfsstat" }, /* 18, not implemented */ + { 3, TF, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getxpid" }, /* 20 */ +@@ -91,20 +91,20 @@ + { 5, 0, printargs, "osf_old_fstat" }, /* 62, not implemented */ + { 0, 0, sys_getpgrp, "getpgrp" }, /* 63 */ + { 0, 0, sys_getpagesize, "getpagesize" }, /* 64 */ +- { 5, 0, printargs, "osf_mremap" }, /* 65, not implemented */ ++ { 5, TM, printargs, "osf_mremap" }, /* 65, not implemented */ + { 0, TP, sys_fork, "vfork" }, /* 66 */ + { 2, TF, sys_stat, "stat" }, /* 67 */ + { 2, TF, sys_lstat, "lstat" }, /* 68 */ +- { 5, 0, printargs, "osf_sbrk" }, /* 69, not implemented */ ++ { 5, TM, printargs, "osf_sbrk" }, /* 69, not implemented */ + { 5, 0, printargs, "osf_sstk" }, /* 70, not implemented */ +- { 6, TD, sys_mmap, "mmap" }, /* 71 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 71 */ + { 5, 0, printargs, "osf_old_vadvise" }, /* 72, not implemented */ +- { 2, 0, sys_munmap, "munmap" }, /* 73 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 74 */ +- { 3, 0, sys_madvise, "madvise" }, /* 75 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 73 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 74 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 75 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 76 */ + { 5, 0, printargs, "osf_kmodcall" }, /* 77, not implemented */ +- { 5, 0, printargs, "osf_mincore" }, /* 78, not implemented */ ++ { 5, TM, printargs, "osf_mincore" }, /* 78, not implemented */ + { 2, 0, sys_getgroups, "getgroups" }, /* 79 */ + { 2, 0, sys_setgroups, "setgroups" }, /* 80 */ + { 5, 0, printargs, "osf_old_getpgrp" }, /* 81, not implemented */ +@@ -243,7 +243,7 @@ + { 5, 0, printargs, "osf_getaddressconf" }, /* 214, not implemented */ + { 5, 0, printargs, "osf_msleep" }, /* 215, not implemented */ + { 5, 0, printargs, "osf_mwakeup" }, /* 216, not implemented */ +- { 3, 0, sys_msync, "msync" }, /* 217 */ ++ { 3, TM, sys_msync, "msync" }, /* 217 */ + { 5, 0, printargs, "osf_signal" }, /* 218, not implemented */ + { 5, 0, printargs, "osf_utc_gettime" }, /* 219, not implemented */ + { 5, 0, printargs, "osf_utc_adjtime" }, /* 220, not implemented */ +@@ -340,10 +340,10 @@ + { 4, 0, sys_reboot, "reboot" }, /* 311 */ + { 5, TP, sys_clone, "clone" }, /* 312 */ + { 1, 0, sys_uselib, "uselib" }, /* 313 */ +- { 2, 0, sys_mlock, "mlock" }, /* 314 */ +- { 2, 0, sys_munlock, "munlock" }, /* 315 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 316 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 317 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 314 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 315 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 316 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 317 */ + { 1, 0, sys_sysinfo, "sysinfo" }, /* 318 */ + { 1, 0, sys_sysctl, "sysctl" }, /* 319 */ + { 0, 0, sys_idle, "idle" }, /* 320 */ +@@ -367,7 +367,7 @@ + { 5, 0, sys_afs_syscall, "afs_syscall" }, /* 338 */ + { 1, 0, sys_uname, "uname" }, /* 339 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 340 */ +- { 5, 0, sys_mremap, "mremap" }, /* 341 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 341 */ + { 5, 0, sys_nfsservctl, "nfsservctl" }, /* 342 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 343 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 344 */ +@@ -401,7 +401,7 @@ + { 3, 0, sys_getresgid, "getresgid" }, /* 372 */ + { 4, 0, printargs, "dipc" }, /* 373, not implemented */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 374 */ +- { 3, 0, sys_mincore, "mincore" }, /* 375 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 375 */ + { 3, 0, printargs, "pciconfig_iobase" }, /* 376 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 377 */ + { 0, 0, sys_gettid, "gettid" }, /* 378 */ +@@ -436,7 +436,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 407 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 408 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 409 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 410 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 410 */ + { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 411 */ + { 0, 0, sys_restart_syscall, "restart_syscall" }, /* 412 */ + { 4, TD, printargs, "fadvise" }, /* 413 */ +@@ -455,9 +455,9 @@ + { 2, TF, sys_lstat64, "lstat64" }, /* 426 */ + { 2, TD, sys_fstat64, "fstat64" }, /* 427 */ + { 5, 0, sys_vserver, "vserver" }, /* 428 ??? */ +- { 5, 0, printargs, "mbind" }, /* 429 ??? */ +- { 5, 0, printargs, "get_mempolicy" }, /* 430 ??? */ +- { 5, 0, printargs, "set_mempolicy" }, /* 431 ??? */ ++ { 5, TM, printargs, "mbind" }, /* 429 ??? */ ++ { 5, TM, printargs, "get_mempolicy" }, /* 430 ??? */ ++ { 5, TM, printargs, "set_mempolicy" }, /* 431 ??? */ + { 4, 0, sys_mq_open, "mq_open" }, /* 432 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 433 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 434 */ +@@ -475,7 +475,7 @@ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 446 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 447 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 448 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 449 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 449 */ + { 4, TD|TF, sys_openat, "openat" }, /* 450 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 451 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 452 */ +@@ -498,7 +498,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 469 */ + { 4, TD, sys_tee, "tee" }, /* 470 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 471 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 472 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 472 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 473 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 474 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 475 */ +diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h +index 550335e..9b8da02 100644 +--- a/linux/arm/syscallent.h ++++ b/linux/arm/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, 0, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, 0, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, 0, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, 0, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, 0, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, 0, sys_getdents, "getdents" }, /* 141 */ + { 5, 0, sys_select, "select" }, /* 142 */ + { 2, 0, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, 0, sys_readv, "readv" }, /* 145 */ + { 3, 0, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, 0, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_vm86, "vm86" }, /* 166 */ +@@ -219,7 +219,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 4, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 4, TF, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -247,8 +247,8 @@ + { 1, NF, sys_setfsgid, "setfsgid32" }, /* 216 */ + { 3, 0, sys_getdents64, "getdents64" }, /* 217 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 218 */ +- { 3, 0, sys_mincore, "mincore" }, /* 219 */ +- { 3, 0, sys_madvise, "madvise" }, /* 220 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 219 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 220 */ + { 3, 0, sys_fcntl, "fcntl64" }, /* 221 */ + { 5, 0, NULL, NULL }, /* 222 */ + { 5, 0, NULL, NULL }, /* 223 */ +@@ -281,7 +281,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 250 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 251 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 252 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 253 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 253 */ + { 5, 0, NULL, NULL }, /* 254 */ + { 5, 0, NULL, NULL }, /* 255 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 256 */ +@@ -347,9 +347,9 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 316 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 317 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 318 */ +- { 6, 0, sys_mbind, "mbind" }, /* 319 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 320 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 321 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 319 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 320 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 321 */ + { 4, TD|TF, sys_openat, "openat" }, /* 322 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 323 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 324 */ +@@ -372,7 +372,7 @@ + { 5, 0, NULL, NULL }, /* 341 */ + { 4, TD, sys_tee, "tee" }, /* 342 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 343 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 344 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 344 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 345 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 346 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 347 */ +diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h +index 102b17d..6076fca 100644 +--- a/linux/avr32/syscallent.h ++++ b/linux/avr32/syscallent.h +@@ -70,7 +70,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 5, TP, sys_clone, "clone" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 2, TF, sys_getcwd, "getcwd" }, /* 48 */ +@@ -82,7 +82,7 @@ + { 3, TD, sys_ioctl, "ioctl" }, /* 54 */ + { 3, TD, sys_fcntl, "fcntl" }, /* 55 */ + { 2, 0, sys_setpgid, "setpgid" }, /* 56 */ +- { 5, 0, sys_mremap, "mremap" }, /* 57 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 57 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 58 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 59 */ + { 2, 0, sys_setreuid, "setreuid" }, /* 60 */ +@@ -115,8 +115,8 @@ + { 5, TD, sys_pwrite, "pwrite" }, /* 87 */ + { 2, TF, sys_swapon, "swapon" }, /* 88 */ + { 4, 0, sys_reboot, "reboot" }, /* 89 */ +- { 6, TD, sys_mmap, "mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -138,7 +138,7 @@ + { 2, 0, sys_setdomainname, "setdomainname" }, /* 110 */ + { 1, 0, sys_uname, "uname" }, /* 111 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 112 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 113 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 113 */ + { 0, TP, sys_vfork, "vfork" }, /* 114 */ + { 3, 0, sys_init_module, "init_module" }, /* 115 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 116 */ +@@ -150,16 +150,16 @@ + { 5, 0, sys_afs_syscall, "afs_syscall" }, /* 122 */ + { 3, TD, sys_getdents, "getdents" }, /* 123 */ + { 2, TD, sys_flock, "flock" }, /* 124 */ +- { 3, 0, sys_msync, "msync" }, /* 125 */ ++ { 3, TM, sys_msync, "msync" }, /* 125 */ + { 3, TD, sys_readv, "readv" }, /* 126 */ + { 3, TD, sys_writev, "writev" }, /* 127 */ + { 1, 0, sys_getsid, "getsid" }, /* 128 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 129 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 130 */ +- { 2, 0, sys_mlock, "mlock" }, /* 131 */ +- { 2, 0, sys_munlock, "munlock" }, /* 132 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 133 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 134 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 131 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 132 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 133 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 134 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 135 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 136 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 137 */ +@@ -197,8 +197,8 @@ + { 2, TF, sys_lstat64, "lstat64" }, /* 169 */ + { 2, TD, sys_fstat64, "fstat64" }, /* 170 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 171 */ +- { 3, 0, sys_mincore, "mincore" }, /* 172 */ +- { 3, 0, sys_madvise, "madvise" }, /* 173 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 172 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 173 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 174 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 175 */ + { 0, 0, sys_gettid, "gettid" }, /* 176 */ +@@ -233,7 +233,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 205 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 206 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 207 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 208 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 208 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 209 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 210 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 211 */ +diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h +index 1ecab75..7a9e618 100644 +--- a/linux/bfin/syscallent.h ++++ b/linux/bfin/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "chown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, TD, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam" }, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 160 */ + { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_vm86, "vm86" }, /* 166 */ +@@ -218,7 +218,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 3, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -244,8 +244,8 @@ + { 1, NF, sys_setfsuid, "setfsuid32" }, /* 215 */ + { 1, NF, sys_setfsgid, "setfsgid32" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 221 */ + { 4, 0, NULL, NULL }, /* 222 */ +@@ -284,7 +284,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 255 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 256 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 257 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 258 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 258 */ + { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 259 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 260 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 261 */ +@@ -301,9 +301,9 @@ + { 2, TF, sys_utimes, "utimes" }, /* 272 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 273 */ + { 5, 0, sys_vserver, "vserver" }, /* 274 */ +- { 6, 0, sys_mbind, "mbind" }, /* 275 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 276 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 277 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 275 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 276 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 277 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 278 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 279 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 280 */ +@@ -320,7 +320,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 291 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 292 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 293 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 294 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 294 */ + { 4, TD|TF, sys_openat, "openat" }, /* 295 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 296 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 297 */ +diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h +index c16eecb..f21d0c3 100644 +--- a/linux/hppa/syscallent.h ++++ b/linux/hppa/syscallent.h +@@ -47,7 +47,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 3, TN, sys_getsockname, "getsockname" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 2, 0, sys_signal, "signal" }, /* 48 */ +@@ -74,7 +74,7 @@ + { 1, TS, sys_sigsetmask, "ssetmask" }, /* 69 */ + { 2, 0, sys_setreuid, "setreuid" }, /* 70 */ + { 2, 0, sys_setregid, "setregid" }, /* 71 */ +- { 3, 0, sys_mincore, "mincore" }, /* 72 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 72 */ + { 1, TS, sys_sigpending, "sigpending" }, /* 73 */ + { 2, 0, sys_sethostname, "sethostname" }, /* 74 */ + { 2, 0, sys_setrlimit, "setrlimit" }, /* 75 */ +@@ -91,9 +91,9 @@ + { 1, 0, sys_uselib, "uselib" }, /* 86 */ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 89 */ +- { 6, TD, sys_mmap, "mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 89 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -121,13 +121,13 @@ + { 1, 0, sys_sysinfo, "sysinfo" }, /* 116 */ + { 2, TN, sys_shutdown, "shutdown" }, /* 117 */ + { 1, TD, sys_fsync, "fsync" }, /* 118 */ +- { 3, 0, sys_madvise, "madvise" }, /* 119 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 119 */ + { 5, TP, sys_clone, "clone" }, /* 120 */ + { 2, 0, sys_setdomainname, "setdomainname" }, /* 121 */ + { 4, TD|TN, sys_sendfile, "sendfile" }, /* 122 */ + { 6, TN, sys_recvfrom, "recvfrom" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 4, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -146,16 +146,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "_newselect" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 1, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 1, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 2, 0, sys_sched_setparam, "sched_setparam" }, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 156 */ +@@ -165,7 +165,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_setresuid, "getresuid" }, /* 165 */ + { 2, TS, sys_sigaltstack, "sigaltstack" }, /* 166 */ +@@ -229,7 +229,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 224 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 225 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 226 */ +- { 5, 0, printargs, "remap_file_pages" }, /* 227 */ ++ { 5, TM, printargs, "remap_file_pages" }, /* 227 */ + { 5, TI, sys_semtimedop, "semtimedop" }, /* 228 */ + { 5, 0, printargs, "mq_open" }, /* 229 */ + { 5, 0, printargs, "mq_unlink" }, /* 230 */ +@@ -262,9 +262,9 @@ + { 2, 0, sys_clock_getres, "clock_getres" }, /* 257 */ + { 5, 0, printargs, "clock_nanosleep" }, /* 258 */ + { 3, TS, sys_tgkill, "tgkill" }, /* 259 */ +- { 5, 0, printargs, "mbind" }, /* 260 */ +- { 5, 0, printargs, "get_mempolicy" }, /* 261 */ +- { 5, 0, printargs, "set_mempolicy" }, /* 262 */ ++ { 5, TM, printargs, "mbind" }, /* 260 */ ++ { 5, TM, printargs, "get_mempolicy" }, /* 261 */ ++ { 5, TM, printargs, "set_mempolicy" }, /* 262 */ + { 5, 0, sys_vserver, "vserver" }, /* 263 */ + { 5, 0, sys_add_key, "add_key" }, /* 264 */ + { 4, 0, sys_request_key, "request_key" }, /* 265 */ +@@ -274,7 +274,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 269 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 270 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 271 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 272 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 272 */ + { 6, TD, sys_pselect6, "pselect6" }, /* 273 */ + { 5, TD, sys_ppoll, "ppoll" }, /* 274 */ + { 4, TD|TF, sys_openat, "openat" }, /* 275 */ +@@ -297,7 +297,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 292 */ + { 4, TD, sys_tee, "tee" }, /* 293 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 294 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 295 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 295 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 296 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 297 */ + { 3, TF, sys_statfs64, "statfs64" }, /* 298 */ +diff --git a/linux/i386/syscallent.h b/linux/i386/syscallent.h +index 4092f2e..dd76244 100644 +--- a/linux/i386/syscallent.h ++++ b/linux/i386/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, TD, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv", }, /* 145 */ + { 3, TD, sys_writev, "writev", }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_vm86, "vm86" }, /* 166 */ +@@ -219,7 +219,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 3, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -246,8 +246,8 @@ + { 1, NF, sys_setfsuid, "setfsuid32" }, /* 215 */ + { 1, NF, sys_setfsgid, "setfsgid32" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 221 */ + { 6, 0, NULL, NULL }, /* 222 */ +@@ -285,7 +285,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 254 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 255 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 256 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 258 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 259 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 260 */ +@@ -302,9 +302,9 @@ + { 2, TF, sys_utimes, "utimes" }, /* 271 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 272 */ + { 5, 0, sys_vserver, "vserver" }, /* 273 */ +- { 6, 0, sys_mbind, "mbind" }, /* 274 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 274 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 277 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 278 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 279 */ +@@ -322,7 +322,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 291 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 292 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 293 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 294 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 294 */ + { 4, TD|TF, sys_openat, "openat" }, /* 295 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 296 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 297 */ +@@ -345,7 +345,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 314 */ + { 4, TD, sys_tee, "tee" }, /* 315 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 316 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 317 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 317 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 318 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 319 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 320 */ +diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h +index 0dd18f0..bbdfc36 100644 +--- a/linux/ia64/syscallent.h ++++ b/linux/ia64/syscallent.h +@@ -848,7 +848,7 @@ + { 1, TD, sys_dup, "dup" }, /* 1057 */ + { 1, TD, sys_pipe, "pipe" }, /* 1058 */ + { 1, 0, sys_times, "times" }, /* 1059 */ +- { 1, 0, sys_brk, "brk" }, /* 1060 */ ++ { 1, TM, sys_brk, "brk" }, /* 1060 */ + { 1, 0, sys_setgid, "setgid" }, /* 1061 */ + { 0, NF, sys_getgid, "getgid" }, /* 1062 */ + { 0, NF, sys_getegid, "getegid" }, /* 1063 */ +@@ -939,15 +939,15 @@ + { 4, TD, sys_pread, "pread" }, /* 1148 */ + { 4, TD, sys_pwrite, "pwrite" }, /* 1149 */ + { 1, 0, printargs, "_sysctl" }, /* 1150 */ +- { 6, TD, sys_mmap, "mmap" }, /* 1151 */ +- { 2, 0, sys_munmap, "munmap" }, /* 1152 */ +- { 2, 0, sys_mlock, "mlock" }, /* 1153 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 1154 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 1155 */ +- { 5, 0, sys_mremap, "mremap" }, /* 1156 */ +- { 3, 0, sys_msync, "msync" }, /* 1157 */ +- { 2, 0, sys_munlock, "munlock" }, /* 1158 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 1159 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 1151 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 1152 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 1153 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 1154 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 1155 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 1156 */ ++ { 3, TM, sys_msync, "msync" }, /* 1157 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 1158 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 1159 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 1160 */ + { 2, 0, sys_sched_setparam, "sched_setparam"}, /* 1161 */ + { 2, 0, sys_sched_getscheduler, "sched_getscheduler"}, /* 1162 */ +@@ -960,7 +960,7 @@ + { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 1169 */ + { 5, 0, sys_prctl, "prctl" }, /* 1170 */ + { 1, 0, sys_getpagesize, "getpagesize" }, /* 1171 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 1172 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 1172 */ + { 5, 0, printargs, "pciconfig_read"}, /* 1173 */ + { 5, 0, printargs, "pciconfig_write"}, /* 1174 */ + { MA, 0, printargs, "perfmonctl" }, /* 1175 */ +@@ -996,8 +996,8 @@ + { 3, TN, sys_sendmsg, "sendmsg" }, /* 1205 */ + { 3, TN, sys_recvmsg, "recvmsg" }, /* 1206 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 1207 */ +- { 3, 0, sys_mincore, "mincore" }, /* 1208 */ +- { 3, 0, sys_madvise, "madvise" }, /* 1209 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 1208 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 1209 */ + { 2, TF, sys_stat, "stat" }, /* 1210 */ + { 2, 0, sys_lstat, "lstat" }, /* 1211 */ + { 2, TD, sys_fstat, "fstat" }, /* 1212 */ +@@ -1047,9 +1047,9 @@ + { 4, 0, sys_clock_nanosleep, "clock_nanosleep"}, /* 1256 */ + { MA, 0, printargs, "fstatfs64" }, /* 1257 */ + { MA, 0, printargs, "statfs64" }, /* 1258 */ +- { 6, 0, sys_mbind, "mbind" }, /* 1259 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 1260 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 1261 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 1259 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 1260 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 1261 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 1262 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 1263 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 1264 */ +@@ -1064,11 +1064,11 @@ + { 5, 0, sys_keyctl, "keyctl" }, /* 1273 */ + { 3, 0, sys_ioprio_set, "ioprio_set" }, /* 1274 */ + { 2, 0, sys_ioprio_get, "ioprio_get" }, /* 1275 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 1276 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 1276 */ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 1277 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 1278 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 1279 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 1280 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 1280 */ + { 4, TD|TF, sys_openat, "openat" }, /* 1281 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 1282 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 1283 */ +diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h +index 5b8d8d1..f95cf8d 100644 +--- a/linux/m68k/syscallent.h ++++ b/linux/m68k/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "chown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, 0, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, 0, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, 0, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, 0, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, 0, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 4, 0, sys_cacheflush, "cacheflush" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, 0, sys_getdents, "getdents" }, /* 141 */ + { 5, 0, sys_select, "select" }, /* 142 */ + { 2, 0, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, 0, sys_readv, "readv" }, /* 145 */ + { 3, 0, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, 0, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, printargs, "getpagesize" }, /* 166 */ +@@ -218,7 +218,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 3, TF, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -263,8 +263,8 @@ + { 2, TD, sys_fremovexattr, "fremovexattr" }, /* 234 */ + { 6, 0, sys_futex, "futex" }, /* 235 */ + { 4, TD|TN, sys_sendfile64, "sendfile64" }, /* 236 */ +- { 3, 0, sys_mincore, "mincore" }, /* 237 */ +- { 3, 0, sys_madvise, "madvise" }, /* 238 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 237 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 238 */ + { 3, 0, sys_fcntl, "fcntl64" }, /* 239 */ + { 4, 0, sys_readahead, "readahead" }, /* 240 */ + { 2, 0, sys_io_setup, "io_setup" }, /* 241 */ +@@ -278,7 +278,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 249 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 250 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 251 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 252 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 252 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 253 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 254 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 255 */ +@@ -294,9 +294,9 @@ + { 3, TS, sys_tgkill, "tgkill" }, /* 265 */ + { 2, TF, sys_utimes, "utimes" }, /* 266 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 267 */ +- { 6, 0, sys_mbind, "mbind" }, /* 268 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 268 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 271 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 272 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 273 */ +@@ -313,7 +313,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 284 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 285 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 286 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 287 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 287 */ + { 4, TD|TF, sys_openat, "openat" }, /* 288 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 289 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 290 */ +@@ -336,7 +336,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 307 */ + { 4, TD, sys_tee, "tee" }, /* 308 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 309 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 310 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 310 */ + { 3, 0, sys_sched_setaffinity, "sched_setaffinity" },/* 311 */ + { 3, 0, sys_sched_getaffinity, "sched_getaffinity" },/* 312 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 313 */ +diff --git a/linux/microblaze/syscallent.h b/linux/microblaze/syscallent.h +index f2da85a..51c5e6c 100644 +--- a/linux/microblaze/syscallent.h ++++ b/linux/microblaze/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, 0, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, 0, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, 0, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, 0, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, 0, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, 0, sys_getdents, "getdents" }, /* 141 */ + { 5, 0, sys_select, "select" }, /* 142 */ + { 2, 0, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, 0, sys_readv, "readv" }, /* 145 */ + { 3, 0, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, 0, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_vm86, "vm86" }, /* 166 */ +@@ -218,7 +218,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 3, TF, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -244,8 +244,8 @@ + { 1, NF, sys_setfsuid, "setfsuid32" }, /* 215 */ + { 1, NF, sys_setfsgid, "setfsgid32" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { 3, 0, sys_fcntl, "fcntl64" }, /* 221 */ + { 4, 0, NULL, NULL }, /* 222 */ +@@ -283,7 +283,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 254 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 255 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 256 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 258 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 259 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 260 */ +@@ -300,9 +300,9 @@ + { 2, TF, sys_utimes, "utimes" }, /* 271 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 272 */ + { 5, 0, sys_vserver, "vserver" }, /* 273 */ +- { 4, 0, sys_mbind, "mbind" }, /* 274 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ ++ { 4, TM, sys_mbind, "mbind" }, /* 274 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 277 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 278 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 279 */ +@@ -320,7 +320,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 291 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 292 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 293 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 294 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 294 */ + { 4, TD|TF, sys_openat, "openat" }, /* 295 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 296 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 297 */ +@@ -343,7 +343,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range"}, /* 314 */ + { 4, TD, sys_tee, "tee" }, /* 315 */ + { 5, TD, sys_vmsplice, "vmsplice" }, /* 316 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 317 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 317 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 318 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 319 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 320 */ +diff --git a/linux/mips/syscallent.h b/linux/mips/syscallent.h +index ebb93f9..4c72763 100644 +--- a/linux/mips/syscallent.h ++++ b/linux/mips/syscallent.h +@@ -17,7 +17,7 @@ + { 0, 0, printargs, "svr4_mknod" }, /* 014 */ + { 0, 0, printargs, "svr4_chmod" }, /* 015 */ + { 0, 0, printargs, "svr4_chown" }, /* 016 */ +- { 0, 0, printargs, "svr4_sbreak" }, /* 017 */ ++ { 0, TM, printargs, "svr4_sbreak" }, /* 017 */ + { 0, 0, printargs, "svr4_stat" }, /* 018 */ + { 0, 0, printargs, "svr4_lseek" }, /* 019 */ + { 0, 0, printargs, "svr4_getpid" }, /* 020 */ +@@ -114,10 +114,10 @@ + { 0, 0, printargs, "svr4_async" }, /* 0111 */ + { 0, 0, printargs, "svr4_priocntlset" }, /* 0112 */ + { 0, 0, printargs, "svr4_pathconf" }, /* 0113 */ +- { 0, 0, printargs, "svr4_mincore" }, /* 0114 */ +- { 0, 0, printargs, "svr4_mmap" }, /* 0115 */ +- { 0, 0, printargs, "svr4_mprotect" }, /* 0116 */ +- { 0, 0, printargs, "svr4_munmap" }, /* 0117 */ ++ { 0, TM, printargs, "svr4_mincore" }, /* 0114 */ ++ { 0, TM, printargs, "svr4_mmap" }, /* 0115 */ ++ { 0, TM, printargs, "svr4_mprotect" }, /* 0116 */ ++ { 0, TM, printargs, "svr4_munmap" }, /* 0117 */ + { 0, 0, printargs, "svr4_fpathconf" }, /* 0118 */ + { 0, 0, printargs, "svr4_vfork" }, /* 0119 */ + { 0, 0, printargs, "svr4_fchdir" }, /* 0120 */ +@@ -1017,7 +1017,7 @@ + { 0, 0, printargs, "sysv_mknod" }, /* 1014 */ + { 0, 0, printargs, "sysv_chmod" }, /* 1015 */ + { 0, 0, printargs, "sysv_chown" }, /* 1016 */ +- { 0, 0, printargs, "sysv_brk" }, /* 1017 */ ++ { 0, TM, printargs, "sysv_brk" }, /* 1017 */ + { 0, 0, printargs, "sysv_stat" }, /* 1018 */ + { 0, 0, printargs, "sysv_lseek" }, /* 1019 */ + { 0, 0, printargs, "sysv_getpid" }, /* 1020 */ +@@ -1134,11 +1134,11 @@ + { 0, 0, printargs, "sysv_procblk" }, /* 1131 */ + { 0, 0, printargs, "sysv_sprocsp" }, /* 1132 */ + { 0, 0, printargs, "sysv_sgigsc" }, /* 1133 */ +- { 0, 0, printargs, "sysv_mmap" }, /* 1134 */ +- { 0, 0, printargs, "sysv_munmap" }, /* 1135 */ +- { 0, 0, printargs, "sysv_mprotect" }, /* 1136 */ +- { 0, 0, printargs, "sysv_msync" }, /* 1137 */ +- { 0, 0, printargs, "sysv_madvise" }, /* 1138 */ ++ { 0, TM, printargs, "sysv_mmap" }, /* 1134 */ ++ { 0, TM, printargs, "sysv_munmap" }, /* 1135 */ ++ { 0, TM, printargs, "sysv_mprotect" }, /* 1136 */ ++ { 0, TM, printargs, "sysv_msync" }, /* 1137 */ ++ { 0, TM, printargs, "sysv_madvise" }, /* 1138 */ + { 0, 0, printargs, "sysv_pagelock" }, /* 1139 */ + { 0, 0, printargs, "sysv_getpagesize" }, /* 1140 */ + { 0, 0, printargs, "sysv_quotactl" }, /* 1141 */ +@@ -1185,7 +1185,7 @@ + { 0, 0, printargs, "sysv_writev" }, /* 1182 */ + { 0, 0, printargs, "sysv_truncate64" }, /* 1183 */ + { 0, 0, printargs, "sysv_ftruncate64" }, /* 1184 */ +- { 0, 0, printargs, "sysv_mmap64" }, /* 1185 */ ++ { 0, TM, printargs, "sysv_mmap64" }, /* 1185 */ + { 0, 0, printargs, "sysv_dmi" }, /* 1186 */ + { 0, 0, printargs, "sysv_pread" }, /* 1187 */ + { 0, 0, printargs, "sysv_pwrite" }, /* 1188 */ +@@ -2017,7 +2017,7 @@ + { 0, 0, printargs, "bsd43_mknod" }, /* 2014 */ + { 0, 0, printargs, "bsd43_chmod" }, /* 2015 */ + { 0, 0, printargs, "bsd43_chown" }, /* 2016 */ +- { 0, 0, printargs, "bsd43_sbreak" }, /* 2017 */ ++ { 0, TM, printargs, "bsd43_sbreak" }, /* 2017 */ + { 0, 0, printargs, "bsd43_oldstat" }, /* 2018 */ + { 0, 0, printargs, "bsd43_lseek" }, /* 2019 */ + { 0, 0, printargs, "bsd43_getpid" }, /* 2020 */ +@@ -2065,20 +2065,20 @@ + { 0, 0, printargs, "bsd43_fstat" }, /* 2062 */ + { 0, 0, NULL, NULL }, /* 2063 */ + { 0, 0, printargs, "bsd43_getpagesize" }, /* 2064 */ +- { 0, 0, printargs, "bsd43_mremap" }, /* 2065 */ ++ { 0, TM, printargs, "bsd43_mremap" }, /* 2065 */ + { 0, 0, printargs, "bsd43_vfork" }, /* 2066 */ + { 0, 0, printargs, "bsd43_vread" }, /* 2067 */ + { 0, 0, printargs, "bsd43_vwrite" }, /* 2068 */ +- { 0, 0, printargs, "bsd43_sbrk" }, /* 2069 */ ++ { 0, TM, printargs, "bsd43_sbrk" }, /* 2069 */ + { 0, 0, printargs, "bsd43_sstk" }, /* 2070 */ +- { 0, 0, printargs, "bsd43_mmap" }, /* 2071 */ ++ { 0, TM, printargs, "bsd43_mmap" }, /* 2071 */ + { 0, 0, printargs, "bsd43_vadvise" }, /* 2072 */ +- { 0, 0, printargs, "bsd43_munmap" }, /* 2073 */ +- { 0, 0, printargs, "bsd43_mprotect" }, /* 2074 */ +- { 0, 0, printargs, "bsd43_madvise" }, /* 2075 */ ++ { 0, TM, printargs, "bsd43_munmap" }, /* 2073 */ ++ { 0, TM, printargs, "bsd43_mprotect" }, /* 2074 */ ++ { 0, TM, printargs, "bsd43_madvise" }, /* 2075 */ + { 0, 0, printargs, "bsd43_vhangup" }, /* 2076 */ + { 0, 0, printargs, "bsd43_vlimit" }, /* 2077 */ +- { 0, 0, printargs, "bsd43_mincore" }, /* 2078 */ ++ { 0, TM, printargs, "bsd43_mincore" }, /* 2078 */ + { 0, 0, printargs, "bsd43_getgroups" }, /* 2079 */ + { 0, 0, printargs, "bsd43_setgroups" }, /* 2080 */ + { 0, 0, printargs, "bsd43_getpgrp" }, /* 2081 */ +@@ -3017,7 +3017,7 @@ + { 0, 0, printargs, "posix_mknod" }, /* 3014 */ + { 0, 0, printargs, "posix_chmod" }, /* 3015 */ + { 0, 0, printargs, "posix_chown" }, /* 3016 */ +- { 0, 0, printargs, "posix_sbreak" }, /* 3017 */ ++ { 0, TM, printargs, "posix_sbreak" }, /* 3017 */ + { 0, 0, printargs, "posix_stat" }, /* 3018 */ + { 0, 0, printargs, "posix_lseek" }, /* 3019 */ + { 0, 0, printargs, "posix_getpid" }, /* 3020 */ +@@ -3134,11 +3134,11 @@ + { 0, 0, printargs, "posix_SGI_blkproc" }, /* 3131 */ + { 0, 0, NULL, NULL , }, /* 3132 */ + { 0, 0, printargs, "posix_SGI_sgigsc" }, /* 3133 */ +- { 0, 0, printargs, "posix_SGI_mmap" }, /* 3134 */ +- { 0, 0, printargs, "posix_SGI_munmap" }, /* 3135 */ +- { 0, 0, printargs, "posix_SGI_mprotect" }, /* 3136 */ +- { 0, 0, printargs, "posix_SGI_msync" }, /* 3137 */ +- { 0, 0, printargs, "posix_SGI_madvise" }, /* 3138 */ ++ { 0, TM, printargs, "posix_SGI_mmap" }, /* 3134 */ ++ { 0, TM, printargs, "posix_SGI_munmap" }, /* 3135 */ ++ { 0, TM, printargs, "posix_SGI_mprotect" }, /* 3136 */ ++ { 0, TM, printargs, "posix_SGI_msync" }, /* 3137 */ ++ { 0, TM, printargs, "posix_SGI_madvise" }, /* 3138 */ + { 0, 0, printargs, "posix_SGI_mpin" }, /* 3139 */ + { 0, 0, printargs, "posix_SGI_getpagesize" }, /* 3140 */ + { 0, 0, printargs, "posix_SGI_libattach" }, /* 3141 */ +@@ -3155,9 +3155,9 @@ + { 0, 0, printargs, "posix_fchown" }, /* 3152 */ + { 0, 0, printargs, "posix_fchmod" }, /* 3153 */ + { 0, 0, printargs, "posix_wait3" }, /* 3154 */ +- { 0, 0, printargs, "posix_mmap" }, /* 3155 */ +- { 0, 0, printargs, "posix_munmap" }, /* 3156 */ +- { 0, 0, printargs, "posix_madvise" }, /* 3157 */ ++ { 0, TM, printargs, "posix_mmap" }, /* 3155 */ ++ { 0, TM, printargs, "posix_munmap" }, /* 3156 */ ++ { 0, TM, printargs, "posix_madvise" }, /* 3157 */ + { 0, 0, printargs, "posix_BSD_getpagesize" }, /* 3158 */ + { 0, 0, printargs, "posix_setreuid" }, /* 3159 */ + { 0, 0, printargs, "posix_setregid" }, /* 3160 */ +@@ -4019,7 +4019,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 4014 */ + { 2, TF, sys_chmod, "chmod" }, /* 4015 */ + { 3, TF, sys_chown, "lchown" }, /* 4016 */ +- { 0, 0, sys_break, "break" }, /* 4017 */ ++ { 0, TM, sys_break, "break" }, /* 4017 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 4018 */ + { 3, TD, sys_lseek, "lseek" }, /* 4019 */ + { 0, 0, sys_getpid, "getpid" }, /* 4020 */ +@@ -4047,7 +4047,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 4042 */ + { 1, 0, sys_times, "times" }, /* 4043 */ + { 0, 0, sys_prof, "prof" }, /* 4044 */ +- { 1, 0, sys_brk, "brk" }, /* 4045 */ ++ { 1, TM, sys_brk, "brk" }, /* 4045 */ + { 1, 0, sys_setgid, "setgid" }, /* 4046 */ + { 0, NF, sys_getgid, "getgid" }, /* 4047 */ + { 1, TS, sys_signal, "signal" }, /* 4048 */ +@@ -4092,8 +4092,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 4087 */ + { 4, 0, sys_reboot, "reboot" }, /* 4088 */ + { 3, TD, sys_readdir, "readdir" }, /* 4089 */ +- { 6, TD, sys_mmap, "old_mmap" }, /* 4090 */ +- { 2, 0, sys_munmap, "munmap" }, /* 4091 */ ++ { 6, TD|TM, sys_mmap, "old_mmap" }, /* 4090 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 4091 */ + { 2, TF, sys_truncate, "truncate" }, /* 4092 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 4093 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 4094 */ +@@ -4127,7 +4127,7 @@ + { 1, 0, sys_uname, "uname" }, /* 4122 */ + { 0, 0, sys_modify_ldt, "modify_ldt" }, /* 4123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 4124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 4125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 4125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 4126 */ + { 2, 0, sys_create_module, "create_module" }, /* 4127 */ + { 3, 0, sys_init_module, "init_module" }, /* 4128 */ +@@ -4146,7 +4146,7 @@ + { 3, TD, sys_getdents, "getdents" }, /* 4141 */ + { 5, TD, sys_select, "_newselect" }, /* 4142 */ + { 2, TD, sys_flock, "flock" }, /* 4143 */ +- { 3, 0, sys_msync, "msync" }, /* 4144 */ ++ { 3, TM, sys_msync, "msync" }, /* 4144 */ + { 3, TD, sys_readv, "readv" }, /* 4145 */ + { 3, TD, sys_writev, "writev" }, /* 4146 */ + { 3, 0, printargs, "cacheflush" }, /* 4147 */ +@@ -4156,10 +4156,10 @@ + { 1, 0, sys_getsid, "getsid" }, /* 4151 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 4152 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 4153 */ +- { 2, 0, sys_mlock, "mlock" }, /* 4154 */ +- { 2, 0, sys_munlock, "munlock" }, /* 4155 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 4156 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 4157 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 4154 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 4155 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 4156 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 4157 */ + { 2, 0, sys_sched_setparam, "sched_setparam"}, /* 4158 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 4159 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 4160 */ +@@ -4169,7 +4169,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 4164 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 4165 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 4166 */ +- { 5, 0, sys_mremap, "mremap" }, /* 4167 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 4167 */ + { 3, TN, sys_accept, "accept" }, /* 4168 */ + { 3, TN, sys_bind, "bind" }, /* 4169 */ + { 3, TN, sys_connect, "connect" }, /* 4170 */ +@@ -4212,15 +4212,15 @@ + { 4, TD|TN, sys_sendfile, "sendfile" }, /* 4207 */ + { 0, 0, NULL, NULL }, /* 4208 */ + { 0, 0, NULL, NULL }, /* 4209 */ +- { 6, TD, sys_mmap, "mmap" }, /* 4210 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 4210 */ + { 4, TF, sys_truncate64, "truncate64" }, /* 4211 */ + { 4, TD, sys_ftruncate64, "ftruncate64" }, /* 4212 */ + { 2, TF, sys_stat64, "stat64" }, /* 4213 */ + { 2, TF, sys_lstat64, "lstat64" }, /* 4214 */ + { 2, TD, sys_fstat64, "fstat64" }, /* 4215 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 4216 */ +- { 3, 0, sys_mincore, "mincore" }, /* 4217 */ +- { 3, 0, sys_madvise, "madvise" }, /* 4218 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 4217 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 4218 */ + { 3, TF, sys_getdents64, "getdents64" }, /* 4219 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 4220 */ + { 0, 0, NULL, NULL }, /* 4221 */ +@@ -4253,7 +4253,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 4248 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 4249 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 4250 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 4251 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 4251 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 4252 */ + { 0, 0, sys_restart_syscall, "restart_syscall"}, /* 4253 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 4254 */ +@@ -4270,7 +4270,7 @@ + { 4, 0, sys_clock_nanosleep, "clock_nanosleep"}, /* 4265 */ + { 3, TS, sys_tgkill, "tgkill" }, /* 4266 */ + { 2, TF, sys_utimes, "utimes" }, /* 4267 */ +- { 4, 0, sys_mbind, "mbind" }, /* 4268 */ ++ { 4, TM, sys_mbind, "mbind" }, /* 4268 */ + { 0, 0, NULL, NULL }, /* 4269 */ + { 0, 0, NULL, NULL }, /* 4270 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 4271 */ +@@ -4289,7 +4289,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 4284 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 4285 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 4286 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 4287 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 4287 */ + { 4, TD|TF, sys_openat, "openat" }, /* 4288 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 4289 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 4290 */ +@@ -4310,7 +4310,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 4305 */ + { 4, TD, sys_tee, "tee" }, /* 4306 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 4307 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 4308 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 4308 */ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 4309 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 4310 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 4311 */ +@@ -4367,7 +4367,7 @@ + { 0, 0, printargs, "o32_mknod" }, /* 4014 */ + { 0, 0, printargs, "o32_chmod" }, /* 4015 */ + { 0, 0, printargs, "o32_lchown" }, /* 4016 */ +- { 0, 0, printargs, "o32_break" }, /* 4017 */ ++ { 0, TM, printargs, "o32_break" }, /* 4017 */ + { 0, 0, printargs, "o32_oldstat" }, /* 4018 */ + { 0, 0, printargs, "o32_lseek" }, /* 4019 */ + { 0, 0, printargs, "o32_getpid" }, /* 4020 */ +@@ -4395,7 +4395,7 @@ + { 0, 0, printargs, "o32_pipe" }, /* 4042 */ + { 0, 0, printargs, "o32_times" }, /* 4043 */ + { 0, 0, printargs, "o32_prof" }, /* 4044 */ +- { 0, 0, printargs, "o32_brk" }, /* 4045 */ ++ { 0, TM, printargs, "o32_brk" }, /* 4045 */ + { 0, 0, printargs, "o32_setgid" }, /* 4046 */ + { 0, 0, printargs, "o32_getgid" }, /* 4047 */ + { 0, 0, printargs, "o32_signal" }, /* 4048 */ +@@ -4440,8 +4440,8 @@ + { 0, 0, printargs, "o32_swapon" }, /* 4087 */ + { 0, 0, printargs, "o32_reboot" }, /* 4088 */ + { 0, 0, printargs, "o32_readdir" }, /* 4089 */ +- { 0, 0, printargs, "o32_old_mmap" }, /* 4090 */ +- { 0, 0, printargs, "o32_munmap" }, /* 4091 */ ++ { 0, TM, printargs, "o32_old_mmap" }, /* 4090 */ ++ { 0, TM, printargs, "o32_munmap" }, /* 4091 */ + { 0, 0, printargs, "o32_truncate" }, /* 4092 */ + { 0, 0, printargs, "o32_ftruncate" }, /* 4093 */ + { 0, 0, printargs, "o32_fchmod" }, /* 4094 */ +@@ -4475,7 +4475,7 @@ + { 0, 0, printargs, "o32_uname" }, /* 4122 */ + { 0, 0, printargs, "o32_modify_ldt" }, /* 4123 */ + { 0, 0, printargs, "o32_adjtimex" }, /* 4124 */ +- { 0, 0, printargs, "o32_mprotect" }, /* 4125 */ ++ { 0, TM, printargs, "o32_mprotect" }, /* 4125 */ + { 0, 0, printargs, "o32_sigprocmask" }, /* 4126 */ + { 0, 0, printargs, "o32_create_module" }, /* 4127 */ + { 0, 0, printargs, "o32_init_module" }, /* 4128 */ +@@ -4494,7 +4494,7 @@ + { 0, 0, printargs, "o32_getdents" }, /* 4141 */ + { 0, 0, printargs, "o32__newselect" }, /* 4142 */ + { 0, 0, printargs, "o32_flock" }, /* 4143 */ +- { 0, 0, printargs, "o32_msync" }, /* 4144 */ ++ { 0, TM, printargs, "o32_msync" }, /* 4144 */ + { 0, 0, printargs, "o32_readv" }, /* 4145 */ + { 0, 0, printargs, "o32_writev" }, /* 4146 */ + { 0, 0, printargs, "o32_cacheflush" }, /* 4147 */ +@@ -4504,10 +4504,10 @@ + { 0, 0, printargs, "o32_getsid" }, /* 4151 */ + { 0, 0, printargs, "o32_fdatasync" }, /* 4152 */ + { 0, 0, printargs, "o32__sysctl" }, /* 4153 */ +- { 0, 0, printargs, "o32_mlock" }, /* 4154 */ +- { 0, 0, printargs, "o32_munlock" }, /* 4155 */ +- { 0, 0, printargs, "o32_mlockall" }, /* 4156 */ +- { 0, 0, printargs, "o32_munlockall" }, /* 4157 */ ++ { 0, TM, printargs, "o32_mlock" }, /* 4154 */ ++ { 0, TM, printargs, "o32_munlock" }, /* 4155 */ ++ { 0, TM, printargs, "o32_mlockall" }, /* 4156 */ ++ { 0, TM, printargs, "o32_munlockall" }, /* 4157 */ + { 0, 0, printargs, "o32_sched_setparam"}, /* 4158 */ + { 0, 0, printargs, "o32_sched_getparam"}, /* 4159 */ + { 0, 0, printargs, "o32_sched_setscheduler"}, /* 4160 */ +@@ -4517,7 +4517,7 @@ + { 0, 0, printargs, "o32_sched_get_priority_min"},/* 4164 */ + { 0, 0, printargs, "o32_sched_rr_get_interval"}, /* 4165 */ + { 0, 0, printargs, "o32_nanosleep" }, /* 4166 */ +- { 0, 0, printargs, "o32_mremap" }, /* 4167 */ ++ { 0, TM, printargs, "o32_mremap" }, /* 4167 */ + { 0, 0, printargs, "o32_accept" }, /* 4168 */ + { 0, 0, printargs, "o32_bind" }, /* 4169 */ + { 0, 0, printargs, "o32_connect" }, /* 4170 */ +@@ -4560,15 +4560,15 @@ + { 0, 0, printargs, "o32_sendfile" }, /* 4207 */ + { 0, 0, NULL, NULL }, /* 4208 */ + { 0, 0, NULL, NULL }, /* 4209 */ +- { 0, 0, printargs, "o32_mmap" }, /* 4210 */ ++ { 0, TM, printargs, "o32_mmap" }, /* 4210 */ + { 0, 0, printargs, "o32_truncate64" }, /* 4211 */ + { 0, 0, printargs, "o32_ftruncate64" }, /* 4212 */ + { 0, 0, printargs, "o32_stat64" }, /* 4213 */ + { 0, 0, printargs, "o32_lstat64" }, /* 4214 */ + { 0, 0, printargs, "o32_fstat64" }, /* 4215 */ + { 0, 0, printargs, "o32_pivot_root" }, /* 4216 */ +- { 0, 0, printargs, "o32_mincore" }, /* 4217 */ +- { 0, 0, printargs, "o32_madvise" }, /* 4218 */ ++ { 0, TM, printargs, "o32_mincore" }, /* 4217 */ ++ { 0, TM, printargs, "o32_madvise" }, /* 4218 */ + { 0, 0, printargs, "o32_getdents64" }, /* 4219 */ + { 0, 0, printargs, "o32_fcntl64" }, /* 4220 */ + { 0, 0, NULL, NULL }, /* 4221 */ +@@ -4601,7 +4601,7 @@ + { 1, TD, printargs, "o32_epoll_create" }, /* 4248 */ + { 4, TD, printargs, "o32_epoll_ctl" }, /* 4249 */ + { 4, TD, printargs, "o32_epoll_wait" }, /* 4250 */ +- { 5, 0, printargs, "o32_remap_file_pages"}, /* 4251 */ ++ { 5, TM, printargs, "o32_remap_file_pages"}, /* 4251 */ + { 1, 0, printargs, "o32_set_tid_address"}, /* 4252 */ + { 0, 0, printargs, "o32_restart_syscall"}, /* 4253 */ + { MA, 0, printargs, "o32_fadvise64_64" }, /* 4254 */ +@@ -4618,7 +4618,7 @@ + { 4, 0, printargs, "o32_clock_nanosleep"}, /* 4265 */ + { 3, TS, printargs, "o32_tgkill" }, /* 4266 */ + { 2, TF, printargs, "o32_utimes" }, /* 4267 */ +- { 4, 0, printargs, "o32_mbind" }, /* 4268 */ ++ { 4, TM, printargs, "o32_mbind" }, /* 4268 */ + { 0, 0, printargs, "o32_SYS_4269" }, /* 4269 */ + { 0, 0, printargs, "o32_SYS_4270" }, /* 4270 */ + { 4, 0, printargs, "o32_mq_open" }, /* 4271 */ +@@ -4637,7 +4637,7 @@ + { 0, TD, printargs, "o32_inotify_init" }, /* 4284 */ + { 3, TD, printargs, "o32_inotify_add_watch" }, /* 4285 */ + { 2, TD, printargs, "o32_inotify_rm_watch" }, /* 4286 */ +- { 4, 0, printargs, "o32_migrate_pages" }, /* 4287 */ ++ { 4, TM, printargs, "o32_migrate_pages" }, /* 4287 */ + { 4, TD|TF, printargs, "o32_openat" }, /* 4288 */ + { 3, TD|TF, printargs, "o32_mkdirat" }, /* 4289 */ + { 4, TD|TF, printargs, "o32_mknodat" }, /* 4290 */ +@@ -4658,7 +4658,7 @@ + { 4, TD, printargs, "o32_sync_file_range" }, /* 4305 */ + { 4, TD, printargs, "o32_tee" }, /* 4306 */ + { 4, TD, printargs, "o32_vmsplice" }, /* 4307 */ +- { 6, 0, printargs, "o32_move_pages" }, /* 4308 */ ++ { 6, TM, printargs, "o32_move_pages" }, /* 4308 */ + { 2, 0, printargs, "o32_set_robust_list" }, /* 4309 */ + { 3, 0, printargs, "o32_get_robust_list" }, /* 4310 */ + { 4, 0, printargs, "o32_kexec_load" }, /* 4311 */ +@@ -5362,10 +5362,10 @@ + { 2, TF, sys_lstat, "lstat" }, /* 5006 */ + { 3, 0, sys_poll, "poll" }, /* 5007 */ + { 3, 0, sys_lseek, "lseek" }, /* 5008 */ +- { 6, TD, sys_mmap, "mmap" }, /* 5009 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 5010 */ +- { 2, 0, sys_munmap, "munmap" }, /* 5011 */ +- { 1, 0, sys_brk, "brk" }, /* 5012 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 5009 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 5010 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 5011 */ ++ { 1, TM, sys_brk, "brk" }, /* 5012 */ + { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 5013 */ + { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 5014 */ + { 3, 0, sys_ioctl, "ioctl" }, /* 5015 */ +@@ -5377,10 +5377,10 @@ + { 1, 0, sys_pipe, "pipe" }, /* 5021 */ + { 5, 0, sys_select, "_newselect" }, /* 5022 */ + { 0, 0, sys_sched_yield, "sched_yield" }, /* 5023 */ +- { 5, 0, sys_mremap, "mremap" }, /* 5024 */ +- { 3, 0, sys_msync, "msync" }, /* 5025 */ +- { 3, 0, sys_mincore, "mincore" }, /* 5026 */ +- { 3, 0, sys_madvise, "madvise" }, /* 5027 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 5024 */ ++ { 3, TM, sys_msync, "msync" }, /* 5025 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 5026 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 5027 */ + { 3, TI, sys_shmget, "shmget" }, /* 5028 */ + { 3, TI, sys_shmat, "shmgat" }, /* 5029 */ + { 3, TI, sys_shmctl, "shmctl" }, /* 5030 */ +@@ -5499,10 +5499,10 @@ + { 1, 0, sys_sched_get_priority_max,"sched_get_priority_max"}, /* 5143 */ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 5144 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 5145 */ +- { 2, 0, sys_mlock, "mlock" }, /* 5146 */ +- { 2, 0, sys_munlock, "munlock" }, /* 5147 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 5148 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 5149 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 5146 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 5147 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 5148 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 5149 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 5150 */ + { 2, 0, sys_pivotroot, "pivot_root" }, /* 5151 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 5152 */ +@@ -5563,7 +5563,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 5207 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 5208 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 5209 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 5210 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 5210 */ + { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 5211 */ + { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 5212 */ + { 0, 0, sys_restart_syscall, "restart_syscall" }, /* 5213 */ +@@ -5580,7 +5580,7 @@ + { 4, 0, sys_clock_nanosleep, "clock_nanosleep"}, /* 5224 */ + { 3, TS, sys_tgkill, "tgkill" }, /* 5225 */ + { 2, TF, sys_utimes, "utimes" }, /* 5226 */ +- { 6, 0, sys_mbind, "mbind" }, /* 5227 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 5227 */ + { 0, 0, NULL, NULL }, /* 5228 */ + { 0, 0, NULL, NULL }, /* 5229 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 5230 */ +@@ -5599,7 +5599,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 5243 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 5244 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 5245 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 5246 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 5246 */ + { 4, TD|TF, sys_openat, "openat" }, /* 5247 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 5248 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 5249 */ +@@ -5620,7 +5620,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 5264 */ + { 4, TD, sys_tee, "tee" }, /* 5265 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 5266 */ +- { 6, 0, printargs, "move_pages" }, /* 5267 */ ++ { 6, TM, printargs, "move_pages" }, /* 5267 */ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 5268 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 5269 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 5270 */ +@@ -5669,10 +5669,10 @@ + { 0, 0, printargs, "n64_lstat" }, /* 5006 */ + { 0, 0, printargs, "n64_poll" }, /* 5007 */ + { 0, 0, printargs, "n64_lseek" }, /* 5008 */ +- { 0, 0, printargs, "n64_mmap" }, /* 5009 */ +- { 0, 0, printargs, "n64_mprotect" }, /* 5010 */ +- { 0, 0, printargs, "n64_munmap" }, /* 5011 */ +- { 0, 0, printargs, "n64_brk" }, /* 5012 */ ++ { 0, TM, printargs, "n64_mmap" }, /* 5009 */ ++ { 0, TM, printargs, "n64_mprotect" }, /* 5010 */ ++ { 0, TM, printargs, "n64_munmap" }, /* 5011 */ ++ { 0, TM, printargs, "n64_brk" }, /* 5012 */ + { 0, 0, printargs, "n64_rt_sigaction" }, /* 5013 */ + { 0, 0, printargs, "n64_rt_sigprocmask" }, /* 5014 */ + { 0, 0, printargs, "n64_ioctl" }, /* 5015 */ +@@ -5684,10 +5684,10 @@ + { 0, 0, printargs, "n64_pipe" }, /* 5021 */ + { 0, 0, printargs, "n64__newselect" }, /* 5022 */ + { 0, 0, printargs, "n64_sched_yield" }, /* 5023 */ +- { 0, 0, printargs, "n64_mremap" }, /* 5024 */ +- { 0, 0, printargs, "n64_msync" }, /* 5025 */ +- { 0, 0, printargs, "n64_mincore" }, /* 5026 */ +- { 0, 0, printargs, "n64_madvise" }, /* 5027 */ ++ { 0, TM, printargs, "n64_mremap" }, /* 5024 */ ++ { 0, TM, printargs, "n64_msync" }, /* 5025 */ ++ { 0, TM, printargs, "n64_mincore" }, /* 5026 */ ++ { 0, TM, printargs, "n64_madvise" }, /* 5027 */ + { 0, 0, printargs, "n64_shmget" }, /* 5028 */ + { 0, 0, printargs, "n64_shmgat" }, /* 5029 */ + { 0, 0, printargs, "n64_shmctl" }, /* 5030 */ +@@ -5806,10 +5806,10 @@ + { 0, 0, printargs, "n64_sched_get_priority_max"}, /* 5143 */ + { 0, 0, printargs, "n64_sched_get_priority_min"}, /* 5144 */ + { 0, 0, printargs, "n64_sched_rr_get_interval"}, /* 5145 */ +- { 0, 0, printargs, "n64_mlock" }, /* 5146 */ +- { 0, 0, printargs, "n64_munlock" }, /* 5147 */ +- { 0, 0, printargs, "n64_mlockall" }, /* 5148 */ +- { 0, 0, printargs, "n64_munlockall" }, /* 5149 */ ++ { 0, TM, printargs, "n64_mlock" }, /* 5146 */ ++ { 0, TM, printargs, "n64_munlock" }, /* 5147 */ ++ { 0, TM, printargs, "n64_mlockall" }, /* 5148 */ ++ { 0, TM, printargs, "n64_munlockall" }, /* 5149 */ + { 0, 0, printargs, "n64_vhangup" }, /* 5150 */ + { 0, 0, printargs, "n64_pivot_root" }, /* 5151 */ + { 0, 0, printargs, "n64__sysctl" }, /* 5152 */ +@@ -5870,7 +5870,7 @@ + { 0, 0, printargs, "n64_epoll_create" }, /* 5207 */ + { 0, 0, printargs, "n64_epoll_ctl" }, /* 5208 */ + { 0, 0, printargs, "n64_epoll_wait" }, /* 5209 */ +- { 0, 0, printargs, "n64_remap_file_pages" }, /* 5210 */ ++ { 0, TM, printargs, "n64_remap_file_pages" }, /* 5210 */ + { 0, 0, printargs, "n64_rt_sigreturn" }, /* 5211 */ + { 1, 0, printargs, "n64_set_tid_address" }, /* 5212 */ + { 0, 0, printargs, "n64_restart_syscall" }, /* 5213 */ +@@ -5887,7 +5887,7 @@ + { 0, 0, printargs, "n64_clock_nanosleep" }, /* 5224 */ + { 0, 0, printargs, "n64_tgkill" }, /* 5225 */ + { 0, 0, printargs, "n64_utimes" }, /* 5226 */ +- { 0, 0, printargs, "n64_mbind" }, /* 5227 */ ++ { 0, TM, printargs, "n64_mbind" }, /* 5227 */ + { 0, 0, printargs, "n64_SYS_5228" }, /* 5228 */ + { 0, 0, printargs, "n64_SYS_5228" }, /* 5229 */ + { 0, 0, printargs, "n64_mq_open" }, /* 5230 */ +@@ -5906,7 +5906,7 @@ + { 0, 0, printargs, "n64_inotify_init" }, /* 5243 */ + { 0, 0, printargs, "n64_inotify_add_watch" }, /* 5244 */ + { 0, 0, printargs, "n64_inotify_rm_watch" }, /* 5245 */ +- { 0, 0, printargs, "n64_migrate_pages" }, /* 5246 */ ++ { 0, TM, printargs, "n64_migrate_pages" }, /* 5246 */ + { 0, 0, printargs, "n64_openat" }, /* 5247 */ + { 0, 0, printargs, "n64_mkdirat" }, /* 5248 */ + { 0, 0, printargs, "n64_mknodat" }, /* 5249 */ +@@ -5927,7 +5927,7 @@ + { 0, 0, printargs, "n64_sync_file_range" }, /* 5264 */ + { 0, 0, printargs, "n64_tee" }, /* 5265 */ + { 0, 0, printargs, "n64_vmsplice" }, /* 5266 */ +- { 0, 0, printargs, "n64_move_pages" }, /* 5267 */ ++ { 0, TM, printargs, "n64_move_pages" }, /* 5267 */ + { 0, 0, printargs, "n64_set_robust_list" }, /* 5268 */ + { 0, 0, printargs, "n64_get_robust_list" }, /* 5269 */ + { 0, 0, printargs, "n64_kexec_load" }, /* 5270 */ +@@ -6673,10 +6673,10 @@ + { 2, TF, sys_lstat64, "lstat" }, /* 6006 */ + { 3, 0, sys_poll, "poll" }, /* 6007 */ + { 3, 0, sys_lseek, "lseek" }, /* 6008 */ +- { 6, TD, sys_mmap, "mmap" }, /* 6009 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 6010 */ +- { 2, 0, sys_munmap, "munmap" }, /* 6011 */ +- { 1, 0, sys_brk, "brk" }, /* 6012 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 6009 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 6010 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 6011 */ ++ { 1, TM, sys_brk, "brk" }, /* 6012 */ + { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 6013 */ + { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 6014 */ + { 3, 0, sys_ioctl, "ioctl" }, /* 6015 */ +@@ -6688,10 +6688,10 @@ + { 1, 0, sys_pipe, "pipe" }, /* 6021 */ + { 5, 0, sys_select, "_newselect" }, /* 6022 */ + { 0, 0, sys_sched_yield, "sched_yield" }, /* 6023 */ +- { 5, 0, sys_mremap, "mremap" }, /* 6024 */ +- { 3, 0, sys_msync, "msync" }, /* 6025 */ +- { 3, 0, sys_mincore, "mincore" }, /* 6026 */ +- { 3, 0, sys_madvise, "madvise" }, /* 6027 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 6024 */ ++ { 3, TM, sys_msync, "msync" }, /* 6025 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 6026 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 6027 */ + { 3, TI, sys_shmget, "shmget" }, /* 6028 */ + { 3, TI, sys_shmat, "shmgat" }, /* 6029 */ + { 3, TI, sys_shmctl, "shmctl" }, /* 6030 */ +@@ -6810,10 +6810,10 @@ + { 1, 0, sys_sched_get_priority_max,"sched_get_priority_max"}, /* 6143 */ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 6144 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 6145 */ +- { 2, 0, sys_mlock, "mlock" }, /* 6146 */ +- { 2, 0, sys_munlock, "munlock" }, /* 6147 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 6148 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 6149 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 6146 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 6147 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 6148 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 6149 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 6150 */ + { 2, 0, sys_pivotroot, "pivot_root" }, /* 6151 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 6152 */ +@@ -6874,7 +6874,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 6207 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 6208 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 6209 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 6210 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 6210 */ + { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 6211 */ + { 3, 0, sys_fcntl, "fcntl64" }, /* 6212 */ + { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 6213 */ +@@ -6914,7 +6914,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 6247 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 6248 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 6249 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 6250 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 6250 */ + { 4, TD|TF, sys_openat, "openat" }, /* 6251 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 6252 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 6253 */ +@@ -6935,7 +6935,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 6268 */ + { 4, TD, sys_tee, "tee" }, /* 6269 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 6270 */ +- { 6, 0, printargs, "move_pages" }, /* 6271 */ ++ { 6, TM, printargs, "move_pages" }, /* 6271 */ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 6272 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 6273 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 6274 */ +@@ -6986,10 +6986,10 @@ + { 0, 0, printargs, "n32_lstat" }, /* 6006 */ + { 0, 0, printargs, "n32_poll" }, /* 6007 */ + { 0, 0, printargs, "n32_lseek" }, /* 6008 */ +- { 0, 0, printargs, "n32_mmap" }, /* 6009 */ +- { 0, 0, printargs, "n32_mprotect" }, /* 6010 */ +- { 0, 0, printargs, "n32_munmap" }, /* 6011 */ +- { 0, 0, printargs, "n32_brk" }, /* 6012 */ ++ { 0, TM, printargs, "n32_mmap" }, /* 6009 */ ++ { 0, TM, printargs, "n32_mprotect" }, /* 6010 */ ++ { 0, TM, printargs, "n32_munmap" }, /* 6011 */ ++ { 0, TM, printargs, "n32_brk" }, /* 6012 */ + { 0, 0, printargs, "n32_rt_sigaction" }, /* 6013 */ + { 0, 0, printargs, "n32_rt_sigprocmask" }, /* 6014 */ + { 0, 0, printargs, "n32_ioctl" }, /* 6015 */ +@@ -7001,10 +7001,10 @@ + { 0, 0, printargs, "n32_pipe" }, /* 6021 */ + { 0, 0, printargs, "n32__newselect" }, /* 6022 */ + { 0, 0, printargs, "n32_sched_yield" }, /* 6023 */ +- { 0, 0, printargs, "n32_mremap" }, /* 6024 */ +- { 0, 0, printargs, "n32_msync" }, /* 6025 */ +- { 0, 0, printargs, "n32_mincore" }, /* 6026 */ +- { 0, 0, printargs, "n32_madvise" }, /* 6027 */ ++ { 0, TM, printargs, "n32_mremap" }, /* 6024 */ ++ { 0, TM, printargs, "n32_msync" }, /* 6025 */ ++ { 0, TM, printargs, "n32_mincore" }, /* 6026 */ ++ { 0, TM, printargs, "n32_madvise" }, /* 6027 */ + { 0, 0, printargs, "n32_shmget" }, /* 6028 */ + { 0, 0, printargs, "n32_shmgat" }, /* 6029 */ + { 0, 0, printargs, "n32_shmctl" }, /* 6030 */ +@@ -7123,10 +7123,10 @@ + { 0, 0, printargs, "n32_sched_get_priority_max"}, /* 6143 */ + { 0, 0, printargs, "n32_sched_get_priority_min"}, /* 6144 */ + { 0, 0, printargs, "n32_sched_rr_get_interval"}, /* 6145 */ +- { 0, 0, printargs, "n32_mlock" }, /* 6146 */ +- { 0, 0, printargs, "n32_munlock" }, /* 6147 */ +- { 0, 0, printargs, "n32_mlockall" }, /* 6148 */ +- { 0, 0, printargs, "n32_munlockall" }, /* 6149 */ ++ { 0, TM, printargs, "n32_mlock" }, /* 6146 */ ++ { 0, TM, printargs, "n32_munlock" }, /* 6147 */ ++ { 0, TM, printargs, "n32_mlockall" }, /* 6148 */ ++ { 0, TM, printargs, "n32_munlockall" }, /* 6149 */ + { 0, 0, printargs, "n32_vhangup" }, /* 6150 */ + { 0, 0, printargs, "n32_pivot_root" }, /* 6151 */ + { 0, 0, printargs, "n32__sysctl" }, /* 6152 */ +@@ -7187,7 +7187,7 @@ + { 0, 0, printargs, "n32_epoll_create" }, /* 6207 */ + { 0, 0, printargs, "n32_epoll_ctl" }, /* 6208 */ + { 0, 0, printargs, "n32_epoll_wait" }, /* 6209 */ +- { 0, 0, printargs, "n32_remap_file_pages" }, /* 6210 */ ++ { 0, TM, printargs, "n32_remap_file_pages" }, /* 6210 */ + { 0, 0, printargs, "n32_rt_sigreturn" }, /* 6211 */ + { 0, 0, printargs, "n32_fcntl64" }, /* 6212 */ + { 0, 0, printargs, "n32_set_tid_address" }, /* 6213 */ +@@ -7227,7 +7227,7 @@ + { 0, TD, printargs, "n32_inotify_init" }, /* 6247 */ + { 3, TD, printargs, "n32_inotify_add_watch" }, /* 6248 */ + { 2, TD, printargs, "n32_inotify_rm_watch" }, /* 6249 */ +- { 4, 0, printargs, "n32_migrate_pages" }, /* 6250 */ ++ { 4, TM, printargs, "n32_migrate_pages" }, /* 6250 */ + { 4, TD|TF, printargs, "n32_openat" }, /* 6251 */ + { 3, TD|TF, printargs, "n32_mkdirat" }, /* 6252 */ + { 4, TD|TF, printargs, "n32_mknodat" }, /* 6253 */ +@@ -7248,7 +7248,7 @@ + { 4, TD, printargs, "n32_sync_file_range" }, /* 6268 */ + { 4, TD, printargs, "n32_tee" }, /* 6269 */ + { 4, TD, printargs, "n32_vmsplice" }, /* 6270 */ +- { 6, 0, printargs, "n32_move_pages" }, /* 6271 */ ++ { 6, TM, printargs, "n32_move_pages" }, /* 6271 */ + { 2, 0, printargs, "n32_set_robust_list" }, /* 6272 */ + { 3, 0, printargs, "n32_get_robust_list" }, /* 6273 */ + { 5, 0, printargs, "n32_kexec_load" }, /* 6274 */ +diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h +index 35f3b39..3228f97 100644 +--- a/linux/powerpc/syscallent.h ++++ b/linux/powerpc/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, TF, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_mmap, "mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 5, 0, printargs, "modify_ldt" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 2, 0, sys_sched_setparam, "sched_setparam" }, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_query_module, "query_module" }, /* 166 */ +@@ -218,7 +218,7 @@ + { 0, TP, sys_vfork, "vfork" }, /* 189 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 190 */ + { 5, TD, sys_readahead, "readahead" }, /* 190 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 4, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 4, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -231,8 +231,8 @@ + { 3, TD, sys_getdents64, "getdents64" }, /* 202 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 203 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 204 */ +- { 3, 0, sys_madvise, "madvise" }, /* 205 */ +- { 3, 0, sys_mincore, "mincore" }, /* 206 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 205 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 206 */ + { 0, 0, sys_gettid, "gettid" }, /* 207 */ + { 2, TS, sys_kill, "tkill" }, /* 208 */ + { 5, TF, sys_setxattr, "setxattr" }, /* 209 */ +@@ -265,7 +265,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 236 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 237 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 238 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 239 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 239 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 240 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 241 */ + { 2, 0, sys_timer_gettime, "timer_gettime" }, /* 242 */ +@@ -284,10 +284,10 @@ + { 1, 0, printargs, "rtas" }, /* 255 */ + { 5, 0, printargs, "debug_setcontext" }, /* 256 */ + { 5, 0, sys_vserver, "vserver" }, /* 257 */ +- { 5, 0, sys_migrate_pages, "migrate_pages" }, /* 258 */ +- { 6, 0, sys_mbind, "mbind" }, /* 259 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 260 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 261 */ ++ { 5, TM, sys_migrate_pages, "migrate_pages" }, /* 258 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 259 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 260 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 261 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 262 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 263 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 264 */ +@@ -327,7 +327,7 @@ + { 3, TD|TF, sys_faccessat, "faccessat" }, /* 298 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 299 */ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 300 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 301 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 301 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 302 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 303 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 304 */ +diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h +index ccd4b01..1ce0fe2 100644 +--- a/linux/s390/syscallent.h ++++ b/linux/s390/syscallent.h +@@ -73,7 +73,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { MA, 0, NULL, NULL }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { MA, 0, NULL, NULL }, /* 46 */ + { MA, 0, NULL, NULL }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -118,8 +118,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -153,7 +153,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { MA, 0, NULL, NULL }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -172,16 +172,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -191,7 +191,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { MA, 0, NULL, NULL }, /* 166 */ +@@ -220,7 +220,7 @@ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, sys_getrlimit, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 2, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 2, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -246,8 +246,8 @@ + { 1, NF, sys_setfsuid, "setfsuid" }, /* 215 */ + { 1, NF, sys_setfsgid, "setfsgid" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 221 */ + { 4, TD, sys_readahead, "readahead" }, /* 222 */ +@@ -295,10 +295,10 @@ + { 5, TD, printargs, "fadvise64_64" }, /* 264 */ + { 3, TF, sys_statfs64, "statfs64" }, /* 265 */ + { 3, TF, sys_fstatfs64, "fstatfs64" }, /* 266 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 267 */ +- { 6, 0, sys_mbind, "mbind" }, /* 268 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 267 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 268 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 271 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 272 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 273 */ +@@ -315,7 +315,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 284 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 285 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 286 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 287 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 287 */ + { 4, TD|TF, sys_openat, "openat" }, /* 288 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 289 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 290 */ +@@ -338,7 +338,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 307 */ + { 4, TD, sys_tee, "tee" }, /* 308 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 309 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 310 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 310 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 311 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 312 */ + { 2, TF, sys_utimes, "utimes" }, /* 313 */ +diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h +index b1264d1..7fa8ff5 100644 +--- a/linux/s390x/syscallent.h ++++ b/linux/s390x/syscallent.h +@@ -72,7 +72,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { MA, 0, NULL, NULL }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { MA, 0, NULL, NULL }, /* 46 */ + { MA, 0, NULL, NULL }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -117,8 +117,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { MA, 0, NULL, NULL }, /* 89 */ +- { 6, TD, sys_old_mmap, "mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -152,7 +152,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { MA, 0, NULL, NULL }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -171,16 +171,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 2, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -190,7 +190,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { MA, 0, NULL, NULL }, /* 164 */ + { MA, 0, NULL, NULL }, /* 165 */ + { MA, 0, NULL, NULL }, /* 166 */ +@@ -245,8 +245,8 @@ + { 1, NF, sys_setfsuid, "setfsuid" }, /* 215 */ + { 1, NF, sys_setfsgid, "setfsgid" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { MA, 0, NULL, NULL }, /* 221 */ + { 4, TD, sys_readahead, "readahead" }, /* 222 */ +@@ -294,10 +294,10 @@ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 264 */ + { 3, TF, sys_statfs64, "statfs64" }, /* 265 */ + { 3, TF, sys_fstatfs64, "fstatfs64" }, /* 266 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 267 */ +- { 6, 0, sys_mbind, "mbind" }, /* 268 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 267 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 268 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 269 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 270 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 271 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 272 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 273 */ +@@ -314,7 +314,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 284 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 285 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 286 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 287 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 287 */ + { 4, TD|TF, sys_openat, "openat" }, /* 288 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 289 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 290 */ +@@ -337,7 +337,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 307 */ + { 4, TD, sys_tee, "tee" }, /* 308 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 309 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 310 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 310 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 311 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 312 */ + { 2, TF, sys_utimes, "utimes" }, /* 313 */ +diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h +index 3f3917b..d9228b4 100644 +--- a/linux/sh/syscallent.h ++++ b/linux/sh/syscallent.h +@@ -45,7 +45,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, TD, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -73,7 +73,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -118,8 +118,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -153,7 +153,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, sys_cacheflush, "cacheflush" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -172,16 +172,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 1, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 1, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 1, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 1, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -191,7 +191,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, sys_vm86, "vm86" }, /* 166 */ +@@ -221,7 +221,7 @@ + { 5, 0, NULL, NULL }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 5, 0, printargs, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 5, 0, sys_truncate64, "truncate64" }, /* 193 */ + { 5, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -248,8 +248,8 @@ + { 1, 0, printargs, "setfsuid32" }, /* 215 */ + { 1, 0, printargs, "setfsgid32" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 220 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 221 */ + { 4, 0, NULL, NULL }, /* 222 */ +@@ -287,7 +287,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 254 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 255 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 256 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 257 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 258 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 259 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 260 */ +@@ -304,9 +304,9 @@ + { 2, TF, sys_utimes, "utimes" }, /* 271 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 272 */ + { 0, 0, NULL, NULL }, /* 273 */ +- { 4, 0, sys_mbind, "mbind" }, /* 274 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ ++ { 4, TM, sys_mbind, "mbind" }, /* 274 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 275 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 276 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 277 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 278 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 279 */ +@@ -324,7 +324,7 @@ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch"}, /* 291 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch"}, /* 292 */ + { 5, 0, NULL, NULL }, /* 293 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 294 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 294 */ + { 4, TD|TF, sys_openat, "openat" }, /* 295 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 296 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 297 */ +@@ -347,7 +347,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range"}, /* 314 */ + { 4, TD, sys_tee, "tee" }, /* 315 */ + { 5, TD, sys_vmsplice, "vmsplice" }, /* 316 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 317 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 317 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 318 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 319 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 320 */ +diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h +index 347ff0c..39c13e0 100644 +--- a/linux/sh64/syscallent.h ++++ b/linux/sh64/syscallent.h +@@ -43,7 +43,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 0, 0, sys_break, "break" }, /* 17 */ ++ { 0, TM, sys_break, "break" }, /* 17 */ + { 2, TF, sys_oldstat, "oldstat" }, /* 18 */ + { 3, TD, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -71,7 +71,7 @@ + { 1, TD, sys_pipe, "pipe" }, /* 42 */ + { 1, 0, sys_times, "times" }, /* 43 */ + { 0, 0, sys_prof, "prof" }, /* 44 */ +- { 1, 0, sys_brk, "brk" }, /* 45 */ ++ { 1, TM, sys_brk, "brk" }, /* 45 */ + { 1, 0, sys_setgid, "setgid" }, /* 46 */ + { 0, NF, sys_getgid, "getgid" }, /* 47 */ + { 3, TS, sys_signal, "signal" }, /* 48 */ +@@ -116,8 +116,8 @@ + { 2, TF, sys_swapon, "swapon" }, /* 87 */ + { 4, 0, sys_reboot, "reboot" }, /* 88 */ + { 3, TD, sys_readdir, "readdir" }, /* 89 */ +- { 6, TD, sys_old_mmap, "old_mmap" }, /* 90 */ +- { 2, 0, sys_munmap, "munmap" }, /* 91 */ ++ { 6, TD|TM, sys_old_mmap, "old_mmap" }, /* 90 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 91 */ + { 2, TF, sys_truncate, "truncate" }, /* 92 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 93 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 94 */ +@@ -151,7 +151,7 @@ + { 1, 0, sys_uname, "uname" }, /* 122 */ + { 3, 0, printargs, "cacheflush" }, /* 123 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 124 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 125 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 125 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 126 */ + { 2, 0, sys_create_module, "create_module" }, /* 127 */ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ +@@ -170,16 +170,16 @@ + { 3, TD, sys_getdents, "getdents" }, /* 141 */ + { 5, TD, sys_select, "select" }, /* 142 */ + { 2, TD, sys_flock, "flock" }, /* 143 */ +- { 3, 0, sys_msync, "msync" }, /* 144 */ ++ { 3, TM, sys_msync, "msync" }, /* 144 */ + { 3, TD, sys_readv, "readv" }, /* 145 */ + { 3, TD, sys_writev, "writev" }, /* 146 */ + { 1, 0, sys_getsid, "getsid" }, /* 147 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 148 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 149 */ +- { 1, 0, sys_mlock, "mlock" }, /* 150 */ +- { 2, 0, sys_munlock, "munlock" }, /* 151 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 152 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 153 */ ++ { 1, TM, sys_mlock, "mlock" }, /* 150 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 151 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 152 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 153 */ + { 0, 0, sys_sched_setparam, "sched_setparam"}, /* 154 */ + { 2, 0, sys_sched_getparam, "sched_getparam"}, /* 155 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler"}, /* 156 */ +@@ -189,7 +189,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min"}, /* 160 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval"}, /* 161 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 162 */ +- { 5, 0, sys_mremap, "mremap" }, /* 163 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 163 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 164 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 165 */ + { 5, 0, NULL, NULL }, /* 166 */ +@@ -218,7 +218,7 @@ + { 5, 0, NULL, NULL }, /* 189 */ + { 0, TP, sys_vfork, "vfork" }, /* 190 */ + { 2, 0, printargs, "getrlimit" }, /* 191 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 192 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 192 */ + { 2, TF, sys_truncate64, "truncate64" }, /* 193 */ + { 2, TD, sys_ftruncate64, "ftruncate64" }, /* 194 */ + { 2, TF, sys_stat64, "stat64" }, /* 195 */ +@@ -244,8 +244,8 @@ + { 1, 0, printargs, "setfsuid32" }, /* 215 */ + { 1, 0, printargs, "setfsgid32" }, /* 216 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ +- { 3, 0, sys_mincore, "mincore" }, /* 218 */ +- { 3, 0, sys_madvise, "madvise" }, /* 219 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 218 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 219 */ + { 3, TN, sys_socket, "socket" }, /* 220 */ + { 3, TN, sys_bind, "bind" }, /* 221 */ + { 3, TN, sys_connect, "connect" }, /* 222 */ +@@ -311,7 +311,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 282 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 283 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 284 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 285 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 285 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 286 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 287 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 288 */ +@@ -328,9 +328,9 @@ + { 2, TF, sys_utimes, "utimes" }, /* 299 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 300 */ + { 0, 0, NULL, NULL }, /* 301 */ +- { 4, 0, sys_mbind, "mbind" }, /* 302 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 303 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 304 */ ++ { 4, TM, sys_mbind, "mbind" }, /* 302 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 303 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 304 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 305 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 306 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 307 */ +@@ -348,7 +348,7 @@ + { 3, TD, printargs, "inotify_add_watch"}, /* 319 */ + { 2, TD, printargs, "inotify_rm_watch"}, /* 320 */ + { 5, 0, NULL, NULL }, /* 321 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 322 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 322 */ + { 4, TD|TF, sys_openat, "openat" }, /* 323 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 324 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 325 */ +@@ -371,7 +371,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range"}, /* 342 */ + { 4, TD, sys_tee, "tee" }, /* 343 */ + { 5, TD, sys_vmsplice, "vmsplice" }, /* 344 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 345 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 345 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 346 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 347 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 348 */ +diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h +index 259eb4b..d6b518a 100644 +--- a/linux/sparc/syscallent.h ++++ b/linux/sparc/syscallent.h +@@ -15,7 +15,7 @@ + { 3, TF, sys_mknod, "mknod" }, /* 14 */ + { 2, TF, sys_chmod, "chmod" }, /* 15 */ + { 3, TF, sys_chown, "lchown" }, /* 16 */ +- { 1, 0, sys_brk, "brk" }, /* 17 */ ++ { 1, TM, sys_brk, "brk" }, /* 17 */ + { 4, 0, printargs, "perfctr" }, /* 18 */ + { 3, TD, sys_lseek, "lseek" }, /* 19 */ + { 0, 0, sys_getpid, "getpid" }, /* 20 */ +@@ -54,7 +54,7 @@ + { 0, NF, sys_getgid, "getgid32" }, /* 53 */ + { 3, TD, sys_ioctl, "ioctl" }, /* 54 */ + { 4, 0, sys_reboot, "reboot" }, /* 55 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 56 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 56 */ + { 2, TF, sys_symlink, "symlink" }, /* 57 */ + { 3, TF, sys_readlink, "readlink" }, /* 58 */ + { 3, TF|TP, sys_execve, "execve" }, /* 59 */ +@@ -63,20 +63,20 @@ + { 2, TD, sys_fstat, "fstat" }, /* 62 */ + { 2, TD, sys_fstat64, "fstat64" }, /* 63 */ + { 0, 0, sys_getpagesize,"getpagesize" }, /* 64 */ +- { 3, 0, sys_msync, "msync" }, /* 65 */ ++ { 3, TM, sys_msync, "msync" }, /* 65 */ + { 0, TP, sys_vfork, "vfork" }, /* 66 */ + { 5, TD, sys_pread, "pread" }, /* 67 */ + { 5, TD, sys_pwrite, "pwrite" }, /* 68 */ + { 0, NF, sys_geteuid, "geteuid32" }, /* 69 */ + { 0, NF, sys_getegid, "getegid32" }, /* 70 */ +- { 6, TD, sys_mmap, "mmap" }, /* 71 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 71 */ + { 2, 0, sys_setreuid, "setreuid32" }, /* 72 */ +- { 2, 0, sys_munmap, "munmap" }, /* 73 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 74 */ +- { 3, 0, sys_madvise, "madvise" }, /* 75 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 73 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 74 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 75 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 76 */ + { 3, TF, sys_truncate64, "truncate64" }, /* 77 */ +- { 3, 0, sys_mincore, "mincore" }, /* 78 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 78 */ + { 2, 0, sys_getgroups, "getgroups" }, /* 79 */ + { 2, 0, sys_setgroups, "setgroups" }, /* 80 */ + { 0, 0, sys_getpgrp, "getpgrp" }, /* 81 */ +@@ -190,7 +190,7 @@ + { 1, 0, sys_uname, "uname" }, /* 189 */ + { 3, 0, sys_init_module,"init_module" }, /* 190 */ + { 1, 0, sys_personality,"personality" }, /* 191 */ +- { 5, 0, sys_remap_file_pages,"remap_file_pages" },/* 192 */ ++ { 5, TM, sys_remap_file_pages,"remap_file_pages" },/* 192 */ + { 1, TD, sys_epoll_create,"epoll_create" }, /* 193 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 194 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 195 */ +@@ -235,10 +235,10 @@ + { 3, TF, sys_statfs64, "statfs64" }, /* 234 */ + { 3, TD, sys_fstatfs64, "fstatfs64" }, /* 235 */ + { 5, TD, sys_llseek, "_llseek" }, /* 236 */ +- { 2, 0, sys_mlock, "mlock" }, /* 237 */ +- { 2, 0, sys_munlock, "munlock" }, /* 238 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 239 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 240 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 237 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 238 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 239 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 240 */ + { 2, 0, sys_sched_setparam,"sched_setparam"}, /* 241 */ + { 2, 0, sys_sched_getparam,"sched_getparam"}, /* 242 */ + { 3, 0, sys_sched_setscheduler,"sched_setscheduler"},/* 243 */ +@@ -248,7 +248,7 @@ + { 1,0,sys_sched_get_priority_min,"sched_get_priority_min"},/* 247 */ + { 2, 0,sys_sched_rr_get_interval,"sched_rr_get_interval"},/* 248 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 249 */ +- { 5, 0, sys_mremap, "mremap" }, /* 250 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 250 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 251 */ + { 1, 0, sys_getsid, "getsid" }, /* 252 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 253 */ +@@ -300,12 +300,12 @@ + { 1, TP, sys_unshare, "unshare" }, /* 299 */ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 300 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 301 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 302 */ +- { 6, 0, sys_mbind, "mbind" }, /* 303 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 304 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 305 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 302 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 303 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 304 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 305 */ + { 4, 0, sys_kexec_load, "kexec_load" }, /* 306 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 307 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 307 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 308 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 309 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 310 */ +diff --git a/linux/tile/syscallent.h b/linux/tile/syscallent.h +index c21a1e0..89205e3 100644 +--- a/linux/tile/syscallent.h ++++ b/linux/tile/syscallent.h +@@ -38,7 +38,7 @@ + { 1, TD, sys_dup, "dup" }, /* 37 */ + { 1, TD, sys_pipe, "pipe" }, /* 38 */ + { 1, 0, sys_times, "times" }, /* 39 */ +- { 1, 0, sys_brk, "brk" }, /* 40 */ ++ { 1, TM, sys_brk, "brk" }, /* 40 */ + { 1, 0, sys_setgid, "setgid" }, /* 41 */ + { 0, NF, sys_getgid, "getgid" }, /* 42 */ + { 3, TS, sys_signal, "signal" }, /* 43 */ +@@ -75,8 +75,8 @@ + { 1, TF, sys_uselib, "uselib" }, /* 74 */ + { 2, TF, sys_swapon, "swapon" }, /* 75 */ + { 4, 0, sys_reboot, "reboot" }, /* 76 */ +- { 6, TD, sys_mmap, "mmap2" }, /* 77 */ +- { 2, 0, sys_munmap, "munmap" }, /* 78 */ ++ { 6, TD|TM, sys_mmap, "mmap2" }, /* 77 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 78 */ + { 2, TF, sys_truncate, "truncate" }, /* 79 */ + { 2, TD, sys_ftruncate, "ftruncate" }, /* 80 */ + { 2, TD, sys_fchmod, "fchmod" }, /* 81 */ +@@ -127,7 +127,7 @@ + { 2, 0, sys_setdomainname, "setdomainname" }, /* 126 */ + { 1, 0, sys_uname, "uname" }, /* 127 */ + { 1, 0, sys_adjtimex, "adjtimex" }, /* 128 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 129 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 129 */ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 130 */ + { 3, 0, sys_init_module, "init_module" }, /* 131 */ + { 1, 0, sys_delete_module, "delete_module" }, /* 132 */ +@@ -143,16 +143,16 @@ + { 5, TD, sys_llseek, "_llseek" }, /* 142 */ + { 3, TD, sys_getdents, "getdents" }, /* 143 */ + { 2, TD, sys_flock, "flock" }, /* 144 */ +- { 3, 0, sys_msync, "msync" }, /* 145 */ ++ { 3, TM, sys_msync, "msync" }, /* 145 */ + { 3, TD, sys_readv, "readv" }, /* 146 */ + { 3, TD, sys_writev, "writev" }, /* 147 */ + { 1, 0, sys_getsid, "getsid" }, /* 148 */ + { 1, TD, sys_fdatasync, "fdatasync" }, /* 149 */ + { 1, 0, sys_sysctl, "_sysctl" }, /* 150 */ +- { 2, 0, sys_mlock, "mlock" }, /* 151 */ +- { 2, 0, sys_munlock, "munlock" }, /* 152 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 153 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 154 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 151 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 152 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 153 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 154 */ + { 0, 0, sys_sched_setparam, "sched_setparam" }, /* 155 */ + { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 156 */ + { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 157 */ +@@ -162,7 +162,7 @@ + { 1, 0, sys_sched_get_priority_min,"sched_get_priority_min" }, /* 161 */ + { 2, 0, sys_sched_rr_get_interval,"sched_rr_get_interval" }, /* 162 */ + { 2, 0, sys_nanosleep, "nanosleep" }, /* 163 */ +- { 4, 0, sys_mremap, "mremap" }, /* 164 */ ++ { 4, TM, sys_mremap, "mremap" }, /* 164 */ + { 3, 0, sys_setresuid, "setresuid" }, /* 165 */ + { 3, 0, sys_getresuid, "getresuid" }, /* 166 */ + { 3, TD, sys_poll, "poll" }, /* 167 */ +@@ -194,8 +194,8 @@ + { 2, TF, sys_lstat64, "lstat64" }, /* 193 */ + { 2, TD, sys_fstat64, "fstat64" }, /* 194 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 195 */ +- { 3, 0, sys_mincore, "mincore" }, /* 196 */ +- { 3, 0, sys_madvise, "madvise" }, /* 197 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 196 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 197 */ + { 4, TD, sys_getdents64, "getdents64" }, /* 198 */ + { 3, TD, sys_fcntl, "fcntl64" }, /* 199 */ + { 0, 0, sys_gettid, "gettid" }, /* 200 */ +@@ -223,13 +223,13 @@ + { 3, 0, sys_io_submit, "io_submit" }, /* 222 */ + { 3, 0, sys_io_cancel, "io_cancel" }, /* 223 */ + { 5, TD, sys_fadvise64, "fadvise64" }, /* 224 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 225 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 225 */ + { 1, TP, sys_exit, "exit_group" }, /* 226 */ + { 4, 0, sys_lookup_dcookie, "lookup_dcookie" }, /* 227 */ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 228 */ + { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 229 */ + { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 230 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages" }, /* 231 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 231 */ + { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 232 */ + { 3, 0, sys_timer_create, "timer_create" }, /* 233 */ + { 4, 0, sys_timer_settime, "timer_settime" }, /* 234 */ +@@ -245,9 +245,9 @@ + { 3, TS, sys_tgkill, "tgkill" }, /* 244 */ + { 2, TF, sys_utimes, "utimes" }, /* 245 */ + { 6, TD, sys_fadvise64_64, "fadvise64_64" }, /* 246 */ +- { 6, 0, sys_mbind, "mbind" }, /* 247 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 248 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 249 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 247 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 248 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 249 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 250 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 251 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 252 */ +@@ -287,7 +287,7 @@ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 286 */ + { 4, TD, sys_tee, "tee" }, /* 287 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 288 */ +- { 6, TP, sys_move_pages, "move_pages" }, /* 289 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 289 */ + { 1, TP, printargs, "unused" }, /* 290 */ + { 1, 0, printargs, "cmpxchg_badaddr" }, /* 291 */ + { 3, 0, sys_getcpu, "getcpu" }, /* 292 */ +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index 978af94..924164e 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h +@@ -7,10 +7,10 @@ + { 2, TF, sys_lstat, "lstat" }, /* 6 */ + { 3, TD, sys_poll, "poll" }, /* 7 */ + { 3, TD, sys_lseek, "lseek" }, /* 8 */ +- { 6, TD, sys_mmap, "mmap" }, /* 9 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 10 */ +- { 2, 0, sys_munmap, "munmap" }, /* 11 */ +- { 1, 0, sys_brk, "brk" }, /* 12 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 9 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 10 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 11 */ ++ { 1, TM, sys_brk, "brk" }, /* 12 */ + { 4, TS, printargs, "64:rt_sigaction" }, /* 13 */ + { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 14 */ + { 0, TS, printargs, "64:rt_sigreturn" }, /* 15 */ +@@ -23,10 +23,10 @@ + { 1, TD, sys_pipe, "pipe" }, /* 22 */ + { 5, TD, sys_select, "select" }, /* 23 */ + { 0, 0, sys_sched_yield, "sched_yield" }, /* 24 */ +- { 5, 0, sys_mremap, "mremap" }, /* 25 */ +- { 3, 0, sys_msync, "msync" }, /* 26 */ +- { 3, 0, sys_mincore, "mincore" }, /* 27 */ +- { 3, 0, sys_madvise, "madvise" }, /* 28 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 25 */ ++ { 3, TM, sys_msync, "msync" }, /* 26 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 27 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 28 */ + { 4, TI, sys_shmget, "shmget" }, /* 29 */ + { 4, TI, sys_shmat, "shmat" }, /* 30 */ + { 4, TI, sys_shmctl, "shmctl" }, /* 31 */ +@@ -147,10 +147,10 @@ + { 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 146 */ + { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 147 */ + { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 148 */ +- { 2, 0, sys_mlock, "mlock" }, /* 149 */ +- { 2, 0, sys_munlock, "munlock" }, /* 150 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 151 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 152 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 149 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 150 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 151 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 152 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 153 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 154 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 155 */ +@@ -214,7 +214,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 213 */ + { 4, 0, printargs, "64:epoll_ctl_old" }, /* 214 */ + { 4, 0, printargs, "64:epoll_wait_old" }, /* 215 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 216 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 216 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 217 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 218 */ + { 0, 0, sys_restart_syscall, "restart_syscall"}, /* 219 */ +@@ -235,9 +235,9 @@ + { 3, TS, sys_tgkill, "tgkill" }, /* 234 */ + { 2, TF, sys_utimes, "utimes" }, /* 235 */ + { 5, 0, printargs, "64:vserver" }, /* 236 */ +- { 6, 0, sys_mbind, "mbind" }, /* 237 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 238 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 239 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 237 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 238 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 239 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 240 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 241 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 242 */ +@@ -254,7 +254,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 253 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 254 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 255 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 256 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 256 */ + { 4, TD|TF, sys_openat, "openat" }, /* 257 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 258 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 259 */ +@@ -277,7 +277,7 @@ + { 4, TD, sys_tee, "tee" }, /* 276 */ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 277 */ + { 4, TD, printargs, "64:vmsplice" }, /* 278 */ +- { 6, 0, printargs, "64:move_pages" }, /* 279 */ ++ { 6, TM, printargs, "64:move_pages" }, /* 279 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 280 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 281 */ + { 3, TD|TS, sys_signalfd, "signalfd" }, /* 282 */ +@@ -334,7 +334,7 @@ + { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 530 */ + { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 531 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 532 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 533 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 533 */ + { 5, TD, sys_preadv, "preadv" }, /* 534 */ + { 5, TD, sys_pwritev, "pwritev" }, /* 535 */ + { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" }, /* 536 */ +diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h +index 34ebc53..2ce663f 100644 +--- a/linux/x86_64/syscallent.h ++++ b/linux/x86_64/syscallent.h +@@ -7,10 +7,10 @@ + { 2, TF, sys_lstat, "lstat" }, /* 6 */ + { 3, TD, sys_poll, "poll" }, /* 7 */ + { 3, TD, sys_lseek, "lseek" }, /* 8 */ +- { 6, TD, sys_mmap, "mmap" }, /* 9 */ +- { 3, 0, sys_mprotect, "mprotect" }, /* 10 */ +- { 2, 0, sys_munmap, "munmap" }, /* 11 */ +- { 1, 0, sys_brk, "brk" }, /* 12 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 9 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 10 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 11 */ ++ { 1, TM, sys_brk, "brk" }, /* 12 */ + { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 13 */ + { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask"}, /* 14 */ + { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 15 */ +@@ -23,10 +23,10 @@ + { 1, TD, sys_pipe, "pipe" }, /* 22 */ + { 5, TD, sys_select, "select" }, /* 23 */ + { 0, 0, sys_sched_yield, "sched_yield" }, /* 24 */ +- { 5, 0, sys_mremap, "mremap" }, /* 25 */ +- { 3, 0, sys_msync, "msync" }, /* 26 */ +- { 3, 0, sys_mincore, "mincore" }, /* 27 */ +- { 3, 0, sys_madvise, "madvise" }, /* 28 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 25 */ ++ { 3, TM, sys_msync, "msync" }, /* 26 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 27 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 28 */ + { 4, TI, sys_shmget, "shmget" }, /* 29 */ + { 4, TI, sys_shmat, "shmat" }, /* 30 */ + { 4, TI, sys_shmctl, "shmctl" }, /* 31 */ +@@ -147,10 +147,10 @@ + { 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 146 */ + { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 147 */ + { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 148 */ +- { 2, 0, sys_mlock, "mlock" }, /* 149 */ +- { 2, 0, sys_munlock, "munlock" }, /* 150 */ +- { 1, 0, sys_mlockall, "mlockall" }, /* 151 */ +- { 0, 0, sys_munlockall, "munlockall" }, /* 152 */ ++ { 2, TM, sys_mlock, "mlock" }, /* 149 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 150 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 151 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 152 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 153 */ + { 3, 0, sys_modify_ldt, "modify_ldt" }, /* 154 */ + { 2, TF, sys_pivotroot, "pivot_root" }, /* 155 */ +@@ -214,7 +214,7 @@ + { 1, TD, sys_epoll_create, "epoll_create" }, /* 213 */ + { 4, 0, printargs, "epoll_ctl_old" }, /* 214 */ + { 4, 0, printargs, "epoll_wait_old"}, /* 215 */ +- { 5, 0, sys_remap_file_pages, "remap_file_pages"}, /* 216 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages"}, /* 216 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 217 */ + { 1, 0, sys_set_tid_address, "set_tid_address"}, /* 218 */ + { 0, 0, sys_restart_syscall, "restart_syscall"}, /* 219 */ +@@ -235,9 +235,9 @@ + { 3, TS, sys_tgkill, "tgkill" }, /* 234 */ + { 2, TF, sys_utimes, "utimes" }, /* 235 */ + { 5, 0, sys_vserver, "vserver" }, /* 236 */ +- { 6, 0, sys_mbind, "mbind" }, /* 237 */ +- { 3, 0, sys_set_mempolicy, "set_mempolicy" }, /* 238 */ +- { 5, 0, sys_get_mempolicy, "get_mempolicy" }, /* 239 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 237 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 238 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 239 */ + { 4, 0, sys_mq_open, "mq_open" }, /* 240 */ + { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 241 */ + { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 242 */ +@@ -254,7 +254,7 @@ + { 0, TD, sys_inotify_init, "inotify_init" }, /* 253 */ + { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 254 */ + { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 255 */ +- { 4, 0, sys_migrate_pages, "migrate_pages" }, /* 256 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 256 */ + { 4, TD|TF, sys_openat, "openat" }, /* 257 */ + { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 258 */ + { 4, TD|TF, sys_mknodat, "mknodat" }, /* 259 */ +@@ -277,7 +277,7 @@ + { 4, TD, sys_tee, "tee" }, /* 276 */ + { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 277 */ + { 4, TD, sys_vmsplice, "vmsplice" }, /* 278 */ +- { 6, 0, sys_move_pages, "move_pages" }, /* 279 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 279 */ + { 4, TD|TF, sys_utimensat, "utimensat" }, /* 280 */ + { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 281 */ + { 3, TD|TS, sys_signalfd, "signalfd" }, /* 282 */ +diff --git a/strace.1 b/strace.1 +index faf4d45..f31b217 100644 +--- a/strace.1 ++++ b/strace.1 +@@ -395,6 +395,9 @@ Trace all IPC related system calls. + .BR "\-e\ trace" = desc + Trace all file descriptor related system calls. + .TP ++.BR "\-e\ trace" = memory ++Trace all memory mapping related system calls. ++.TP + \fB\-e\ abbrev\fR=\fIset\fR + Abbreviate the output from printing each member of large structures. + The default is +diff --git a/syscall.c b/syscall.c +index c4c5e86..37936ad 100644 +--- a/syscall.c ++++ b/syscall.c +@@ -97,6 +97,7 @@ + #define TN TRACE_NETWORK + #define TP TRACE_PROCESS + #define TS TRACE_SIGNAL ++#define TM TRACE_MEMORY + #define NF SYSCALL_NEVER_FAILS + #define MA MAX_ARGS + +@@ -123,6 +124,7 @@ static const struct sysent sysent2[] = { + #undef TN + #undef TP + #undef TS ++#undef TM + #undef NF + #undef MA + +@@ -441,6 +443,8 @@ lookup_class(const char *s) + return TRACE_SIGNAL; + if (strcmp(s, "desc") == 0) + return TRACE_DESC; ++ if (strcmp(s, "memory") == 0) ++ return TRACE_MEMORY; + return -1; + } + +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0026-linux-add-new-errno-values-for-EPROBE_DEFER-and-EOPE.patch b/meta/recipes-devtools/strace/strace-4.7/0026-linux-add-new-errno-values-for-EPROBE_DEFER-and-EOPE.patch new file mode 100644 index 0000000000..1f84d46ad0 --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0026-linux-add-new-errno-values-for-EPROBE_DEFER-and-EOPE.patch @@ -0,0 +1,36 @@ +Upstream-Status: Backport + +From d6dbd998b723087f933f88a9e10843c6a7682fa2 Mon Sep 17 00:00:00 2001 +From: Steve McIntyre <steve.mcintyre@linaro.org> +Date: Wed, 24 Oct 2012 14:49:20 +0100 +Subject: [PATCH 26/31] linux: add new errno values for EPROBE_DEFER and + EOPENSTALE + +New definitions match updates in Linux 3.4 and Linux 3.5 respectively. + +* linux/errnoent.h (ERRNO_517): Change to EPROBE_DEFER. +(ERRNO_518): Change to EOPENSTALE. + +Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org> +--- + linux/errnoent.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/linux/errnoent.h b/linux/errnoent.h +index e43bff5..c2ac683 100644 +--- a/linux/errnoent.h ++++ b/linux/errnoent.h +@@ -519,8 +519,8 @@ + "ERESTARTNOHAND", /* 514 */ + "ENOIOCTLCMD", /* 515 */ + "ERESTART_RESTARTBLOCK", /* 516 */ +- "ERRNO_517", /* 517 */ +- "ERRNO_518", /* 518 */ ++ "EPROBE_DEFER", /* 517 */ ++ "EOPENSTALE", /* 518 */ + "ERRNO_519", /* 519 */ + "ERRNO_520", /* 520 */ + "EBADHANDLE", /* 521 */ +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0027-Add-AArch64-support-to-strace.patch b/meta/recipes-devtools/strace/strace-4.7/0027-Add-AArch64-support-to-strace.patch new file mode 100644 index 0000000000..9c204e441b --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0027-Add-AArch64-support-to-strace.patch @@ -0,0 +1,542 @@ +Upstream-Status: Backport + +From d8d3bd3709eb52581c8ce86cec5a7a9c43c3c5b9 Mon Sep 17 00:00:00 2001 +From: Steve McIntyre <steve.mcintyre@linaro.org> +Date: Wed, 24 Oct 2012 17:58:16 +0100 +Subject: [PATCH 27/31] Add AArch64 support to strace + +AArch64 has been included in linux from 3.7 onwards. +Add support for AArch64 in strace, tested on linux in a simulator. + +* configure.ac: Support AArch64. +* defs.h [AARCH64]: Include <sys/ptrace.h>, define TCB_WAITEXECVE. +* ipc.c (indirect_ipccall): Support AArch64. +* process.c (struct_user_offsets): Likewise. +* syscall.c [AARCH64]: Include <asm/ptrace.h>, <sys/uio.h>, and +<elf.h>. Define struct user_pt_regs regs. +(get_scno, get_syscall_result): Support AArch64 using PTRACE_GETREGSET. +(get_syscall_args, get_error): Support AArch64. +* linux/aarch64/ioctlent.h.in: New file. +* linux/aarch64/syscallent.h: New file, based on linux 3.7 version of +asm-generic/unistd.h. + +Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org> +--- + configure.ac | 4 + + defs.h | 5 +- + ipc.c | 2 +- + linux/aarch64/ioctlent.h.in | 1 + + linux/aarch64/syscallent.h | 330 ++++++++++++++++++++++++++++++++++++++++++++ + process.c | 7 +- + syscall.c | 32 +++++ + 7 files changed, 375 insertions(+), 6 deletions(-) + create mode 100644 linux/aarch64/ioctlent.h.in + create mode 100644 linux/aarch64/syscallent.h + +diff --git a/configure.ac b/configure.ac +index a9f8d15..f44eaf1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -56,6 +56,10 @@ arm*) + arch=arm + AC_DEFINE([ARM], 1, [Define for the ARM architecture.]) + ;; ++aarch64*) ++ arch=aarch64 ++ AC_DEFINE([AARCH64], 1, [Define for the AArch64 architecture.]) ++ ;; + avr32*) + arch=avr32 + AC_DEFINE([AVR32], 1, [Define for the AVR32 architecture.]) +diff --git a/defs.h b/defs.h +index d366b21..11e26bb 100644 +--- a/defs.h ++++ b/defs.h +@@ -134,7 +134,7 @@ extern char *stpcpy(char *dst, const char *src); + # define LINUX_MIPS64 + #endif + +-#if (defined(LINUXSPARC) || defined(X86_64) || defined(ARM) || defined(AVR32)) && defined(__GLIBC__) ++#if (defined(LINUXSPARC) || defined(X86_64) || defined(ARM) || defined(AARCH64) || defined(AVR32)) && defined(__GLIBC__) + # include <sys/ptrace.h> + #else + /* Work around awkward prototype in ptrace.h. */ +@@ -389,7 +389,8 @@ struct tcb { + #if defined(ALPHA) || defined(AVR32) || defined(SPARC) || defined(SPARC64) \ + || defined(POWERPC) || defined(IA64) || defined(HPPA) \ + || defined(SH) || defined(SH64) || defined(S390) || defined(S390X) \ +- || defined(ARM) || defined(MIPS) || defined(BFIN) || defined(TILE) ++ || defined(ARM) || defined(AARCH64) || defined(MIPS) || defined(BFIN) \ ++ || defined(TILE) + /* This tracee has entered into execve syscall. Expect post-execve SIGTRAP + * to happen. (When it is detected, tracee is continued and this bit is cleared.) + */ +diff --git a/ipc.c b/ipc.c +index f4ec522..0bde1cf 100644 +--- a/ipc.c ++++ b/ipc.c +@@ -174,7 +174,7 @@ indirect_ipccall(struct tcb *tcp) + #if defined IA64 + return tcp->scno < 1024; /* ia32 emulation syscalls are low */ + #endif +-#if defined(ALPHA) || defined(MIPS) || defined(HPPA) || defined(__ARM_EABI__) ++#if defined(ALPHA) || defined(MIPS) || defined(HPPA) || defined(__ARM_EABI__) || defined(AARCH64) + return 0; + #endif + return 1; +diff --git a/linux/aarch64/ioctlent.h.in b/linux/aarch64/ioctlent.h.in +new file mode 100644 +index 0000000..83e6eb2 +--- /dev/null ++++ b/linux/aarch64/ioctlent.h.in +@@ -0,0 +1 @@ ++#include "../arm/ioctlent.h.in" +diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h +new file mode 100644 +index 0000000..eeda429 +--- /dev/null ++++ b/linux/aarch64/syscallent.h +@@ -0,0 +1,330 @@ ++ { 2, 0, sys_io_setup, "io_setup" }, /* 0 */ ++ { 1, 0, sys_io_destroy, "io_destroy" }, /* 1 */ ++ { 3, 0, sys_io_submit, "io_submit" }, /* 2 */ ++ { 3, 0, sys_io_cancel, "io_cancel" }, /* 3 */ ++ { 5, 0, sys_io_getevents, "io_getevents" }, /* 4 */ ++ { 5, TF, sys_setxattr, "setxattr" }, /* 5 */ ++ { 5, TF, sys_setxattr, "lsetxattr" }, /* 6 */ ++ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 7 */ ++ { 4, TF, sys_getxattr, "getxattr" }, /* 8 */ ++ { 4, TF, sys_getxattr, "lgetxattr" }, /* 9 */ ++ { 4, TD, sys_fgetxattr, "fgetxattr" }, /* 10 */ ++ { 3, TF, sys_listxattr, "listxattr" }, /* 11 */ ++ { 3, TF, sys_listxattr, "llistxattr" }, /* 12 */ ++ { 3, TD, sys_flistxattr, "flistxattr" }, /* 13 */ ++ { 2, TF, sys_removexattr, "removexattr" }, /* 14 */ ++ { 2, TF, sys_removexattr, "lremovexattr" }, /* 15 */ ++ { 2, TD, sys_fremovexattr, "fremovexattr" }, /* 16 */ ++ { 2, TF, sys_getcwd, "getcwd" }, /* 17 */ ++ { 4, 0, sys_lookup_dcookie, "lookup_dcookie" }, /* 18 */ ++ { 2, TD, sys_eventfd2, "eventfd2" }, /* 19 */ ++ { 1, TD, sys_epoll_create1, "epoll_create1" }, /* 20 */ ++ { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 21 */ ++ { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 22 */ ++ { 1, TD, sys_dup, "dup" }, /* 23 */ ++ { 3, TD, sys_dup3, "dup3" }, /* 24 */ ++ { 3, TD, sys_fcntl, "fcntl" }, /* 25 */ ++ { 1, TD, sys_inotify_init1, "inotify_init1" }, /* 26 */ ++ { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 27 */ ++ { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 28 */ ++ { 3, TD, sys_ioctl, "ioctl" }, /* 29 */ ++ { 3, 0, sys_ioprio_set, "ioprio_set" }, /* 30 */ ++ { 2, 0, sys_ioprio_get, "ioprio_get" }, /* 31 */ ++ { 2, TD, sys_flock, "flock" }, /* 32 */ ++ { 4, TD|TF, sys_mknodat, "mknodat" }, /* 33 */ ++ { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 34 */ ++ { 3, TD|TF, sys_unlinkat, "unlinkat" }, /* 35 */ ++ { 3, TD|TF, sys_symlinkat, "symlinkat" }, /* 36 */ ++ { 5, TD|TF, sys_linkat, "linkat" }, /* 37 */ ++ { 4, TD|TF, sys_renameat, "renameat" }, /* 38 */ ++ { 2, TF, sys_umount2, "umount2" }, /* 39 */ ++ { 5, TF, sys_mount, "mount" }, /* 40 */ ++ { 2, TF, sys_pivotroot, "pivot_root" }, /* 41 */ ++ { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 42 */ ++ { 2, TF, sys_statfs, "statfs64" }, /* 43 */ ++ { 2, TD, sys_fstatfs, "fstatfs64" }, /* 44 */ ++ { 2, TF, sys_truncate, "truncate64" }, /* 45 */ ++ { 2, TD, sys_ftruncate, "ftruncate64" }, /* 46 */ ++ { 6, TD, sys_fallocate, "fallocate" }, /* 47 */ ++ { 3, TD|TF, sys_faccessat, "faccessat" }, /* 48 */ ++ { 1, TF, sys_chdir, "chdir" }, /* 49 */ ++ { 1, TD, sys_fchdir, "fchdir" }, /* 50 */ ++ { 1, TF, sys_chroot, "chroot" }, /* 51 */ ++ { 2, TD, sys_fchmod, "fchmod" }, /* 52 */ ++ { 3, TD|TF, sys_fchmodat, "fchmodat" }, /* 53 */ ++ { 5, TD|TF, sys_fchownat, "fchownat" }, /* 54 */ ++ { 3, TD, sys_fchown, "fchown" }, /* 55 */ ++ { 4, TD|TF, sys_openat, "openat" }, /* 56 */ ++ { 1, TD, sys_close, "close" }, /* 57 */ ++ { 0, 0, sys_vhangup, "vhangup" }, /* 58 */ ++ { 2, TD, sys_pipe2, "pipe2" }, /* 59 */ ++ { 4, 0, sys_quotactl, "quotactl" }, /* 60 */ ++ { 3, TD, sys_getdents64, "getdents64" }, /* 61 */ ++ { 3, TD, sys_lseek, "lseek" }, /* 62 */ ++ { 3, TD, sys_read, "read" }, /* 63 */ ++ { 3, TD, sys_write, "write" }, /* 64 */ ++ { 3, TD, sys_readv, "readv" }, /* 65 */ ++ { 3, TD, sys_writev, "writev" }, /* 66 */ ++ { 5, TD, sys_pread, "pread64" }, /* 67 */ ++ { 5, TD, sys_pwrite, "pwrite64" }, /* 68 */ ++ { 5, TD, sys_preadv, "preadv" }, /* 69 */ ++ { 5, TD, sys_pwritev, "pwritev" }, /* 70 */ ++ { 4, TD|TN, sys_sendfile, "sendfile" }, /* 71 */ ++ { 6, TD, sys_pselect6, "pselect6" }, /* 72 */ ++ { 5, TD, sys_ppoll, "ppoll" }, /* 73 */ ++ { 4, TD|TS, sys_signalfd4, "signalfd4" }, /* 74 */ ++ { 4, TD, sys_vmsplice, "vmsplice" }, /* 75 */ ++ { 6, TD, sys_splice, "splice" }, /* 76 */ ++ { 4, TD, sys_tee, "tee" }, /* 77 */ ++ { 4, TD|TF, sys_readlinkat, "readlinkat" }, /* 78 */ ++ { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 79 */ ++ { 2, TD, sys_fstat, "fstat" }, /* 80 */ ++ { 0, 0, sys_sync, "sync" }, /* 81 */ ++ { 1, TD, sys_fsync, "fsync" }, /* 82 */ ++ { 1, TD, sys_fdatasync, "fdatasync" }, /* 83 */ ++ { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 84 */ ++ { 2, TD, sys_timerfd_create, "timerfd_create" }, /* 85 */ ++ { 4, TD, sys_timerfd_settime, "timerfd_settime" }, /* 86 */ ++ { 2, TD, sys_timerfd_gettime, "timerfd_gettime" }, /* 87 */ ++ { 4, TD|TF, sys_utimensat, "utimensat" }, /* 88 */ ++ { 1, TF, sys_acct, "acct" }, /* 89 */ ++ { 2, 0, sys_capget, "capget" }, /* 90 */ ++ { 2, 0, sys_capset, "capset" }, /* 91 */ ++ { 1, 0, sys_personality, "personality" }, /* 92 */ ++ { 1, TP, sys_exit, "exit" }, /* 93 */ ++ { 1, TP, sys_exit, "exit_group" }, /* 94 */ ++ { 5, TP, sys_waitid, "waitid" }, /* 95 */ ++ { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 96 */ ++ { 1, TP, sys_unshare, "unshare" }, /* 97 */ ++ { 6, 0, sys_futex, "futex" }, /* 98 */ ++ { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 99 */ ++ { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 100 */ ++ { 2, 0, sys_nanosleep, "nanosleep" }, /* 101 */ ++ { 2, 0, sys_getitimer, "getitimer" }, /* 102 */ ++ { 3, 0, sys_setitimer, "setitimer" }, /* 103 */ ++ { 4, 0, sys_kexec_load, "kexec_load" }, /* 104 */ ++ { 3, 0, sys_init_module, "init_module" }, /* 105 */ ++ { 2, 0, sys_delete_module, "delete_module" }, /* 106 */ ++ { 3, 0, sys_timer_create, "timer_create" }, /* 107 */ ++ { 2, 0, sys_timer_gettime, "timer_gettime" }, /* 108 */ ++ { 1, 0, sys_timer_getoverrun, "timer_getoverrun" }, /* 109 */ ++ { 4, 0, sys_timer_settime, "timer_settime" }, /* 110 */ ++ { 1, 0, sys_timer_delete, "timer_delete" }, /* 111 */ ++ { 2, 0, sys_clock_settime, "clock_settime" }, /* 112 */ ++ { 2, 0, sys_clock_gettime, "clock_gettime" }, /* 113 */ ++ { 2, 0, sys_clock_getres, "clock_getres" }, /* 114 */ ++ { 4, 0, sys_clock_nanosleep, "clock_nanosleep" }, /* 115 */ ++ { 3, 0, sys_syslog, "syslog" }, /* 116 */ ++ { 4, 0, sys_ptrace, "ptrace" }, /* 117 */ ++ { 0, 0, sys_sched_setparam, "sched_setparam" }, /* 118 */ ++ { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 119 */ ++ { 1, 0, sys_sched_getscheduler, "sched_getscheduler" }, /* 120 */ ++ { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 121 */ ++ { 3, 0, sys_sched_setaffinity, "sched_setaffinity" }, /* 122 */ ++ { 3, 0, sys_sched_getaffinity, "sched_getaffinity" }, /* 123 */ ++ { 0, 0, sys_sched_yield, "sched_yield" }, /* 124 */ ++ { 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 125 */ ++ { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 126 */ ++ { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 127 */ ++ { 0, 0, sys_restart_syscall, "restart_syscall" }, /* 128 */ ++ { 2, TS, sys_kill, "kill" }, /* 129 */ ++ { 2, TS, sys_kill, "tkill" }, /* 130 */ ++ { 3, TS, sys_tgkill, "tgkill" }, /* 131 */ ++ { 2, TS, sys_sigaltstack, "sigaltstack" }, /* 132 */ ++ { 2, TS, sys_rt_sigsuspend, "rt_sigsuspend" }, /* 133 */ ++ { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 134 */ ++ { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask" }, /* 135 */ ++ { 2, TS, sys_rt_sigpending, "rt_sigpending" }, /* 136 */ ++ { 4, TS, sys_rt_sigtimedwait, "rt_sigtimedwait" }, /* 137 */ ++ { 3, TS, sys_rt_sigqueueinfo, "rt_sigqueueinfo" }, /* 138 */ ++ { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 139 */ ++ { 3, 0, sys_setpriority, "setpriority" }, /* 140 */ ++ { 2, 0, sys_getpriority, "getpriority" }, /* 141 */ ++ { 4, 0, sys_reboot, "reboot" }, /* 142 */ ++ { 2, 0, sys_setregid, "setregid" }, /* 143 */ ++ { 1, 0, sys_setgid, "setgid" }, /* 144 */ ++ { 2, 0, sys_setreuid, "setreuid" }, /* 145 */ ++ { 1, 0, sys_setuid, "setuid" }, /* 146 */ ++ { 3, 0, sys_setresuid, "setresuid" }, /* 147 */ ++ { 3, 0, sys_getresuid, "getresuid" }, /* 148 */ ++ { 3, 0, sys_setresgid, "setresgid" }, /* 149 */ ++ { 3, 0, sys_getresgid, "getresgid" }, /* 150 */ ++ { 1, NF, sys_setfsuid, "setfsuid" }, /* 151 */ ++ { 1, NF, sys_setfsgid, "setfsgid" }, /* 152 */ ++ { 1, 0, sys_times, "times" }, /* 153 */ ++ { 2, 0, sys_setpgid, "setpgid" }, /* 154 */ ++ { 1, 0, sys_getpgid, "getpgid" }, /* 155 */ ++ { 1, 0, sys_getsid, "getsid" }, /* 156 */ ++ { 0, 0, sys_setsid, "setsid" }, /* 157 */ ++ { 2, 0, sys_getgroups, "getgroups" }, /* 158 */ ++ { 2, 0, sys_setgroups, "setgroups" }, /* 159 */ ++ { 1, 0, sys_uname, "uname" }, /* 160 */ ++ { 2, 0, sys_sethostname, "sethostname" }, /* 161 */ ++ { 2, 0, sys_setdomainname, "setdomainname" }, /* 162 */ ++ { 2, 0, sys_getrlimit, "getrlimit" }, /* 163 */ ++ { 2, 0, sys_setrlimit, "setrlimit" }, /* 164 */ ++ { 2, 0, sys_getrusage, "getrusage" }, /* 165 */ ++ { 1, 0, sys_umask, "umask" }, /* 166 */ ++ { 5, 0, sys_prctl, "prctl" }, /* 167 */ ++ { 3, 0, sys_getcpu, "getcpu" }, /* 168 */ ++ { 2, 0, sys_gettimeofday, "gettimeofday" }, /* 169 */ ++ { 2, 0, sys_settimeofday, "settimeofday" }, /* 170 */ ++ { 1, 0, sys_adjtimex, "adjtimex" }, /* 171 */ ++ { 0, 0, sys_getpid, "getpid" }, /* 172 */ ++ { 0, 0, sys_getppid, "getppid" }, /* 173 */ ++ { 0, NF, sys_getuid, "getuid" }, /* 174 */ ++ { 0, NF, sys_geteuid, "geteuid" }, /* 175 */ ++ { 0, NF, sys_getgid, "getgid" }, /* 176 */ ++ { 0, NF, sys_getegid, "getegid" }, /* 177 */ ++ { 0, 0, sys_gettid, "gettid" }, /* 178 */ ++ { 1, 0, sys_sysinfo, "sysinfo" }, /* 179 */ ++ { 4, 0, sys_mq_open, "mq_open" }, /* 180 */ ++ { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 181 */ ++ { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 182 */ ++ { 5, 0, sys_mq_timedreceive, "mq_timedreceive" }, /* 183 */ ++ { 2, 0, sys_mq_notify, "mq_notify" }, /* 184 */ ++ { 3, 0, sys_mq_getsetattr, "mq_getsetattr" }, /* 185 */ ++ { 4, TI, sys_msgget, "msgget" }, /* 186 */ ++ { 3, TI, sys_msgctl, "msgctl" }, /* 187 */ ++ { 5, TI, sys_msgrcv, "msgrcv" }, /* 188 */ ++ { 4, TI, sys_msgsnd, "msgsnd" }, /* 189 */ ++ { 4, TI, sys_semget, "semget" }, /* 190 */ ++ { 4, TI, sys_semctl, "semctl" }, /* 191 */ ++ { 5, TI, sys_semtimedop, "semtimedop" }, /* 192 */ ++ { 4, TI, sys_semop, "semop" }, /* 193 */ ++ { 4, TI, sys_shmget, "shmget" }, /* 194 */ ++ { 4, TI, sys_shmctl, "shmctl" }, /* 195 */ ++ { 4, TI, sys_shmat, "shmat" }, /* 196 */ ++ { 4, TI, sys_shmdt, "shmdt" }, /* 197 */ ++ { 3, TN, sys_socket, "socket" }, /* 198 */ ++ { 4, TN, sys_socketpair, "socketpair" }, /* 199 */ ++ { 3, TN, sys_bind, "bind" }, /* 200 */ ++ { 2, TN, sys_listen, "listen" }, /* 201 */ ++ { 3, TN, sys_accept, "accept" }, /* 202 */ ++ { 3, TN, sys_connect, "connect" }, /* 203 */ ++ { 3, TN, sys_getsockname, "getsockname" }, /* 204 */ ++ { 3, TN, sys_getpeername, "getpeername" }, /* 205 */ ++ { 6, TN, sys_sendto, "sendto" }, /* 206 */ ++ { 6, TN, sys_recvfrom, "recvfrom" }, /* 207 */ ++ { 5, TN, sys_setsockopt, "setsockopt" }, /* 208 */ ++ { 5, TN, sys_getsockopt, "getsockopt" }, /* 209 */ ++ { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ ++ { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ ++ { 5, TN, sys_recvmsg, "recvmsg" }, /* 212 */ ++ { 4, TD, sys_readahead, "readahead" }, /* 213 */ ++ { 1, TM, sys_brk, "brk" }, /* 214 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 215 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 216 */ ++ { 5, 0, sys_add_key, "add_key" }, /* 217 */ ++ { 4, 0, sys_request_key, "request_key" }, /* 218 */ ++ { 5, 0, sys_keyctl, "keyctl" }, /* 219 */ ++ { 5, TP, sys_clone, "clone" }, /* 220 */ ++ { 3, TF|TP, sys_execve, "execve" }, /* 221 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 222 */ ++ { 4, TD, sys_fadvise64, "fadvise64" }, /* 223 */ ++ { 2, TF, sys_swapon, "swapon" }, /* 224 */ ++ { 1, TF, sys_swapoff, "swapoff" }, /* 225 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 226 */ ++ { 3, TM, sys_msync, "msync" }, /* 227 */ ++ { 3, TM, sys_msync, "msync" }, /* 228 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 229 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 230 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 231 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 232 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 233 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 234 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 235 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 236 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 237 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 238 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 239 */ ++ { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" }, /* 240 */ ++ { 5, TD, sys_perf_event_open, "perf_event_open" }, /* 241 */ ++ { 4, TN, sys_accept4, "accept4" }, /* 242 */ ++ { 5, TN, sys_recvmmsg, "recvmmsg" }, /* 243 */ ++ ++ /* Arch-specific block, not used on AArch64 */ ++ [244 ... 259] = { }, ++ ++ { 4, TP, sys_wait4, "wait4" }, /* 260 */ ++ { 4, 0, sys_prlimit64, "prlimit64" }, /* 261 */ ++ { 2, TD, sys_fanotify_init, "fanotify_init" }, /* 262 */ ++ { 5, TD|TF, sys_fanotify_mark, "fanotify_mark" }, /* 263 */ ++ { 5, TD|TF, sys_name_to_handle_at, "name_to_handle_at" }, /* 264 */ ++ { 3, TD, sys_open_by_handle_at, "open_by_handle_at" }, /* 265 */ ++ { 2, 0, sys_clock_adjtime, "clock_adjtime" }, /* 266 */ ++ { 1, TD, sys_syncfs, "syncfs" }, /* 267 */ ++ { 2, TD, sys_setns, "setns" }, /* 268 */ ++ { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 269 */ ++ { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 270 */ ++ { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 271 */ ++ ++ /* Blank down to 1023 */ ++ [272 ... 1023] = { }, ++ ++ /* Quote from asm-generic/unistd.h: ++ * ++ * All syscalls below here should go away really, ++ * these are provided for both review and as a porting ++ * help for the C library version. ++ * ++ * Last chance: are any of these important enough to ++ * enable by default? ++ */ ++ ++ { 3, TD|TF, sys_open, "open" }, /* 1024 */ ++ { 2, TF, sys_link, "link" }, /* 1025 */ ++ { 1, TF, sys_unlink, "unlink" }, /* 1026 */ ++ { 3, TF, sys_mknod, "mknod" }, /* 1027 */ ++ { 2, TF, sys_chmod, "chmod" }, /* 1028 */ ++ { 3, TF, sys_chown, "chown" }, /* 1029 */ ++ { 2, TF, sys_mkdir, "mkdir" }, /* 1030 */ ++ { 1, TF, sys_rmdir, "rmdir" }, /* 1031 */ ++ { 3, TF, sys_chown, "lchown" }, /* 1032 */ ++ { 2, TF, sys_access, "access" }, /* 1033 */ ++ { 2, TF, sys_rename, "rename" }, /* 1034 */ ++ { 3, TF, sys_readlink, "readlink" }, /* 1035 */ ++ { 2, TF, sys_symlink, "symlink" }, /* 1036 */ ++ { 2, TF, sys_utimes, "utimes" }, /* 1037 */ ++ { 2, TF, sys_stat, "stat" }, /* 1038 */ ++ { 2, TF, sys_lstat, "lstat" }, /* 1039 */ ++ { 1, TD, sys_pipe, "pipe" }, /* 1040 */ ++ { 2, TD, sys_dup2, "dup2" }, /* 1041 */ ++ { 1, TD, sys_epoll_create, "epoll_create" }, /* 1042 */ ++ { 0, TD, sys_inotify_init, "inotify_init" }, /* 1043 */ ++ { 1, TD, sys_eventfd, "eventfd" }, /* 1044 */ ++ { 3, TD|TS, sys_signalfd, "signalfd" }, /* 1045 */ ++ { 4, TD|TN, sys_sendfile, "sendfile" }, /* 1046 */ ++ { 2, TD, sys_ftruncate, "ftruncate" }, /* 1047 */ ++ { 2, TF, sys_truncate, "truncate" }, /* 1048 */ ++ { 2, TF, sys_stat, "stat" }, /* 1049 */ ++ { 2, TF, sys_lstat, "lstat" }, /* 1050 */ ++ { 2, TD, sys_fstat, "fstat" }, /* 1051 */ ++ { 3, TD, sys_fcntl, "fcntl" }, /* 1052 */ ++ { 4, TD, sys_fadvise64, "fadvise64" }, /* 1053 */ ++ { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 1054 */ ++ { 2, TD, sys_fstatfs, "fstatfs" }, /* 1055 */ ++ { 2, TF, sys_statfs, "statfs" }, /* 1056 */ ++ { 3, TD, sys_lseek, "lseek" }, /* 1057 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 1058 */ ++ { 1, 0, sys_alarm, "alarm" }, /* 1059 */ ++ { 0, 0, sys_getpgrp, "getpgrp" }, /* 1060 */ ++ { 0, TS, sys_pause, "pause" }, /* 1061 */ ++ { 1, 0, sys_time, "time" }, /* 1062 */ ++ { 2, TF, sys_utime, "utime" }, /* 1063 */ ++ { 2, TD|TF, sys_creat, "creat" }, /* 1064 */ ++ { 3, TD, sys_getdents, "getdents" }, /* 1065 */ ++ { 3, TD|TF, sys_futimesat, "futimesat" }, /* 1066 */ ++ { 5, TD, sys_select, "select" }, /* 1067 */ ++ { 3, TD, sys_poll, "poll" }, /* 1068 */ ++ { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 1069 */ ++ { 2, 0, sys_ustat, "ustat" }, /* 1070 */ ++ { 0, TP, sys_vfork, "vfork" }, /* 1071 */ ++ { 4, TP, sys_wait4, "wait4" }, /* 1072 */ ++ { 6, TN, sys_recv, "recv" }, /* 1073 */ ++ { 4, TD|TN, sys_send, "send" }, /* 1074 */ ++ { 2, 0, sys_bdflush, "bdflush" }, /* 1075 */ ++ { 2, TF, sys_umount, "umount" }, /* 1076 */ ++ { 1, TF, sys_uselib, "uselib" }, /* 1077 */ ++ { 1, 0, sys_sysctl, "sysctl" }, /* 1078 */ ++ { 0, TP, sys_fork, "fork" }, /* 1079 */ +diff --git a/process.c b/process.c +index fa304e5..467c096 100644 +--- a/process.c ++++ b/process.c +@@ -2119,7 +2119,8 @@ const struct xlat struct_user_offsets[] = { + + #if !defined(SPARC) && !defined(HPPA) && !defined(POWERPC) \ + && !defined(ALPHA) && !defined(IA64) \ +- && !defined(CRISV10) && !defined(CRISV32) && !defined(MICROBLAZE) ++ && !defined(CRISV10) && !defined(CRISV32) && !defined(MICROBLAZE) \ ++ && !defined(AARCH64) + # if !defined(S390) && !defined(S390X) && !defined(MIPS) && !defined(SPARC64) && !defined(AVR32) && !defined(BFIN) && !defined(TILE) + { uoff(u_fpvalid), "offsetof(struct user, u_fpvalid)" }, + # endif +@@ -2148,7 +2149,7 @@ const struct xlat struct_user_offsets[] = { + # if !defined(SPARC64) + { uoff(u_ar0), "offsetof(struct user, u_ar0)" }, + # endif +-# if !defined(ARM) && !defined(AVR32) && !defined(MIPS) && !defined(S390) && !defined(S390X) && !defined(SPARC64) && !defined(BFIN) && !defined(TILE) ++# if !defined(ARM) && !defined(AARCH64) && !defined(AVR32) && !defined(MIPS) && !defined(S390) && !defined(S390X) && !defined(SPARC64) && !defined(BFIN) && !defined(TILE) + { uoff(u_fpstate), "offsetof(struct user, u_fpstate)" }, + # endif + { uoff(magic), "offsetof(struct user, magic)" }, +@@ -2158,7 +2159,7 @@ const struct xlat struct_user_offsets[] = { + # endif + #endif /* !defined(many arches) */ + +-#ifndef HPPA ++#if !defined(HPPA) && !defined(AARCH64) + { sizeof(struct user), "sizeof(struct user)" }, + #endif + { 0, NULL }, +diff --git a/syscall.c b/syscall.c +index 37936ad..680cbc3 100644 +--- a/syscall.c ++++ b/syscall.c +@@ -65,6 +65,12 @@ + # include <asm/rse.h> + #endif + ++#if defined(AARCH64) ++# include <asm/ptrace.h> ++# include <sys/uio.h> ++# include <elf.h> ++#endif ++ + #ifndef ERESTARTSYS + # define ERESTARTSYS 512 + #endif +@@ -657,6 +663,8 @@ static long d0; + static long r0; + #elif defined(ARM) + static struct pt_regs regs; ++#elif defined(AARCH64) ++static struct user_pt_regs regs; + #elif defined(ALPHA) + static long r0; + static long a3; +@@ -967,6 +975,13 @@ get_scno(struct tcb *tcp) + fprintf(stderr, "pid %d stray syscall entry\n", tcp->pid); + tcp->flags |= TCB_INSYSCALL; + } ++#elif defined(AARCH64) ++ struct iovec io; ++ io.iov_base = ®s; ++ io.iov_len = sizeof(regs); ++ if (ptrace(PTRACE_GETREGSET, tcp->pid, NT_PRSTATUS, (void *)&io) == -1) ++ return -1; ++ scno = regs.regs[8]; + #elif defined(M68K) + if (upeek(tcp, 4*PT_ORIG_D0, &scno) < 0) + return -1; +@@ -1403,6 +1418,9 @@ get_syscall_args(struct tcb *tcp) + #elif defined(ARM) + for (i = 0; i < nargs; ++i) + tcp->u_arg[i] = regs.uregs[i]; ++#elif defined(AARCH64) ++ for (i = 0; i < nargs; ++i) ++ tcp->u_arg[i] = regs.regs[i]; + #elif defined(AVR32) + (void)i; + (void)nargs; +@@ -1641,6 +1659,12 @@ get_syscall_result(struct tcb *tcp) + /* Read complete register set in one go. */ + if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) + return -1; ++#elif defined(AARCH64) ++ struct iovec io; ++ io.iov_base = ®s; ++ io.iov_len = sizeof(regs); ++ if (ptrace(PTRACE_GETREGSET, tcp->pid, NT_PRSTATUS, (void *)&io) == -1) ++ return -1; + #elif defined(M68K) + if (upeek(tcp, 4*PT_D0, &d0) < 0) + return -1; +@@ -1823,6 +1847,14 @@ get_error(struct tcb *tcp) + else { + tcp->u_rval = regs.ARM_r0; + } ++#elif defined(AARCH64) ++ if (check_errno && is_negated_errno(regs.regs[0])) { ++ tcp->u_rval = -1; ++ u_error = -regs.regs[0]; ++ } ++ else { ++ tcp->u_rval = regs.regs[0]; ++ } + #elif defined(AVR32) + if (check_errno && regs.r12 && (unsigned) -regs.r12 < nerrnos) { + tcp->u_rval = -1; +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0028-Enhance-quotactl-decoding.patch b/meta/recipes-devtools/strace/strace-4.7/0028-Enhance-quotactl-decoding.patch new file mode 100644 index 0000000000..b12bbf80b1 --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0028-Enhance-quotactl-decoding.patch @@ -0,0 +1,391 @@ +Upstream-Status: Backport + +From 7943966f6cd137e44f27d56aaf21b023fb1fae63 Mon Sep 17 00:00:00 2001 +From: "Dmitry V. Levin" <ldv@altlinux.org> +Date: Fri, 26 Oct 2012 23:43:13 +0000 +Subject: [PATCH 28/31] Enhance quotactl decoding + +* quota.c (sys_quotactl): Decode 2nd syscall argument using printpath. +* pathtrace.c (pathtrace_match): Add quotactl support. +* linux/*/syscallent.h: Add TF flag to quotactl entry. +--- + linux/aarch64/syscallent.h | 2 +- + linux/alpha/syscallent.h | 2 +- + linux/arm/syscallent.h | 2 +- + linux/avr32/syscallent.h | 2 +- + linux/bfin/syscallent.h | 2 +- + linux/hppa/syscallent.h | 2 +- + linux/i386/syscallent.h | 2 +- + linux/ia64/syscallent.h | 2 +- + linux/m68k/syscallent.h | 2 +- + linux/microblaze/syscallent.h | 2 +- + linux/mips/syscallent.h | 16 ++++++++-------- + linux/powerpc/syscallent.h | 2 +- + linux/s390/syscallent.h | 2 +- + linux/s390x/syscallent.h | 2 +- + linux/sh/syscallent.h | 2 +- + linux/sh64/syscallent.h | 2 +- + linux/sparc/syscallent.h | 2 +- + linux/tile/syscallent.h | 2 +- + linux/x32/syscallent.h | 2 +- + linux/x86_64/syscallent.h | 2 +- + pathtrace.c | 6 ++++++ + quota.c | 2 +- + 22 files changed, 34 insertions(+), 28 deletions(-) + +diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h +index eeda429..b712c9f 100644 +--- a/linux/aarch64/syscallent.h ++++ b/linux/aarch64/syscallent.h +@@ -58,7 +58,7 @@ + { 1, TD, sys_close, "close" }, /* 57 */ + { 0, 0, sys_vhangup, "vhangup" }, /* 58 */ + { 2, TD, sys_pipe2, "pipe2" }, /* 59 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 60 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 60 */ + { 3, TD, sys_getdents64, "getdents64" }, /* 61 */ + { 3, TD, sys_lseek, "lseek" }, /* 62 */ + { 3, TD, sys_read, "read" }, /* 63 */ +diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h +index aa76a43..dde7017 100644 +--- a/linux/alpha/syscallent.h ++++ b/linux/alpha/syscallent.h +@@ -174,7 +174,7 @@ + { 2, 0, sys_setrlimit, "setrlimit" }, /* 145 */ + { 5, 0, printargs, "osf_old_killpg" }, /* 146, not implemented */ + { 0, 0, sys_setsid, "setsid" }, /* 147 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 148 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 148 */ + { 5, 0, printargs, "osf_oldquota" }, /* 149, not implemented */ + { 3, TN, sys_getsockname, "getsockname" }, /* 150 */ + { 5, 0, NULL, NULL }, /* 151 */ +diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h +index 9b8da02..123b910 100644 +--- a/linux/arm/syscallent.h ++++ b/linux/arm/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, 0, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h +index 6076fca..b215cc1 100644 +--- a/linux/avr32/syscallent.h ++++ b/linux/avr32/syscallent.h +@@ -142,7 +142,7 @@ + { 0, TP, sys_vfork, "vfork" }, /* 114 */ + { 3, 0, sys_init_module, "init_module" }, /* 115 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 116 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 117 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 117 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 118 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 119 */ + { 3, 0, sys_sysfs, "sysfs" }, /* 120 */ +diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h +index 7a9e618..05194fb 100644 +--- a/linux/bfin/syscallent.h ++++ b/linux/bfin/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 1, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms" }, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h +index f21d0c3..dc12299 100644 +--- a/linux/hppa/syscallent.h ++++ b/linux/hppa/syscallent.h +@@ -133,7 +133,7 @@ + { 4, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms" }, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TF, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/i386/syscallent.h b/linux/i386/syscallent.h +index dd76244..1b7feb5 100644 +--- a/linux/i386/syscallent.h ++++ b/linux/i386/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h +index bbdfc36..8e130ad 100644 +--- a/linux/ia64/syscallent.h ++++ b/linux/ia64/syscallent.h +@@ -925,7 +925,7 @@ + { 2, 0, sys_delete_module, "delete_module" }, /* 1134 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 1135 */ + { 5, 0, sys_query_module, "query_module" }, /* 1136 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 1137 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 1137 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 1138 */ + { 3, 0, sys_sysfs, "sysfs" }, /* 1139 */ + { 1, 0, sys_personality, "personality" }, /* 1140 */ +diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h +index f95cf8d..184f01c 100644 +--- a/linux/m68k/syscallent.h ++++ b/linux/m68k/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, 0, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/microblaze/syscallent.h b/linux/microblaze/syscallent.h +index 51c5e6c..c5a52fa 100644 +--- a/linux/microblaze/syscallent.h ++++ b/linux/microblaze/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, 0, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/mips/syscallent.h b/linux/mips/syscallent.h +index 4c72763..df206ec 100644 +--- a/linux/mips/syscallent.h ++++ b/linux/mips/syscallent.h +@@ -1141,7 +1141,7 @@ + { 0, TM, printargs, "sysv_madvise" }, /* 1138 */ + { 0, 0, printargs, "sysv_pagelock" }, /* 1139 */ + { 0, 0, printargs, "sysv_getpagesize" }, /* 1140 */ +- { 0, 0, printargs, "sysv_quotactl" }, /* 1141 */ ++ { 0, TF, printargs, "sysv_quotactl" }, /* 1141 */ + { 0, 0, printargs, "sysv_libdetach" }, /* 1142 */ + { 0, 0, printargs, "sysv_BSDgetpgrp" }, /* 1143 */ + { 0, 0, printargs, "sysv_BSDsetpgrp" }, /* 1144 */ +@@ -2168,7 +2168,7 @@ + { 0, 0, printargs, "bsd43_getdomainname" }, /* 2165 */ + { 0, 0, printargs, "bsd43_setdomainname" }, /* 2166 */ + { 0, 0, printargs, "bsd43_pcfs_mount" }, /* 2167 */ +- { 0, 0, printargs, "bsd43_quotactl" }, /* 2168 */ ++ { 0, TF, printargs, "bsd43_quotactl" }, /* 2168 */ + { 0, 0, printargs, "bsd43_oldexportfs" }, /* 2169 */ + { 0, 0, printargs, "bsd43_smount" }, /* 2170 */ + { 0, 0, printargs, "bsd43_mipshwconf" }, /* 2171 */ +@@ -4133,7 +4133,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 4128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 4129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 4130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 4131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 4131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 4132 */ + { 1, TF, sys_fchdir, "fchdir" }, /* 4133 */ + { 2, 0, sys_bdflush, "bdflush" }, /* 4134 */ +@@ -4481,7 +4481,7 @@ + { 0, 0, printargs, "o32_init_module" }, /* 4128 */ + { 0, 0, printargs, "o32_delete_module" }, /* 4129 */ + { 0, 0, printargs, "o32_get_kernel_syms"}, /* 4130 */ +- { 0, 0, printargs, "o32_quotactl" }, /* 4131 */ ++ { 0, TF, printargs, "o32_quotactl" }, /* 4131 */ + { 0, 0, printargs, "o32_getpgid" }, /* 4132 */ + { 0, 0, printargs, "o32_fchdir" }, /* 4133 */ + { 0, 0, printargs, "o32_bdflush" }, /* 4134 */ +@@ -5525,7 +5525,7 @@ + { 1, 0, sys_delete_module, "delete_module" }, /* 5169 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 5170 */ + { 5, 0, sys_query_module, "query_module" }, /* 5171 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 5172 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 5172 */ + { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 5173 */ + { 5, TN, printargs, "getpmsg" }, /* 5174 */ + { 5, TN, printargs, "putpmsg" }, /* 5175 */ +@@ -5832,7 +5832,7 @@ + { 0, 0, printargs, "n64_delete_module" }, /* 5169 */ + { 0, 0, printargs, "n64_get_kernel_syms" }, /* 5170 */ + { 0, 0, printargs, "n64_query_module" }, /* 5171 */ +- { 0, 0, printargs, "n64_quotactl" }, /* 5172 */ ++ { 0, TF, printargs, "n64_quotactl" }, /* 5172 */ + { 0, 0, printargs, "n64_nfsservctl" }, /* 5173 */ + { 0, 0, printargs, "n64_getpmsg" }, /* 5174 */ + { 0, 0, printargs, "n64_putpmsg" }, /* 5175 */ +@@ -6836,7 +6836,7 @@ + { 1, 0, sys_delete_module, "delete_module" }, /* 6169 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 6170 */ + { 5, 0, sys_query_module, "query_module" }, /* 6171 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 6172 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 6172 */ + { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 6173 */ + { 5, TN, printargs, "getpmsg" }, /* 6174 */ + { 5, TN, printargs, "putpmsg" }, /* 6175 */ +@@ -7149,7 +7149,7 @@ + { 0, 0, printargs, "n32_delete_module" }, /* 6169 */ + { 0, 0, printargs, "n32_get_kernel_syms" }, /* 6170 */ + { 0, 0, printargs, "n32_query_module" }, /* 6171 */ +- { 0, 0, printargs, "n32_quotactl" }, /* 6172 */ ++ { 0, TF, printargs, "n32_quotactl" }, /* 6172 */ + { 0, 0, printargs, "n32_nfsservctl" }, /* 6173 */ + { 0, 0, printargs, "n32_getpmsg" }, /* 6174 */ + { 0, 0, printargs, "n32_putpmsg" }, /* 6175 */ +diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h +index 3228f97..e61946e 100644 +--- a/linux/powerpc/syscallent.h ++++ b/linux/powerpc/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms" }, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TF, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h +index 1ce0fe2..94f4d25 100644 +--- a/linux/s390/syscallent.h ++++ b/linux/s390/syscallent.h +@@ -159,7 +159,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h +index 7fa8ff5..ebf35d4 100644 +--- a/linux/s390x/syscallent.h ++++ b/linux/s390x/syscallent.h +@@ -158,7 +158,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h +index d9228b4..1546ff6 100644 +--- a/linux/sh/syscallent.h ++++ b/linux/sh/syscallent.h +@@ -159,7 +159,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h +index 39c13e0..4e20c47 100644 +--- a/linux/sh64/syscallent.h ++++ b/linux/sh64/syscallent.h +@@ -157,7 +157,7 @@ + { 3, 0, sys_init_module, "init_module" }, /* 128 */ + { 2, 0, sys_delete_module, "delete_module" }, /* 129 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 130 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 131 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 131 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 132 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 133 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 134 */ +diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h +index d6b518a..fe3a940 100644 +--- a/linux/sparc/syscallent.h ++++ b/linux/sparc/syscallent.h +@@ -163,7 +163,7 @@ + { 2, 0, printargs, "getdomainname" }, /* 162 */ + { 2, 0, sys_setdomainname,"setdomainname" }, /* 163 */ + { 5, 0, printargs, "utrap_install" }, /* 164 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 165 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 165 */ + { 1, 0, sys_set_tid_address,"set_tid_address" }, /* 166 */ + { 5, TF, sys_mount, "mount" }, /* 167 */ + { 2, 0, sys_ustat, "ustat" }, /* 168 */ +diff --git a/linux/tile/syscallent.h b/linux/tile/syscallent.h +index 89205e3..3bf59ae 100644 +--- a/linux/tile/syscallent.h ++++ b/linux/tile/syscallent.h +@@ -131,7 +131,7 @@ + { 3, TS, sys_sigprocmask, "sigprocmask" }, /* 130 */ + { 3, 0, sys_init_module, "init_module" }, /* 131 */ + { 1, 0, sys_delete_module, "delete_module" }, /* 132 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 133 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 133 */ + { 1, 0, sys_getpgid, "getpgid" }, /* 134 */ + { 1, TD, sys_fchdir, "fchdir" }, /* 135 */ + { 0, 0, sys_bdflush, "bdflush" }, /* 136 */ +diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h +index 924164e..cfe546c 100644 +--- a/linux/x32/syscallent.h ++++ b/linux/x32/syscallent.h +@@ -177,7 +177,7 @@ + { 2, 0, sys_delete_module, "delete_module" }, /* 176 */ + { 1, 0, printargs, "64:get_kernel_syms" }, /* 177 */ + { 5, 0, printargs, "64:query_module" }, /* 178 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 179 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 179 */ + { 3, 0, printargs, "64:nfsservctl" }, /* 180 */ + { 5, 0, sys_getpmsg, "getpmsg" }, /* 181 */ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 182 */ +diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h +index 2ce663f..f98cd37 100644 +--- a/linux/x86_64/syscallent.h ++++ b/linux/x86_64/syscallent.h +@@ -177,7 +177,7 @@ + { 2, 0, sys_delete_module, "delete_module" }, /* 176 */ + { 1, 0, sys_get_kernel_syms, "get_kernel_syms"}, /* 177 */ + { 5, 0, sys_query_module, "query_module" }, /* 178 */ +- { 4, 0, sys_quotactl, "quotactl" }, /* 179 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 179 */ + { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 180 */ + { 5, 0, sys_getpmsg, "getpmsg" }, /* 181 */ + { 5, 0, sys_putpmsg, "putpmsg" }, /* 182 */ +diff --git a/pathtrace.c b/pathtrace.c +index c000c83..12e47e9 100644 +--- a/pathtrace.c ++++ b/pathtrace.c +@@ -213,6 +213,12 @@ pathtrace_match(struct tcb *tcp) + upathmatch(tcp, tcp->u_arg[1]); + } + ++ if (s->sys_func == sys_quotactl) ++ { ++ /* x, path */ ++ return upathmatch(tcp, tcp->u_arg[1]); ++ } ++ + if (s->sys_func == sys_renameat || + s->sys_func == sys_linkat) + { +diff --git a/quota.c b/quota.c +index a1fd92d..780abf9 100644 +--- a/quota.c ++++ b/quota.c +@@ -617,7 +617,7 @@ sys_quotactl(struct tcb *tcp) + tprints("|"); + printxval(quotatypes, type, "???QUOTA"); + tprints(", "); +- printstr(tcp, tcp->u_arg[1], -1); ++ printpath(tcp, tcp->u_arg[1]); + tprints(", "); + switch (cmd) { + case Q_V1_QUOTAON: +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0029-Filter-out-redundant-32-ioctl-entries.patch b/meta/recipes-devtools/strace/strace-4.7/0029-Filter-out-redundant-32-ioctl-entries.patch new file mode 100644 index 0000000000..de9440dcbb --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0029-Filter-out-redundant-32-ioctl-entries.patch @@ -0,0 +1,145 @@ +Upstream-Status: Backport + +From 17e3860ee8684b397b99eea59b6458a8a7b88f5c Mon Sep 17 00:00:00 2001 +From: "Dmitry V. Levin" <ldv@altlinux.org> +Date: Sat, 27 Oct 2012 01:11:13 +0000 +Subject: [PATCH 29/31] Filter out redundant "*32" ioctl entries + +* linux/ioctlent-filter.awk: New file. +* Makefile.am: Use it. +* linux/ioctlent.h.in: Removed redundant "*32" entries. +--- + Makefile.am | 3 ++- + linux/ioctlent-filter.awk | 19 +++++++++++++++++++ + linux/ioctlent.h.in | 14 -------------- + 3 files changed, 21 insertions(+), 15 deletions(-) + create mode 100644 linux/ioctlent-filter.awk + +diff --git a/Makefile.am b/Makefile.am +index 3e8c810..aa1a5f4 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -151,4 +151,5 @@ $(ioctlent_h): $(top_builddir)/config.status $(ioctlent_h_deps) + $(MKDIR_P) $(builddir)/$(OS) + cat $(ioctlent_h_deps) | \ + $(COMPILE) -E -P - | \ +- LC_ALL=C sort -u -k3,3 -k2,2 > $@ ++ LC_ALL=C sort -u -k3,3 -k2,2 | \ ++ awk -f $(srcdir)/linux/ioctlent-filter.awk > $@ +diff --git a/linux/ioctlent-filter.awk b/linux/ioctlent-filter.awk +new file mode 100644 +index 0000000..181c4bf +--- /dev/null ++++ b/linux/ioctlent-filter.awk +@@ -0,0 +1,19 @@ ++#!/bin/awk -f ++# Filter out redundant "*32" symbols. ++ ++BEGIN { ++ s="" ++ c="" ++} ++ ++NF == 3 && $2 ~ /^"[^",]*",$/ { ++ if ($2 == s && $3 == c) ++ next ++ s = $2 ++ sub(/",$/, "32\",", s) ++ c = $3 ++} ++ ++{ ++ print ++} +diff --git a/linux/ioctlent.h.in b/linux/ioctlent.h.in +index 98ebbcc..895070c 100644 +--- a/linux/ioctlent.h.in ++++ b/linux/ioctlent.h.in +@@ -103,7 +103,6 @@ + {"linux/fs.h", "BLKBSZSET", 0x1271}, + {"linux/fs.h", "BLKGETSIZE64", 0x1272}, + {"linux/fs.h", "BLKTRACESETUP", 0x1273}, +- {"linux/blktrace_api.h", "BLKTRACESETUP32", 0x1273}, + {"linux/fs.h", "BLKTRACESTART", 0x1274}, + {"linux/fs.h", "BLKTRACESTOP", 0x1275}, + {"linux/fs.h", "BLKTRACETEARDOWN", 0x1276}, +@@ -257,14 +256,12 @@ + {"linux/cciss_ioctl.h", "CCISS_GETDRIVVER", 0x4209}, + {"linux/cciss_ioctl.h", "CCISS_REVALIDVOLS", 0x420a}, + {"linux/cciss_ioctl.h", "CCISS_PASSTHRU", 0x420b}, +- {"linux/cciss_ioctl.h", "CCISS_PASSTHRU32", 0x420b}, + {"linux/cciss_ioctl.h", "CCISS_DEREGDISK", 0x420c}, + {"linux/cciss_ioctl.h", "CCISS_REGNEWDISK", 0x420d}, + {"linux/cciss_ioctl.h", "CCISS_REGNEWD", 0x420e}, + {"linux/cciss_ioctl.h", "CCISS_RESCANDISK", 0x4210}, + {"linux/cciss_ioctl.h", "CCISS_GETLUNINFO", 0x4211}, + {"linux/cciss_ioctl.h", "CCISS_BIG_PASSTHRU", 0x4212}, +- {"linux/cciss_ioctl.h", "CCISS_BIG_PASSTHRU32", 0x4212}, + {"linux/soundcard.h", "SNDCTL_COPR_RESET", 0x4300}, + {"linux/capi.h", "CAPI_REGISTER", 0x4301}, + {"linux/soundcard.h", "SNDCTL_COPR_LOAD", 0x4301}, +@@ -775,25 +772,19 @@ + {"linux/if_tun.h", "TUNSETVNETHDRSZ", 0x54d8}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_PVERSION", 0x5500}, + {"linux/usbdevice_fs.h", "USBDEVFS_CONTROL", 0x5500}, +- {"linux/usbdevice_fs.h", "USBDEVFS_CONTROL32", 0x5500}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_CARD_INFO", 0x5501}, + {"linux/uinput.h", "UI_DEV_CREATE", 0x5501}, + {"linux/uinput.h", "UI_DEV_DESTROY", 0x5502}, + {"linux/usbdevice_fs.h", "USBDEVFS_BULK", 0x5502}, +- {"linux/usbdevice_fs.h", "USBDEVFS_BULK32", 0x5502}, + {"linux/usbdevice_fs.h", "USBDEVFS_RESETEP", 0x5503}, + {"linux/usbdevice_fs.h", "USBDEVFS_SETINTERFACE", 0x5504}, + {"linux/usbdevice_fs.h", "USBDEVFS_SETCONFIGURATION", 0x5505}, + {"linux/usbdevice_fs.h", "USBDEVFS_GETDRIVER", 0x5508}, + {"linux/usbdevice_fs.h", "USBDEVFS_SUBMITURB", 0x550a}, +- {"linux/usbdevice_fs.h", "USBDEVFS_SUBMITURB32", 0x550a}, + {"linux/usbdevice_fs.h", "USBDEVFS_DISCARDURB", 0x550b}, + {"linux/usbdevice_fs.h", "USBDEVFS_REAPURB", 0x550c}, +- {"linux/usbdevice_fs.h", "USBDEVFS_REAPURB32", 0x550c}, + {"linux/usbdevice_fs.h", "USBDEVFS_REAPURBNDELAY", 0x550d}, +- {"linux/usbdevice_fs.h", "USBDEVFS_REAPURBNDELAY32", 0x550d}, + {"linux/usbdevice_fs.h", "USBDEVFS_DISCSIGNAL", 0x550e}, +- {"linux/usbdevice_fs.h", "USBDEVFS_DISCSIGNAL32", 0x550e}, + {"linux/usbdevice_fs.h", "USBDEVFS_CLAIMINTERFACE", 0x550f}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_ELEM_LIST", 0x5510}, + {"linux/usbdevice_fs.h", "USBDEVFS_RELEASEINTERFACE", 0x5510}, +@@ -801,7 +792,6 @@ + {"linux/usbdevice_fs.h", "USBDEVFS_CONNECTINFO", 0x5511}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_ELEM_READ", 0x5512}, + {"linux/usbdevice_fs.h", "USBDEVFS_IOCTL", 0x5512}, +- {"linux/usbdevice_fs.h", "USBDEVFS_IOCTL32", 0x5512}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_ELEM_WRITE", 0x5513}, + {"linux/usbdevice_fs.h", "USBDEVFS_HUB_PORTINFO", 0x5513}, + {"sound/asound.h", "SNDRV_CTL_IOCTL_ELEM_LOCK", 0x5514}, +@@ -1119,7 +1109,6 @@ + {"linux/ipmi.h", "IPMICTL_RECEIVE_MSG_TRUNC", 0x690b}, + {"media/lirc.h", "LIRC_GET_MAX_FILTER_PULSE", 0x690b}, + {"linux/i2o-dev.h", "I2OPASSTHRU", 0x690c}, +- {"linux/i2o-dev.h", "I2OPASSTHRU32", 0x690c}, + {"linux/ipmi.h", "IPMICTL_RECEIVE_MSG", 0x690c}, + {"media/lirc.h", "LIRC_GET_MIN_FILTER_SPACE", 0x690c}, + {"linux/ipmi.h", "IPMICTL_SEND_COMMAND", 0x690d}, +@@ -1194,11 +1183,9 @@ + {"linux/udf_fs_i.h", "UDF_GETVOLIDENT", 0x6c42}, + {"linux/udf_fs_i.h", "UDF_RELOCATE_BLOCKS", 0x6c43}, + {"linux/synclink.h", "MGSL_IOCSPARAMS", 0x6d00}, +- {"linux/synclink.h", "MGSL_IOCSPARAMS32", 0x6d00}, + {"linux/mmtimer.h", "MMTIMER_GETOFFSET", 0x6d00}, + {"linux/soundcard.h", "SNDCTL_MIDI_PRETIME", 0x6d00}, + {"linux/synclink.h", "MGSL_IOCGPARAMS", 0x6d01}, +- {"linux/synclink.h", "MGSL_IOCGPARAMS32", 0x6d01}, + {"linux/mmtimer.h", "MMTIMER_GETRES", 0x6d01}, + {"linux/msm_mdp.h", "MSMFB_GRP_DISP", 0x6d01}, + {"linux/mtio.h", "MTIOCTOP", 0x6d01}, +@@ -1754,7 +1741,6 @@ + {"linux/auto_fs.h", "AUTOFS_IOC_CATATONIC", 0x9362}, + {"linux/auto_fs.h", "AUTOFS_IOC_PROTOVER", 0x9363}, + {"linux/auto_fs.h", "AUTOFS_IOC_SETTIMEOUT", 0x9364}, +- {"linux/auto_fs.h", "AUTOFS_IOC_SETTIMEOUT32", 0x9364}, + {"linux/auto_fs.h", "AUTOFS_IOC_EXPIRE", 0x9365}, + {"linux/auto_fs4.h", "AUTOFS_IOC_EXPIRE_MULTI", 0x9366}, + {"linux/auto_fs4.h", "AUTOFS_IOC_PROTOSUBVER", 0x9367}, +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0030-Move-asm-generic-ioctl-definitions-to-linux-ioctlent.patch b/meta/recipes-devtools/strace/strace-4.7/0030-Move-asm-generic-ioctl-definitions-to-linux-ioctlent.patch new file mode 100644 index 0000000000..02064f2687 --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0030-Move-asm-generic-ioctl-definitions-to-linux-ioctlent.patch @@ -0,0 +1,571 @@ +Upstream-Status: Backport + +From 716c93ecf8edc5dda092d4fa4d878f333a601b51 Mon Sep 17 00:00:00 2001 +From: "Dmitry V. Levin" <ldv@altlinux.org> +Date: Mon, 12 Nov 2012 14:04:46 +0000 +Subject: [PATCH 30/31] Move asm-generic ioctl definitions to + linux/ioctlent.h.in + +* linux/ioctlent.h.in: Add asm-generic ioctl entries from all +linux/*/ioctlent.h.in files. +* linux/bfin/ioctlent.h.in: Remove asm-generic ioctl entries. +* linux/i386/ioctlent.h.in: Likewise. +* linux/powerpc/ioctlent.h.in: Likewise. +* linux/s390/ioctlent.h.in: Likewise. +* linux/sparc/ioctlent.h.in: Likewise. +--- + linux/bfin/ioctlent.h.in | 78 ------------------------------------------- + linux/i386/ioctlent.h.in | 77 ------------------------------------------- + linux/ioctlent.h.in | 80 +++++++++++++++++++++++++++++++++++++++++++++ + linux/powerpc/ioctlent.h.in | 30 ----------------- + linux/s390/ioctlent.h.in | 76 ------------------------------------------ + linux/sparc/ioctlent.h.in | 53 ------------------------------ + 6 files changed, 80 insertions(+), 314 deletions(-) + +diff --git a/linux/bfin/ioctlent.h.in b/linux/bfin/ioctlent.h.in +index 3773544..791d8e3 100644 +--- a/linux/bfin/ioctlent.h.in ++++ b/linux/bfin/ioctlent.h.in +@@ -1,86 +1,8 @@ + {"asm/bfin_sport.h", "SPORT_IOC_CONFIG", 0x5001}, + {"asm/bfin_sport.h", "SPORT_IOC_GET_SYSTEMCLOCK", 0x5002}, + {"asm/bfin_sport.h", "SPORT_IOC_SET_BAUDRATE", 0x5003}, +- {"asm-generic/ioctls.h", "TCGETS", 0x5401}, +- {"asm-generic/ioctls.h", "TCSETS", 0x5402}, +- {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, +- {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, +- {"asm-generic/ioctls.h", "TCGETA", 0x5405}, +- {"asm-generic/ioctls.h", "TCSETA", 0x5406}, +- {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, +- {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, +- {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, +- {"asm-generic/ioctls.h", "TCXONC", 0x540a}, +- {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, +- {"asm-generic/ioctls.h", "TIOCEXCL", 0x540c}, +- {"asm-generic/ioctls.h", "TIOCNXCL", 0x540d}, +- {"asm-generic/ioctls.h", "TIOCSCTTY", 0x540e}, +- {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, +- {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, +- {"asm-generic/ioctls.h", "TIOCSTI", 0x5412}, +- {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, +- {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, +- {"asm-generic/ioctls.h", "TIOCMGET", 0x5415}, +- {"asm-generic/ioctls.h", "TIOCMBIS", 0x5416}, +- {"asm-generic/ioctls.h", "TIOCMBIC", 0x5417}, +- {"asm-generic/ioctls.h", "TIOCMSET", 0x5418}, +- {"asm-generic/ioctls.h", "TIOCGSOFTCAR", 0x5419}, +- {"asm-generic/ioctls.h", "TIOCSSOFTCAR", 0x541a}, +- {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, +- {"asm-generic/ioctls.h", "TIOCLINUX", 0x541c}, +- {"asm-generic/ioctls.h", "TIOCCONS", 0x541d}, +- {"asm-generic/ioctls.h", "TIOCGSERIAL", 0x541e}, +- {"asm-generic/ioctls.h", "TIOCSSERIAL", 0x541f}, +- {"asm-generic/ioctls.h", "TIOCPKT", 0x5420}, +- {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, +- {"asm-generic/ioctls.h", "TIOCNOTTY", 0x5422}, +- {"asm-generic/ioctls.h", "TIOCSETD", 0x5423}, +- {"asm-generic/ioctls.h", "TIOCGETD", 0x5424}, +- {"asm-generic/ioctls.h", "TCSBRKP", 0x5425}, +- {"asm-generic/ioctls.h", "TIOCTTYGSTRUCT", 0x5426}, +- {"asm-generic/ioctls.h", "TIOCSBRK", 0x5427}, +- {"asm-generic/ioctls.h", "TIOCCBRK", 0x5428}, +- {"asm-generic/ioctls.h", "TIOCGSID", 0x5429}, +- {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, +- {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, +- {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, +- {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, +- {"asm-generic/ioctls.h", "TIOCGRS485", 0x542e}, +- {"asm-generic/ioctls.h", "TIOCSRS485", 0x542f}, +- {"asm-generic/ioctls.h", "TIOCGPTN", 0x5430}, +- {"asm-generic/ioctls.h", "TIOCSPTLCK", 0x5431}, +- {"asm-generic/ioctls.h", "TCGETX", 0x5432}, +- {"asm-generic/ioctls.h", "TCSETX", 0x5433}, +- {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, +- {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, +- {"asm-generic/ioctls.h", "TIOCSIG", 0x5436}, +- {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, +- {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, +- {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, +- {"asm-generic/ioctls.h", "TIOCSERCONFIG", 0x5453}, +- {"asm-generic/ioctls.h", "TIOCSERGWILD", 0x5454}, +- {"asm-generic/ioctls.h", "TIOCSERSWILD", 0x5455}, +- {"asm-generic/ioctls.h", "TIOCGLCKTRMIOS", 0x5456}, +- {"asm-generic/ioctls.h", "TIOCSLCKTRMIOS", 0x5457}, +- {"asm-generic/ioctls.h", "TIOCSERGSTRUCT", 0x5458}, +- {"asm-generic/ioctls.h", "TIOCSERGETLSR", 0x5459}, +- {"asm-generic/ioctls.h", "TIOCSERGETMULTI", 0x545a}, +- {"asm-generic/ioctls.h", "TIOCSERSETMULTI", 0x545b}, +- {"asm-generic/ioctls.h", "TIOCMIWAIT", 0x545c}, +- {"asm-generic/ioctls.h", "TIOCGICOUNT", 0x545d}, + {"asm/ioctls.h", "FIOQSIZE", 0x545e}, +- {"asm-generic/ioctls.h", "TIOCGHAYESESP", 0x545e}, +- {"asm-generic/ioctls.h", "TIOCSHAYESESP", 0x545f}, +- {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"asm/bfin_simple_timer.h", "BFIN_SIMPLE_TIMER_SET_PERIOD", 0x7402}, + {"asm/bfin_simple_timer.h", "BFIN_SIMPLE_TIMER_START", 0x7406}, + {"asm/bfin_simple_timer.h", "BFIN_SIMPLE_TIMER_STOP", 0x7408}, + {"asm/bfin_simple_timer.h", "BFIN_SIMPLE_TIMER_READ", 0x740a}, +- {"asm-generic/sockios.h", "FIOSETOWN", 0x8901}, +- {"asm-generic/sockios.h", "SIOCSPGRP", 0x8902}, +- {"asm-generic/sockios.h", "FIOGETOWN", 0x8903}, +- {"asm-generic/sockios.h", "SIOCGPGRP", 0x8904}, +- {"asm-generic/sockios.h", "SIOCATMARK", 0x8905}, +- {"asm-generic/sockios.h", "SIOCGSTAMP", 0x8906}, +- {"asm-generic/sockios.h", "SIOCGSTAMPNS", 0x8907}, +diff --git a/linux/i386/ioctlent.h.in b/linux/i386/ioctlent.h.in +index 9a90ec8..449ad40 100644 +--- a/linux/i386/ioctlent.h.in ++++ b/linux/i386/ioctlent.h.in +@@ -11,82 +11,5 @@ + {"asm/mtrr.h", "MTRRIOC_DEL_PAGE_ENTRY", 0x4d07}, + {"asm/mtrr.h", "MTRRIOC_GET_PAGE_ENTRY", 0x4d08}, + {"asm/mtrr.h", "MTRRIOC_KILL_PAGE_ENTRY", 0x4d09}, +- {"asm-generic/ioctls.h", "TCGETS", 0x5401}, +- {"asm-generic/ioctls.h", "TCSETS", 0x5402}, +- {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, +- {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, +- {"asm-generic/ioctls.h", "TCGETA", 0x5405}, +- {"asm-generic/ioctls.h", "TCSETA", 0x5406}, +- {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, +- {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, +- {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, +- {"asm-generic/ioctls.h", "TCXONC", 0x540a}, +- {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, +- {"asm-generic/ioctls.h", "TIOCEXCL", 0x540c}, +- {"asm-generic/ioctls.h", "TIOCNXCL", 0x540d}, +- {"asm-generic/ioctls.h", "TIOCSCTTY", 0x540e}, +- {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, +- {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, +- {"asm-generic/ioctls.h", "TIOCSTI", 0x5412}, +- {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, +- {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, +- {"asm-generic/ioctls.h", "TIOCMGET", 0x5415}, +- {"asm-generic/ioctls.h", "TIOCMBIS", 0x5416}, +- {"asm-generic/ioctls.h", "TIOCMBIC", 0x5417}, +- {"asm-generic/ioctls.h", "TIOCMSET", 0x5418}, +- {"asm-generic/ioctls.h", "TIOCGSOFTCAR", 0x5419}, +- {"asm-generic/ioctls.h", "TIOCSSOFTCAR", 0x541a}, +- {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, +- {"asm-generic/ioctls.h", "TIOCLINUX", 0x541c}, +- {"asm-generic/ioctls.h", "TIOCCONS", 0x541d}, +- {"asm-generic/ioctls.h", "TIOCGSERIAL", 0x541e}, +- {"asm-generic/ioctls.h", "TIOCSSERIAL", 0x541f}, +- {"asm-generic/ioctls.h", "TIOCPKT", 0x5420}, +- {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, +- {"asm-generic/ioctls.h", "TIOCNOTTY", 0x5422}, +- {"asm-generic/ioctls.h", "TIOCSETD", 0x5423}, +- {"asm-generic/ioctls.h", "TIOCGETD", 0x5424}, +- {"asm-generic/ioctls.h", "TCSBRKP", 0x5425}, +- {"asm-generic/ioctls.h", "TIOCSBRK", 0x5427}, +- {"asm-generic/ioctls.h", "TIOCCBRK", 0x5428}, +- {"asm-generic/ioctls.h", "TIOCGSID", 0x5429}, +- {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, +- {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, +- {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, +- {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, +- {"asm-generic/ioctls.h", "TIOCGRS485", 0x542e}, +- {"asm-generic/ioctls.h", "TIOCSRS485", 0x542f}, +- {"asm-generic/ioctls.h", "TIOCGPTN", 0x5430}, +- {"asm-generic/ioctls.h", "TIOCSPTLCK", 0x5431}, +- {"asm-generic/ioctls.h", "TCGETX", 0x5432}, +- {"asm-generic/ioctls.h", "TIOCGDEV", 0x5432}, +- {"asm-generic/ioctls.h", "TCSETX", 0x5433}, +- {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, +- {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, +- {"asm-generic/ioctls.h", "TIOCSIG", 0x5436}, +- {"asm-generic/ioctls.h", "TIOCVHANGUP", 0x5437}, +- {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, +- {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, +- {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, +- {"asm-generic/ioctls.h", "TIOCSERCONFIG", 0x5453}, +- {"asm-generic/ioctls.h", "TIOCSERGWILD", 0x5454}, +- {"asm-generic/ioctls.h", "TIOCSERSWILD", 0x5455}, +- {"asm-generic/ioctls.h", "TIOCGLCKTRMIOS", 0x5456}, +- {"asm-generic/ioctls.h", "TIOCSLCKTRMIOS", 0x5457}, +- {"asm-generic/ioctls.h", "TIOCSERGSTRUCT", 0x5458}, +- {"asm-generic/ioctls.h", "TIOCSERGETLSR", 0x5459}, +- {"asm-generic/ioctls.h", "TIOCSERGETMULTI", 0x545a}, +- {"asm-generic/ioctls.h", "TIOCSERSETMULTI", 0x545b}, +- {"asm-generic/ioctls.h", "TIOCMIWAIT", 0x545c}, +- {"asm-generic/ioctls.h", "TIOCGICOUNT", 0x545d}, +- {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"asm/msr.h", "X86_IOC_RDMSR_REGS", 0x63a0}, + {"asm/msr.h", "X86_IOC_WRMSR_REGS", 0x63a1}, +- {"asm-generic/sockios.h", "FIOSETOWN", 0x8901}, +- {"asm-generic/sockios.h", "SIOCSPGRP", 0x8902}, +- {"asm-generic/sockios.h", "FIOGETOWN", 0x8903}, +- {"asm-generic/sockios.h", "SIOCGPGRP", 0x8904}, +- {"asm-generic/sockios.h", "SIOCATMARK", 0x8905}, +- {"asm-generic/sockios.h", "SIOCGSTAMP", 0x8906}, +- {"asm-generic/sockios.h", "SIOCGSTAMPNS", 0x8907}, +diff --git a/linux/ioctlent.h.in b/linux/ioctlent.h.in +index 895070c..8843b47 100644 +--- a/linux/ioctlent.h.in ++++ b/linux/ioctlent.h.in +@@ -734,21 +734,94 @@ + {"sound/asound.h", "SNDRV_TIMER_IOCTL_PVERSION", 0x5400}, + {"linux/soundcard.h", "SNDCTL_TMR_TIMEBASE", 0x5401}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_NEXT_DEVICE", 0x5401}, ++ {"asm-generic/ioctls.h", "TCGETS", 0x5401}, + {"linux/soundcard.h", "SNDCTL_TMR_START", 0x5402}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_TREAD", 0x5402}, ++ {"asm-generic/ioctls.h", "TCSETS", 0x5402}, + {"linux/soundcard.h", "SNDCTL_TMR_STOP", 0x5403}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_GINFO", 0x5403}, ++ {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, + {"linux/soundcard.h", "SNDCTL_TMR_CONTINUE", 0x5404}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_GPARAMS", 0x5404}, ++ {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, + {"linux/soundcard.h", "SNDCTL_TMR_TEMPO", 0x5405}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_GSTATUS", 0x5405}, ++ {"asm-generic/ioctls.h", "TCGETA", 0x5405}, + {"linux/soundcard.h", "SNDCTL_TMR_SOURCE", 0x5406}, ++ {"asm-generic/ioctls.h", "TCSETA", 0x5406}, + {"linux/soundcard.h", "SNDCTL_TMR_METRONOME", 0x5407}, ++ {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, + {"linux/soundcard.h", "SNDCTL_TMR_SELECT", 0x5408}, ++ {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, ++ {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, ++ {"asm-generic/ioctls.h", "TCXONC", 0x540a}, ++ {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, ++ {"asm-generic/ioctls.h", "TIOCEXCL", 0x540c}, ++ {"asm-generic/ioctls.h", "TIOCNXCL", 0x540d}, ++ {"asm-generic/ioctls.h", "TIOCSCTTY", 0x540e}, ++ {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_SELECT", 0x5410}, ++ {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_INFO", 0x5411}, ++ {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_PARAMS", 0x5412}, ++ {"asm-generic/ioctls.h", "TIOCSTI", 0x5412}, ++ {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_STATUS", 0x5414}, ++ {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, ++ {"asm-generic/ioctls.h", "TIOCMGET", 0x5415}, ++ {"asm-generic/ioctls.h", "TIOCMBIS", 0x5416}, ++ {"asm-generic/ioctls.h", "TIOCMBIC", 0x5417}, ++ {"asm-generic/ioctls.h", "TIOCMSET", 0x5418}, ++ {"asm-generic/ioctls.h", "TIOCGSOFTCAR", 0x5419}, ++ {"asm-generic/ioctls.h", "TIOCSSOFTCAR", 0x541a}, ++ {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, ++ {"asm-generic/ioctls.h", "TIOCLINUX", 0x541c}, ++ {"asm-generic/ioctls.h", "TIOCCONS", 0x541d}, ++ {"asm-generic/ioctls.h", "TIOCGSERIAL", 0x541e}, ++ {"asm-generic/ioctls.h", "TIOCSSERIAL", 0x541f}, ++ {"asm-generic/ioctls.h", "TIOCPKT", 0x5420}, ++ {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, ++ {"asm-generic/ioctls.h", "TIOCNOTTY", 0x5422}, ++ {"asm-generic/ioctls.h", "TIOCSETD", 0x5423}, ++ {"asm-generic/ioctls.h", "TIOCGETD", 0x5424}, ++ {"asm-generic/ioctls.h", "TCSBRKP", 0x5425}, ++ {"asm-generic/ioctls.h", "TIOCTTYGSTRUCT", 0x5426}, ++ {"asm-generic/ioctls.h", "TIOCSBRK", 0x5427}, ++ {"asm-generic/ioctls.h", "TIOCCBRK", 0x5428}, ++ {"asm-generic/ioctls.h", "TIOCGSID", 0x5429}, ++ {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, ++ {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, ++ {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, ++ {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, ++ {"asm-generic/ioctls.h", "TIOCGRS485", 0x542e}, ++ {"asm-generic/ioctls.h", "TIOCSRS485", 0x542f}, ++ {"asm-generic/ioctls.h", "TIOCGPTN", 0x5430}, ++ {"asm-generic/ioctls.h", "TIOCSPTLCK", 0x5431}, ++ {"asm-generic/ioctls.h", "TCGETX", 0x5432}, ++ {"asm-generic/ioctls.h", "TIOCGDEV", 0x5432}, ++ {"asm-generic/ioctls.h", "TCSETX", 0x5433}, ++ {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, ++ {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, ++ {"asm-generic/ioctls.h", "TIOCSIG", 0x5436}, ++ {"asm-generic/ioctls.h", "TIOCVHANGUP", 0x5437}, ++ {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, ++ {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, ++ {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, ++ {"asm-generic/ioctls.h", "TIOCSERCONFIG", 0x5453}, ++ {"asm-generic/ioctls.h", "TIOCSERGWILD", 0x5454}, ++ {"asm-generic/ioctls.h", "TIOCSERSWILD", 0x5455}, ++ {"asm-generic/ioctls.h", "TIOCGLCKTRMIOS", 0x5456}, ++ {"asm-generic/ioctls.h", "TIOCSLCKTRMIOS", 0x5457}, ++ {"asm-generic/ioctls.h", "TIOCSERGSTRUCT", 0x5458}, ++ {"asm-generic/ioctls.h", "TIOCSERGETLSR", 0x5459}, ++ {"asm-generic/ioctls.h", "TIOCSERGETMULTI", 0x545a}, ++ {"asm-generic/ioctls.h", "TIOCSERSETMULTI", 0x545b}, ++ {"asm-generic/ioctls.h", "TIOCMIWAIT", 0x545c}, ++ {"asm-generic/ioctls.h", "TIOCGICOUNT", 0x545d}, ++ {"asm-generic/ioctls.h", "TIOCGHAYESESP", 0x545e}, ++ {"asm-generic/ioctls.h", "TIOCSHAYESESP", 0x545f}, ++ {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_START", 0x54a0}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_STOP", 0x54a1}, + {"sound/asound.h", "SNDRV_TIMER_IOCTL_CONTINUE", 0x54a2}, +@@ -1606,6 +1679,13 @@ + {"linux/media.h", "MEDIA_IOC_ENUM_ENTITIES", 0x7c01}, + {"linux/media.h", "MEDIA_IOC_ENUM_LINKS", 0x7c02}, + {"linux/media.h", "MEDIA_IOC_SETUP_LINK", 0x7c03}, ++ {"asm-generic/sockios.h", "FIOSETOWN", 0x8901}, ++ {"asm-generic/sockios.h", "SIOCSPGRP", 0x8902}, ++ {"asm-generic/sockios.h", "FIOGETOWN", 0x8903}, ++ {"asm-generic/sockios.h", "SIOCGPGRP", 0x8904}, ++ {"asm-generic/sockios.h", "SIOCATMARK", 0x8905}, ++ {"asm-generic/sockios.h", "SIOCGSTAMP", 0x8906}, ++ {"asm-generic/sockios.h", "SIOCGSTAMPNS", 0x8907}, + {"linux/sockios.h", "SIOCADDRT", 0x890b}, + {"linux/sockios.h", "SIOCDELRT", 0x890c}, + {"linux/sockios.h", "SIOCRTMSG", 0x890d}, +diff --git a/linux/powerpc/ioctlent.h.in b/linux/powerpc/ioctlent.h.in +index 0870704..510f5aa 100644 +--- a/linux/powerpc/ioctlent.h.in ++++ b/linux/powerpc/ioctlent.h.in +@@ -1,36 +1,18 @@ +- {"asm-generic/ioctls.h", "TCGETS", 0x5401}, +- {"asm-generic/ioctls.h", "TCSETS", 0x5402}, +- {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, +- {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, +- {"asm-generic/ioctls.h", "TCGETA", 0x5405}, +- {"asm-generic/ioctls.h", "TCSETA", 0x5406}, +- {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, +- {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, +- {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, +- {"asm-generic/ioctls.h", "TCXONC", 0x540a}, +- {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, + {"asm/ioctls.h", "TIOCEXCL", 0x540c}, + {"asm/ioctls.h", "TIOCNXCL", 0x540d}, + {"asm/ioctls.h", "TIOCSCTTY", 0x540e}, +- {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, +- {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, + {"asm/ioctls.h", "TIOCSTI", 0x5412}, +- {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, +- {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, + {"asm/ioctls.h", "TIOCMGET", 0x5415}, + {"asm/ioctls.h", "TIOCMBIS", 0x5416}, + {"asm/ioctls.h", "TIOCMBIC", 0x5417}, + {"asm/ioctls.h", "TIOCMSET", 0x5418}, + {"asm/ioctls.h", "TIOCGSOFTCAR", 0x5419}, + {"asm/ioctls.h", "TIOCSSOFTCAR", 0x541a}, +- {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, + {"asm/ioctls.h", "TIOCLINUX", 0x541c}, + {"asm/ioctls.h", "TIOCCONS", 0x541d}, + {"asm/ioctls.h", "TIOCGSERIAL", 0x541e}, + {"asm/ioctls.h", "TIOCSSERIAL", 0x541f}, + {"asm/ioctls.h", "TIOCPKT", 0x5420}, +- {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, + {"asm/ioctls.h", "TIOCNOTTY", 0x5422}, + {"asm/ioctls.h", "TIOCSETD", 0x5423}, + {"asm/ioctls.h", "TIOCGETD", 0x5424}, +@@ -38,22 +20,11 @@ + {"asm/ioctls.h", "TIOCSBRK", 0x5427}, + {"asm/ioctls.h", "TIOCCBRK", 0x5428}, + {"asm/ioctls.h", "TIOCGSID", 0x5429}, +- {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, +- {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, +- {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, +- {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, + {"asm/ioctls.h", "TIOCGRS485", 0x542e}, + {"asm/ioctls.h", "TIOCSRS485", 0x542f}, + {"asm/ioctls.h", "TIOCGPTN", 0x5430}, + {"asm/ioctls.h", "TIOCSPTLCK", 0x5431}, +- {"asm-generic/ioctls.h", "TCGETX", 0x5432}, +- {"asm-generic/ioctls.h", "TCSETX", 0x5433}, +- {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, +- {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, + {"asm/ioctls.h", "TIOCSIG", 0x5436}, +- {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, +- {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, +- {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, + {"asm/ioctls.h", "TIOCSERCONFIG", 0x5453}, + {"asm/ioctls.h", "TIOCSERGWILD", 0x5454}, + {"asm/ioctls.h", "TIOCSERSWILD", 0x5455}, +@@ -65,7 +36,6 @@ + {"asm/ioctls.h", "TIOCSERSETMULTI", 0x545b}, + {"asm/ioctls.h", "TIOCMIWAIT", 0x545c}, + {"asm/ioctls.h", "TIOCGICOUNT", 0x545d}, +- {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"asm/ioctls.h", "FIOCLEX", 0x6601}, + {"asm/ioctls.h", "FIONCLEX", 0x6602}, + {"asm/ioctls.h", "FIOASYNC", 0x667d}, +diff --git a/linux/s390/ioctlent.h.in b/linux/s390/ioctlent.h.in +index 35cdd81..1e93a0b 100644 +--- a/linux/s390/ioctlent.h.in ++++ b/linux/s390/ioctlent.h.in +@@ -19,76 +19,7 @@ + {"asm/cmb.h", "BIODASDCMFDISABLE", 0x4421}, + {"asm/cmb.h", "BIODASDREADALLCMB", 0x4421}, + {"asm/dasd.h", "BIODASDSYMMIO", 0x44f0}, +- {"asm-generic/ioctls.h", "TCGETS", 0x5401}, +- {"asm-generic/ioctls.h", "TCSETS", 0x5402}, +- {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, +- {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, +- {"asm-generic/ioctls.h", "TCGETA", 0x5405}, +- {"asm-generic/ioctls.h", "TCSETA", 0x5406}, +- {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, +- {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, +- {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, +- {"asm-generic/ioctls.h", "TCXONC", 0x540a}, +- {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, +- {"asm-generic/ioctls.h", "TIOCEXCL", 0x540c}, +- {"asm-generic/ioctls.h", "TIOCNXCL", 0x540d}, +- {"asm-generic/ioctls.h", "TIOCSCTTY", 0x540e}, +- {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, +- {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, +- {"asm-generic/ioctls.h", "TIOCSTI", 0x5412}, +- {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, +- {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, +- {"asm-generic/ioctls.h", "TIOCMGET", 0x5415}, +- {"asm-generic/ioctls.h", "TIOCMBIS", 0x5416}, +- {"asm-generic/ioctls.h", "TIOCMBIC", 0x5417}, +- {"asm-generic/ioctls.h", "TIOCMSET", 0x5418}, +- {"asm-generic/ioctls.h", "TIOCGSOFTCAR", 0x5419}, +- {"asm-generic/ioctls.h", "TIOCSSOFTCAR", 0x541a}, +- {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, +- {"asm-generic/ioctls.h", "TIOCLINUX", 0x541c}, +- {"asm-generic/ioctls.h", "TIOCCONS", 0x541d}, +- {"asm-generic/ioctls.h", "TIOCGSERIAL", 0x541e}, +- {"asm-generic/ioctls.h", "TIOCSSERIAL", 0x541f}, +- {"asm-generic/ioctls.h", "TIOCPKT", 0x5420}, +- {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, +- {"asm-generic/ioctls.h", "TIOCNOTTY", 0x5422}, +- {"asm-generic/ioctls.h", "TIOCSETD", 0x5423}, +- {"asm-generic/ioctls.h", "TIOCGETD", 0x5424}, +- {"asm-generic/ioctls.h", "TCSBRKP", 0x5425}, +- {"asm-generic/ioctls.h", "TIOCSBRK", 0x5427}, +- {"asm-generic/ioctls.h", "TIOCCBRK", 0x5428}, +- {"asm-generic/ioctls.h", "TIOCGSID", 0x5429}, +- {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, +- {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, +- {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, +- {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, +- {"asm-generic/ioctls.h", "TIOCGRS485", 0x542e}, +- {"asm-generic/ioctls.h", "TIOCSRS485", 0x542f}, +- {"asm-generic/ioctls.h", "TIOCGPTN", 0x5430}, +- {"asm-generic/ioctls.h", "TIOCSPTLCK", 0x5431}, +- {"asm-generic/ioctls.h", "TCGETX", 0x5432}, +- {"asm-generic/ioctls.h", "TIOCGDEV", 0x5432}, +- {"asm-generic/ioctls.h", "TCSETX", 0x5433}, +- {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, +- {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, +- {"asm-generic/ioctls.h", "TIOCSIG", 0x5436}, +- {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, +- {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, +- {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, +- {"asm-generic/ioctls.h", "TIOCSERCONFIG", 0x5453}, +- {"asm-generic/ioctls.h", "TIOCSERGWILD", 0x5454}, +- {"asm-generic/ioctls.h", "TIOCSERSWILD", 0x5455}, +- {"asm-generic/ioctls.h", "TIOCGLCKTRMIOS", 0x5456}, +- {"asm-generic/ioctls.h", "TIOCSLCKTRMIOS", 0x5457}, +- {"asm-generic/ioctls.h", "TIOCSERGSTRUCT", 0x5458}, +- {"asm-generic/ioctls.h", "TIOCSERGETLSR", 0x5459}, +- {"asm-generic/ioctls.h", "TIOCSERGETMULTI", 0x545a}, +- {"asm-generic/ioctls.h", "TIOCSERSETMULTI", 0x545b}, +- {"asm-generic/ioctls.h", "TIOCMIWAIT", 0x545c}, +- {"asm-generic/ioctls.h", "TIOCGICOUNT", 0x545d}, + {"asm/ioctls.h", "FIOQSIZE", 0x545e}, +- {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"asm/chsc.h", "CHSC_START", 0x6381}, + {"asm/chsc.h", "CHSC_INFO_CHANNEL_PATH", 0x6382}, + {"asm/chsc.h", "CHSC_INFO_CU", 0x6383}, +@@ -116,10 +47,3 @@ + {"asm/zcrypt.h", "Z90STAT_PCIXCCMCL3COUNT", 0x7a4c}, + {"asm/zcrypt.h", "Z90STAT_CEX2CCOUNT", 0x7a4d}, + {"asm/zcrypt.h", "Z90STAT_CEX2ACOUNT", 0x7a4e}, +- {"asm-generic/sockios.h", "FIOSETOWN", 0x8901}, +- {"asm-generic/sockios.h", "SIOCSPGRP", 0x8902}, +- {"asm-generic/sockios.h", "FIOGETOWN", 0x8903}, +- {"asm-generic/sockios.h", "SIOCGPGRP", 0x8904}, +- {"asm-generic/sockios.h", "SIOCATMARK", 0x8905}, +- {"asm-generic/sockios.h", "SIOCGSTAMP", 0x8906}, +- {"asm-generic/sockios.h", "SIOCGSTAMPNS", 0x8907}, +diff --git a/linux/sparc/ioctlent.h.in b/linux/sparc/ioctlent.h.in +index 25b7b4d..008aae0 100644 +--- a/linux/sparc/ioctlent.h.in ++++ b/linux/sparc/ioctlent.h.in +@@ -32,76 +32,24 @@ + {"asm/openpromio.h", "OPIOCGETNEXT", 0x4f05}, + {"asm/openpromio.h", "OPIOCGETCHILD", 0x4f06}, + {"asm/ioctls.h", "TCGETA", 0x5401}, +- {"asm-generic/ioctls.h", "TCGETS", 0x5401}, + {"asm/ioctls.h", "TCSETA", 0x5402}, +- {"asm-generic/ioctls.h", "TCSETS", 0x5402}, + {"asm/ioctls.h", "TCSETAW", 0x5403}, +- {"asm-generic/ioctls.h", "TCSETSW", 0x5403}, + {"asm/ioctls.h", "TCSETAF", 0x5404}, +- {"asm-generic/ioctls.h", "TCSETSF", 0x5404}, +- {"asm-generic/ioctls.h", "TCGETA", 0x5405}, + {"asm/ioctls.h", "TCSBRK", 0x5405}, +- {"asm-generic/ioctls.h", "TCSETA", 0x5406}, + {"asm/ioctls.h", "TCXONC", 0x5406}, + {"asm/ioctls.h", "TCFLSH", 0x5407}, +- {"asm-generic/ioctls.h", "TCSETAW", 0x5407}, + {"asm/ioctls.h", "TCGETS", 0x5408}, +- {"asm-generic/ioctls.h", "TCSETAF", 0x5408}, +- {"asm-generic/ioctls.h", "TCSBRK", 0x5409}, + {"asm/ioctls.h", "TCSETS", 0x5409}, + {"asm/ioctls.h", "TCSETSW", 0x540a}, +- {"asm-generic/ioctls.h", "TCXONC", 0x540a}, +- {"asm-generic/ioctls.h", "TCFLSH", 0x540b}, + {"asm/ioctls.h", "TCSETSF", 0x540b}, + {"asm/ioctls.h", "TCGETS2", 0x540c}, +- {"asm-generic/ioctls.h", "TIOCEXCL", 0x540c}, + {"asm/ioctls.h", "TCSETS2", 0x540d}, +- {"asm-generic/ioctls.h", "TIOCNXCL", 0x540d}, + {"asm/ioctls.h", "TCSETSW2", 0x540e}, +- {"asm-generic/ioctls.h", "TIOCSCTTY", 0x540e}, + {"asm/ioctls.h", "TCSETSF2", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCGPGRP", 0x540f}, +- {"asm-generic/ioctls.h", "TIOCSPGRP", 0x5410}, +- {"asm-generic/ioctls.h", "TIOCOUTQ", 0x5411}, +- {"asm-generic/ioctls.h", "TIOCSTI", 0x5412}, +- {"asm-generic/ioctls.h", "TIOCGWINSZ", 0x5413}, +- {"asm-generic/ioctls.h", "TIOCSWINSZ", 0x5414}, +- {"asm-generic/ioctls.h", "TIOCMGET", 0x5415}, +- {"asm-generic/ioctls.h", "TIOCMBIS", 0x5416}, +- {"asm-generic/ioctls.h", "TIOCMBIC", 0x5417}, +- {"asm-generic/ioctls.h", "TIOCMSET", 0x5418}, +- {"asm-generic/ioctls.h", "TIOCGSOFTCAR", 0x5419}, +- {"asm-generic/ioctls.h", "TIOCSSOFTCAR", 0x541a}, +- {"asm-generic/ioctls.h", "FIONREAD", 0x541b}, + {"asm/ioctls.h", "TIOCLINUX", 0x541c}, +- {"asm-generic/ioctls.h", "TIOCCONS", 0x541d}, + {"asm/ioctls.h", "TIOCGSERIAL", 0x541e}, + {"asm/ioctls.h", "TIOCSSERIAL", 0x541f}, +- {"asm-generic/ioctls.h", "TIOCPKT", 0x5420}, +- {"asm-generic/ioctls.h", "FIONBIO", 0x5421}, +- {"asm-generic/ioctls.h", "TIOCNOTTY", 0x5422}, +- {"asm-generic/ioctls.h", "TIOCSETD", 0x5423}, +- {"asm-generic/ioctls.h", "TIOCGETD", 0x5424}, + {"asm/ioctls.h", "TCSBRKP", 0x5425}, +- {"asm-generic/ioctls.h", "TIOCSBRK", 0x5427}, +- {"asm-generic/ioctls.h", "TIOCCBRK", 0x5428}, +- {"asm-generic/ioctls.h", "TIOCGSID", 0x5429}, +- {"asm-generic/ioctls.h", "TCGETS2", 0x542a}, +- {"asm-generic/ioctls.h", "TCSETS2", 0x542b}, +- {"asm-generic/ioctls.h", "TCSETSW2", 0x542c}, +- {"asm-generic/ioctls.h", "TCSETSF2", 0x542d}, +- {"asm-generic/ioctls.h", "TIOCGRS485", 0x542e}, +- {"asm-generic/ioctls.h", "TIOCSRS485", 0x542f}, +- {"asm-generic/ioctls.h", "TIOCGPTN", 0x5430}, +- {"asm-generic/ioctls.h", "TIOCSPTLCK", 0x5431}, +- {"asm-generic/ioctls.h", "TCGETX", 0x5432}, +- {"asm-generic/ioctls.h", "TCSETX", 0x5433}, +- {"asm-generic/ioctls.h", "TCSETXF", 0x5434}, +- {"asm-generic/ioctls.h", "TCSETXW", 0x5435}, +- {"asm-generic/ioctls.h", "TIOCSIG", 0x5436}, +- {"asm-generic/ioctls.h", "FIONCLEX", 0x5450}, +- {"asm-generic/ioctls.h", "FIOCLEX", 0x5451}, +- {"asm-generic/ioctls.h", "FIOASYNC", 0x5452}, + {"asm/ioctls.h", "TIOCSERCONFIG", 0x5453}, + {"asm/ioctls.h", "TIOCSERGWILD", 0x5454}, + {"asm/ioctls.h", "TIOCSERSWILD", 0x5455}, +@@ -113,7 +61,6 @@ + {"asm/ioctls.h", "TIOCSERSETMULTI", 0x545b}, + {"asm/ioctls.h", "TIOCMIWAIT", 0x545c}, + {"asm/ioctls.h", "TIOCGICOUNT", 0x545d}, +- {"asm-generic/ioctls.h", "FIOQSIZE", 0x5460}, + {"asm/watchdog.h", "WIOCSTART", 0x570a}, + {"asm/watchdog.h", "WIOCSTOP", 0x570b}, + {"asm/watchdog.h", "WIOCGSTAT", 0x570c}, +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace-4.7/0031-Add-support-for-tracing-32-bit-ARM-EABI-binaries-on-.patch b/meta/recipes-devtools/strace/strace-4.7/0031-Add-support-for-tracing-32-bit-ARM-EABI-binaries-on-.patch new file mode 100644 index 0000000000..61885b1b5b --- /dev/null +++ b/meta/recipes-devtools/strace/strace-4.7/0031-Add-support-for-tracing-32-bit-ARM-EABI-binaries-on-.patch @@ -0,0 +1,963 @@ +Upstream-Status: Backport + +From 890a5cad2321ae72fb5ca1b253edb874b1ca7180 Mon Sep 17 00:00:00 2001 +From: Steve McIntyre <steve.mcintyre@linaro.org> +Date: Sat, 10 Nov 2012 11:24:48 +0000 +Subject: [PATCH 31/31] Add support for tracing 32-bit ARM EABI binaries on + AArch64 + +* defs.h [AARCH64]: Copy in the definition of arm_pt_regs and the +accessor macros, so it's possible to build on AArch64 without +ARM system headers. Set SUPPORTED_PERSONALITIES to 2. +Define PERSONALITY0_WORDSIZE and PERSONALITY1_WORDSIZE. +Set DEFAULT_PERSONALITY to 1. +* linux/aarch64/errnoent1.h: New file, includes generic errnoent.h. +* linux/aarch64/ioctlent1.h: New file, includes generic ioctlent.h. +* linux/aarch64/signalent1.h: New file, includes generic signalent.h. +* linux/aarch64/syscallent1.h: Rename from linux/aarch64/syscallent.h. +* linux/aarch64/syscallent.h: New file, includes arm/syscallent.h. +* syscall.c [AARCH64]: Define aarch64_regs. +(update_personality) [AARCH64]: Add debug output. +(get_scno) [AARCH64]: Determine if we're in ARM or AArch64 mode by +checking the size of the returned uio structure from PTRACE_GETREGSET +and interpret the structure accordingly. +(get_syscall_result): Likewise. +(get_syscall_args): Merge the AArch64 and ARM sections so that on +AArch64 we can fall back to supporting the ARM personality. +(get_error): Likewise. + +Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org> +--- + defs.h | 34 +++++ + linux/aarch64/errnoent1.h | 2 + + linux/aarch64/ioctlent1.h | 1 + + linux/aarch64/signalent1.h | 1 + + linux/aarch64/syscallent.h | 331 +------------------------------------------- + linux/aarch64/syscallent1.h | 330 +++++++++++++++++++++++++++++++++++++++++++ + syscall.c | 111 ++++++++++----- + 7 files changed, 448 insertions(+), 362 deletions(-) + create mode 100644 linux/aarch64/errnoent1.h + create mode 100644 linux/aarch64/ioctlent1.h + create mode 100644 linux/aarch64/signalent1.h + create mode 100644 linux/aarch64/syscallent1.h + +diff --git a/defs.h b/defs.h +index 11e26bb..0e05c6e 100644 +--- a/defs.h ++++ b/defs.h +@@ -196,6 +196,30 @@ extern long ptrace(int, int, char *, long); + # define REG_PC (0*8) + # define REG_SYSCALL (2*8) + #endif /* SH64 */ ++#ifdef AARCH64 ++#define NUM_ARM_REGS 18 ++struct arm_pt_regs { ++ int uregs[NUM_ARM_REGS]; ++}; ++#define ARM_cpsr uregs[16] ++#define ARM_pc uregs[15] ++#define ARM_lr uregs[14] ++#define ARM_sp uregs[13] ++#define ARM_ip uregs[12] ++#define ARM_fp uregs[11] ++#define ARM_r10 uregs[10] ++#define ARM_r9 uregs[9] ++#define ARM_r8 uregs[8] ++#define ARM_r7 uregs[7] ++#define ARM_r6 uregs[6] ++#define ARM_r5 uregs[5] ++#define ARM_r4 uregs[4] ++#define ARM_r3 uregs[3] ++#define ARM_r2 uregs[2] ++#define ARM_r1 uregs[1] ++#define ARM_r0 uregs[0] ++#define ARM_ORIG_r0 uregs[17] ++#endif /* AARCH64 */ + + #define SUPPORTED_PERSONALITIES 1 + #define DEFAULT_PERSONALITY 0 +@@ -241,6 +265,16 @@ extern long ptrace(int, int, char *, long); + # define PERSONALITY1_WORDSIZE 4 + #endif + ++#ifdef AARCH64 ++# undef SUPPORTED_PERSONALITIES ++/* The existing ARM personality, then AArch64 */ ++# define SUPPORTED_PERSONALITIES 2 ++# define PERSONALITY0_WORDSIZE 4 ++# define PERSONALITY1_WORDSIZE 8 ++# undef DEFAULT_PERSONALITY ++# define DEFAULT_PERSONALITY 1 ++#endif ++ + #ifdef POWERPC64 + # undef SUPPORTED_PERSONALITIES + # define SUPPORTED_PERSONALITIES 2 +diff --git a/linux/aarch64/errnoent1.h b/linux/aarch64/errnoent1.h +new file mode 100644 +index 0000000..e1cbe33 +--- /dev/null ++++ b/linux/aarch64/errnoent1.h +@@ -0,0 +1,2 @@ ++/* Native AArch64 */ ++#include "../errnoent.h" +diff --git a/linux/aarch64/ioctlent1.h b/linux/aarch64/ioctlent1.h +new file mode 100644 +index 0000000..df485d3 +--- /dev/null ++++ b/linux/aarch64/ioctlent1.h +@@ -0,0 +1 @@ ++#include "../ioctlent.h" +diff --git a/linux/aarch64/signalent1.h b/linux/aarch64/signalent1.h +new file mode 100644 +index 0000000..d31e6a4 +--- /dev/null ++++ b/linux/aarch64/signalent1.h +@@ -0,0 +1 @@ ++#include "../signalent.h" +diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h +index b712c9f..1b892be 100644 +--- a/linux/aarch64/syscallent.h ++++ b/linux/aarch64/syscallent.h +@@ -1,330 +1 @@ +- { 2, 0, sys_io_setup, "io_setup" }, /* 0 */ +- { 1, 0, sys_io_destroy, "io_destroy" }, /* 1 */ +- { 3, 0, sys_io_submit, "io_submit" }, /* 2 */ +- { 3, 0, sys_io_cancel, "io_cancel" }, /* 3 */ +- { 5, 0, sys_io_getevents, "io_getevents" }, /* 4 */ +- { 5, TF, sys_setxattr, "setxattr" }, /* 5 */ +- { 5, TF, sys_setxattr, "lsetxattr" }, /* 6 */ +- { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 7 */ +- { 4, TF, sys_getxattr, "getxattr" }, /* 8 */ +- { 4, TF, sys_getxattr, "lgetxattr" }, /* 9 */ +- { 4, TD, sys_fgetxattr, "fgetxattr" }, /* 10 */ +- { 3, TF, sys_listxattr, "listxattr" }, /* 11 */ +- { 3, TF, sys_listxattr, "llistxattr" }, /* 12 */ +- { 3, TD, sys_flistxattr, "flistxattr" }, /* 13 */ +- { 2, TF, sys_removexattr, "removexattr" }, /* 14 */ +- { 2, TF, sys_removexattr, "lremovexattr" }, /* 15 */ +- { 2, TD, sys_fremovexattr, "fremovexattr" }, /* 16 */ +- { 2, TF, sys_getcwd, "getcwd" }, /* 17 */ +- { 4, 0, sys_lookup_dcookie, "lookup_dcookie" }, /* 18 */ +- { 2, TD, sys_eventfd2, "eventfd2" }, /* 19 */ +- { 1, TD, sys_epoll_create1, "epoll_create1" }, /* 20 */ +- { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 21 */ +- { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 22 */ +- { 1, TD, sys_dup, "dup" }, /* 23 */ +- { 3, TD, sys_dup3, "dup3" }, /* 24 */ +- { 3, TD, sys_fcntl, "fcntl" }, /* 25 */ +- { 1, TD, sys_inotify_init1, "inotify_init1" }, /* 26 */ +- { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 27 */ +- { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 28 */ +- { 3, TD, sys_ioctl, "ioctl" }, /* 29 */ +- { 3, 0, sys_ioprio_set, "ioprio_set" }, /* 30 */ +- { 2, 0, sys_ioprio_get, "ioprio_get" }, /* 31 */ +- { 2, TD, sys_flock, "flock" }, /* 32 */ +- { 4, TD|TF, sys_mknodat, "mknodat" }, /* 33 */ +- { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 34 */ +- { 3, TD|TF, sys_unlinkat, "unlinkat" }, /* 35 */ +- { 3, TD|TF, sys_symlinkat, "symlinkat" }, /* 36 */ +- { 5, TD|TF, sys_linkat, "linkat" }, /* 37 */ +- { 4, TD|TF, sys_renameat, "renameat" }, /* 38 */ +- { 2, TF, sys_umount2, "umount2" }, /* 39 */ +- { 5, TF, sys_mount, "mount" }, /* 40 */ +- { 2, TF, sys_pivotroot, "pivot_root" }, /* 41 */ +- { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 42 */ +- { 2, TF, sys_statfs, "statfs64" }, /* 43 */ +- { 2, TD, sys_fstatfs, "fstatfs64" }, /* 44 */ +- { 2, TF, sys_truncate, "truncate64" }, /* 45 */ +- { 2, TD, sys_ftruncate, "ftruncate64" }, /* 46 */ +- { 6, TD, sys_fallocate, "fallocate" }, /* 47 */ +- { 3, TD|TF, sys_faccessat, "faccessat" }, /* 48 */ +- { 1, TF, sys_chdir, "chdir" }, /* 49 */ +- { 1, TD, sys_fchdir, "fchdir" }, /* 50 */ +- { 1, TF, sys_chroot, "chroot" }, /* 51 */ +- { 2, TD, sys_fchmod, "fchmod" }, /* 52 */ +- { 3, TD|TF, sys_fchmodat, "fchmodat" }, /* 53 */ +- { 5, TD|TF, sys_fchownat, "fchownat" }, /* 54 */ +- { 3, TD, sys_fchown, "fchown" }, /* 55 */ +- { 4, TD|TF, sys_openat, "openat" }, /* 56 */ +- { 1, TD, sys_close, "close" }, /* 57 */ +- { 0, 0, sys_vhangup, "vhangup" }, /* 58 */ +- { 2, TD, sys_pipe2, "pipe2" }, /* 59 */ +- { 4, TF, sys_quotactl, "quotactl" }, /* 60 */ +- { 3, TD, sys_getdents64, "getdents64" }, /* 61 */ +- { 3, TD, sys_lseek, "lseek" }, /* 62 */ +- { 3, TD, sys_read, "read" }, /* 63 */ +- { 3, TD, sys_write, "write" }, /* 64 */ +- { 3, TD, sys_readv, "readv" }, /* 65 */ +- { 3, TD, sys_writev, "writev" }, /* 66 */ +- { 5, TD, sys_pread, "pread64" }, /* 67 */ +- { 5, TD, sys_pwrite, "pwrite64" }, /* 68 */ +- { 5, TD, sys_preadv, "preadv" }, /* 69 */ +- { 5, TD, sys_pwritev, "pwritev" }, /* 70 */ +- { 4, TD|TN, sys_sendfile, "sendfile" }, /* 71 */ +- { 6, TD, sys_pselect6, "pselect6" }, /* 72 */ +- { 5, TD, sys_ppoll, "ppoll" }, /* 73 */ +- { 4, TD|TS, sys_signalfd4, "signalfd4" }, /* 74 */ +- { 4, TD, sys_vmsplice, "vmsplice" }, /* 75 */ +- { 6, TD, sys_splice, "splice" }, /* 76 */ +- { 4, TD, sys_tee, "tee" }, /* 77 */ +- { 4, TD|TF, sys_readlinkat, "readlinkat" }, /* 78 */ +- { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 79 */ +- { 2, TD, sys_fstat, "fstat" }, /* 80 */ +- { 0, 0, sys_sync, "sync" }, /* 81 */ +- { 1, TD, sys_fsync, "fsync" }, /* 82 */ +- { 1, TD, sys_fdatasync, "fdatasync" }, /* 83 */ +- { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 84 */ +- { 2, TD, sys_timerfd_create, "timerfd_create" }, /* 85 */ +- { 4, TD, sys_timerfd_settime, "timerfd_settime" }, /* 86 */ +- { 2, TD, sys_timerfd_gettime, "timerfd_gettime" }, /* 87 */ +- { 4, TD|TF, sys_utimensat, "utimensat" }, /* 88 */ +- { 1, TF, sys_acct, "acct" }, /* 89 */ +- { 2, 0, sys_capget, "capget" }, /* 90 */ +- { 2, 0, sys_capset, "capset" }, /* 91 */ +- { 1, 0, sys_personality, "personality" }, /* 92 */ +- { 1, TP, sys_exit, "exit" }, /* 93 */ +- { 1, TP, sys_exit, "exit_group" }, /* 94 */ +- { 5, TP, sys_waitid, "waitid" }, /* 95 */ +- { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 96 */ +- { 1, TP, sys_unshare, "unshare" }, /* 97 */ +- { 6, 0, sys_futex, "futex" }, /* 98 */ +- { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 99 */ +- { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 100 */ +- { 2, 0, sys_nanosleep, "nanosleep" }, /* 101 */ +- { 2, 0, sys_getitimer, "getitimer" }, /* 102 */ +- { 3, 0, sys_setitimer, "setitimer" }, /* 103 */ +- { 4, 0, sys_kexec_load, "kexec_load" }, /* 104 */ +- { 3, 0, sys_init_module, "init_module" }, /* 105 */ +- { 2, 0, sys_delete_module, "delete_module" }, /* 106 */ +- { 3, 0, sys_timer_create, "timer_create" }, /* 107 */ +- { 2, 0, sys_timer_gettime, "timer_gettime" }, /* 108 */ +- { 1, 0, sys_timer_getoverrun, "timer_getoverrun" }, /* 109 */ +- { 4, 0, sys_timer_settime, "timer_settime" }, /* 110 */ +- { 1, 0, sys_timer_delete, "timer_delete" }, /* 111 */ +- { 2, 0, sys_clock_settime, "clock_settime" }, /* 112 */ +- { 2, 0, sys_clock_gettime, "clock_gettime" }, /* 113 */ +- { 2, 0, sys_clock_getres, "clock_getres" }, /* 114 */ +- { 4, 0, sys_clock_nanosleep, "clock_nanosleep" }, /* 115 */ +- { 3, 0, sys_syslog, "syslog" }, /* 116 */ +- { 4, 0, sys_ptrace, "ptrace" }, /* 117 */ +- { 0, 0, sys_sched_setparam, "sched_setparam" }, /* 118 */ +- { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 119 */ +- { 1, 0, sys_sched_getscheduler, "sched_getscheduler" }, /* 120 */ +- { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 121 */ +- { 3, 0, sys_sched_setaffinity, "sched_setaffinity" }, /* 122 */ +- { 3, 0, sys_sched_getaffinity, "sched_getaffinity" }, /* 123 */ +- { 0, 0, sys_sched_yield, "sched_yield" }, /* 124 */ +- { 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 125 */ +- { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 126 */ +- { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 127 */ +- { 0, 0, sys_restart_syscall, "restart_syscall" }, /* 128 */ +- { 2, TS, sys_kill, "kill" }, /* 129 */ +- { 2, TS, sys_kill, "tkill" }, /* 130 */ +- { 3, TS, sys_tgkill, "tgkill" }, /* 131 */ +- { 2, TS, sys_sigaltstack, "sigaltstack" }, /* 132 */ +- { 2, TS, sys_rt_sigsuspend, "rt_sigsuspend" }, /* 133 */ +- { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 134 */ +- { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask" }, /* 135 */ +- { 2, TS, sys_rt_sigpending, "rt_sigpending" }, /* 136 */ +- { 4, TS, sys_rt_sigtimedwait, "rt_sigtimedwait" }, /* 137 */ +- { 3, TS, sys_rt_sigqueueinfo, "rt_sigqueueinfo" }, /* 138 */ +- { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 139 */ +- { 3, 0, sys_setpriority, "setpriority" }, /* 140 */ +- { 2, 0, sys_getpriority, "getpriority" }, /* 141 */ +- { 4, 0, sys_reboot, "reboot" }, /* 142 */ +- { 2, 0, sys_setregid, "setregid" }, /* 143 */ +- { 1, 0, sys_setgid, "setgid" }, /* 144 */ +- { 2, 0, sys_setreuid, "setreuid" }, /* 145 */ +- { 1, 0, sys_setuid, "setuid" }, /* 146 */ +- { 3, 0, sys_setresuid, "setresuid" }, /* 147 */ +- { 3, 0, sys_getresuid, "getresuid" }, /* 148 */ +- { 3, 0, sys_setresgid, "setresgid" }, /* 149 */ +- { 3, 0, sys_getresgid, "getresgid" }, /* 150 */ +- { 1, NF, sys_setfsuid, "setfsuid" }, /* 151 */ +- { 1, NF, sys_setfsgid, "setfsgid" }, /* 152 */ +- { 1, 0, sys_times, "times" }, /* 153 */ +- { 2, 0, sys_setpgid, "setpgid" }, /* 154 */ +- { 1, 0, sys_getpgid, "getpgid" }, /* 155 */ +- { 1, 0, sys_getsid, "getsid" }, /* 156 */ +- { 0, 0, sys_setsid, "setsid" }, /* 157 */ +- { 2, 0, sys_getgroups, "getgroups" }, /* 158 */ +- { 2, 0, sys_setgroups, "setgroups" }, /* 159 */ +- { 1, 0, sys_uname, "uname" }, /* 160 */ +- { 2, 0, sys_sethostname, "sethostname" }, /* 161 */ +- { 2, 0, sys_setdomainname, "setdomainname" }, /* 162 */ +- { 2, 0, sys_getrlimit, "getrlimit" }, /* 163 */ +- { 2, 0, sys_setrlimit, "setrlimit" }, /* 164 */ +- { 2, 0, sys_getrusage, "getrusage" }, /* 165 */ +- { 1, 0, sys_umask, "umask" }, /* 166 */ +- { 5, 0, sys_prctl, "prctl" }, /* 167 */ +- { 3, 0, sys_getcpu, "getcpu" }, /* 168 */ +- { 2, 0, sys_gettimeofday, "gettimeofday" }, /* 169 */ +- { 2, 0, sys_settimeofday, "settimeofday" }, /* 170 */ +- { 1, 0, sys_adjtimex, "adjtimex" }, /* 171 */ +- { 0, 0, sys_getpid, "getpid" }, /* 172 */ +- { 0, 0, sys_getppid, "getppid" }, /* 173 */ +- { 0, NF, sys_getuid, "getuid" }, /* 174 */ +- { 0, NF, sys_geteuid, "geteuid" }, /* 175 */ +- { 0, NF, sys_getgid, "getgid" }, /* 176 */ +- { 0, NF, sys_getegid, "getegid" }, /* 177 */ +- { 0, 0, sys_gettid, "gettid" }, /* 178 */ +- { 1, 0, sys_sysinfo, "sysinfo" }, /* 179 */ +- { 4, 0, sys_mq_open, "mq_open" }, /* 180 */ +- { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 181 */ +- { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 182 */ +- { 5, 0, sys_mq_timedreceive, "mq_timedreceive" }, /* 183 */ +- { 2, 0, sys_mq_notify, "mq_notify" }, /* 184 */ +- { 3, 0, sys_mq_getsetattr, "mq_getsetattr" }, /* 185 */ +- { 4, TI, sys_msgget, "msgget" }, /* 186 */ +- { 3, TI, sys_msgctl, "msgctl" }, /* 187 */ +- { 5, TI, sys_msgrcv, "msgrcv" }, /* 188 */ +- { 4, TI, sys_msgsnd, "msgsnd" }, /* 189 */ +- { 4, TI, sys_semget, "semget" }, /* 190 */ +- { 4, TI, sys_semctl, "semctl" }, /* 191 */ +- { 5, TI, sys_semtimedop, "semtimedop" }, /* 192 */ +- { 4, TI, sys_semop, "semop" }, /* 193 */ +- { 4, TI, sys_shmget, "shmget" }, /* 194 */ +- { 4, TI, sys_shmctl, "shmctl" }, /* 195 */ +- { 4, TI, sys_shmat, "shmat" }, /* 196 */ +- { 4, TI, sys_shmdt, "shmdt" }, /* 197 */ +- { 3, TN, sys_socket, "socket" }, /* 198 */ +- { 4, TN, sys_socketpair, "socketpair" }, /* 199 */ +- { 3, TN, sys_bind, "bind" }, /* 200 */ +- { 2, TN, sys_listen, "listen" }, /* 201 */ +- { 3, TN, sys_accept, "accept" }, /* 202 */ +- { 3, TN, sys_connect, "connect" }, /* 203 */ +- { 3, TN, sys_getsockname, "getsockname" }, /* 204 */ +- { 3, TN, sys_getpeername, "getpeername" }, /* 205 */ +- { 6, TN, sys_sendto, "sendto" }, /* 206 */ +- { 6, TN, sys_recvfrom, "recvfrom" }, /* 207 */ +- { 5, TN, sys_setsockopt, "setsockopt" }, /* 208 */ +- { 5, TN, sys_getsockopt, "getsockopt" }, /* 209 */ +- { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ +- { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ +- { 5, TN, sys_recvmsg, "recvmsg" }, /* 212 */ +- { 4, TD, sys_readahead, "readahead" }, /* 213 */ +- { 1, TM, sys_brk, "brk" }, /* 214 */ +- { 2, TM, sys_munmap, "munmap" }, /* 215 */ +- { 5, TM, sys_mremap, "mremap" }, /* 216 */ +- { 5, 0, sys_add_key, "add_key" }, /* 217 */ +- { 4, 0, sys_request_key, "request_key" }, /* 218 */ +- { 5, 0, sys_keyctl, "keyctl" }, /* 219 */ +- { 5, TP, sys_clone, "clone" }, /* 220 */ +- { 3, TF|TP, sys_execve, "execve" }, /* 221 */ +- { 6, TD|TM, sys_mmap, "mmap" }, /* 222 */ +- { 4, TD, sys_fadvise64, "fadvise64" }, /* 223 */ +- { 2, TF, sys_swapon, "swapon" }, /* 224 */ +- { 1, TF, sys_swapoff, "swapoff" }, /* 225 */ +- { 3, TM, sys_mprotect, "mprotect" }, /* 226 */ +- { 3, TM, sys_msync, "msync" }, /* 227 */ +- { 3, TM, sys_msync, "msync" }, /* 228 */ +- { 2, TM, sys_munlock, "munlock" }, /* 229 */ +- { 1, TM, sys_mlockall, "mlockall" }, /* 230 */ +- { 0, TM, sys_munlockall, "munlockall" }, /* 231 */ +- { 3, TM, sys_mincore, "mincore" }, /* 232 */ +- { 3, TM, sys_madvise, "madvise" }, /* 233 */ +- { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 234 */ +- { 6, TM, sys_mbind, "mbind" }, /* 235 */ +- { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 236 */ +- { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 237 */ +- { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 238 */ +- { 6, TM, sys_move_pages, "move_pages" }, /* 239 */ +- { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" }, /* 240 */ +- { 5, TD, sys_perf_event_open, "perf_event_open" }, /* 241 */ +- { 4, TN, sys_accept4, "accept4" }, /* 242 */ +- { 5, TN, sys_recvmmsg, "recvmmsg" }, /* 243 */ +- +- /* Arch-specific block, not used on AArch64 */ +- [244 ... 259] = { }, +- +- { 4, TP, sys_wait4, "wait4" }, /* 260 */ +- { 4, 0, sys_prlimit64, "prlimit64" }, /* 261 */ +- { 2, TD, sys_fanotify_init, "fanotify_init" }, /* 262 */ +- { 5, TD|TF, sys_fanotify_mark, "fanotify_mark" }, /* 263 */ +- { 5, TD|TF, sys_name_to_handle_at, "name_to_handle_at" }, /* 264 */ +- { 3, TD, sys_open_by_handle_at, "open_by_handle_at" }, /* 265 */ +- { 2, 0, sys_clock_adjtime, "clock_adjtime" }, /* 266 */ +- { 1, TD, sys_syncfs, "syncfs" }, /* 267 */ +- { 2, TD, sys_setns, "setns" }, /* 268 */ +- { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 269 */ +- { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 270 */ +- { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 271 */ +- +- /* Blank down to 1023 */ +- [272 ... 1023] = { }, +- +- /* Quote from asm-generic/unistd.h: +- * +- * All syscalls below here should go away really, +- * these are provided for both review and as a porting +- * help for the C library version. +- * +- * Last chance: are any of these important enough to +- * enable by default? +- */ +- +- { 3, TD|TF, sys_open, "open" }, /* 1024 */ +- { 2, TF, sys_link, "link" }, /* 1025 */ +- { 1, TF, sys_unlink, "unlink" }, /* 1026 */ +- { 3, TF, sys_mknod, "mknod" }, /* 1027 */ +- { 2, TF, sys_chmod, "chmod" }, /* 1028 */ +- { 3, TF, sys_chown, "chown" }, /* 1029 */ +- { 2, TF, sys_mkdir, "mkdir" }, /* 1030 */ +- { 1, TF, sys_rmdir, "rmdir" }, /* 1031 */ +- { 3, TF, sys_chown, "lchown" }, /* 1032 */ +- { 2, TF, sys_access, "access" }, /* 1033 */ +- { 2, TF, sys_rename, "rename" }, /* 1034 */ +- { 3, TF, sys_readlink, "readlink" }, /* 1035 */ +- { 2, TF, sys_symlink, "symlink" }, /* 1036 */ +- { 2, TF, sys_utimes, "utimes" }, /* 1037 */ +- { 2, TF, sys_stat, "stat" }, /* 1038 */ +- { 2, TF, sys_lstat, "lstat" }, /* 1039 */ +- { 1, TD, sys_pipe, "pipe" }, /* 1040 */ +- { 2, TD, sys_dup2, "dup2" }, /* 1041 */ +- { 1, TD, sys_epoll_create, "epoll_create" }, /* 1042 */ +- { 0, TD, sys_inotify_init, "inotify_init" }, /* 1043 */ +- { 1, TD, sys_eventfd, "eventfd" }, /* 1044 */ +- { 3, TD|TS, sys_signalfd, "signalfd" }, /* 1045 */ +- { 4, TD|TN, sys_sendfile, "sendfile" }, /* 1046 */ +- { 2, TD, sys_ftruncate, "ftruncate" }, /* 1047 */ +- { 2, TF, sys_truncate, "truncate" }, /* 1048 */ +- { 2, TF, sys_stat, "stat" }, /* 1049 */ +- { 2, TF, sys_lstat, "lstat" }, /* 1050 */ +- { 2, TD, sys_fstat, "fstat" }, /* 1051 */ +- { 3, TD, sys_fcntl, "fcntl" }, /* 1052 */ +- { 4, TD, sys_fadvise64, "fadvise64" }, /* 1053 */ +- { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 1054 */ +- { 2, TD, sys_fstatfs, "fstatfs" }, /* 1055 */ +- { 2, TF, sys_statfs, "statfs" }, /* 1056 */ +- { 3, TD, sys_lseek, "lseek" }, /* 1057 */ +- { 6, TD|TM, sys_mmap, "mmap" }, /* 1058 */ +- { 1, 0, sys_alarm, "alarm" }, /* 1059 */ +- { 0, 0, sys_getpgrp, "getpgrp" }, /* 1060 */ +- { 0, TS, sys_pause, "pause" }, /* 1061 */ +- { 1, 0, sys_time, "time" }, /* 1062 */ +- { 2, TF, sys_utime, "utime" }, /* 1063 */ +- { 2, TD|TF, sys_creat, "creat" }, /* 1064 */ +- { 3, TD, sys_getdents, "getdents" }, /* 1065 */ +- { 3, TD|TF, sys_futimesat, "futimesat" }, /* 1066 */ +- { 5, TD, sys_select, "select" }, /* 1067 */ +- { 3, TD, sys_poll, "poll" }, /* 1068 */ +- { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 1069 */ +- { 2, 0, sys_ustat, "ustat" }, /* 1070 */ +- { 0, TP, sys_vfork, "vfork" }, /* 1071 */ +- { 4, TP, sys_wait4, "wait4" }, /* 1072 */ +- { 6, TN, sys_recv, "recv" }, /* 1073 */ +- { 4, TD|TN, sys_send, "send" }, /* 1074 */ +- { 2, 0, sys_bdflush, "bdflush" }, /* 1075 */ +- { 2, TF, sys_umount, "umount" }, /* 1076 */ +- { 1, TF, sys_uselib, "uselib" }, /* 1077 */ +- { 1, 0, sys_sysctl, "sysctl" }, /* 1078 */ +- { 0, TP, sys_fork, "fork" }, /* 1079 */ ++#include "../arm/syscallent.h" +diff --git a/linux/aarch64/syscallent1.h b/linux/aarch64/syscallent1.h +new file mode 100644 +index 0000000..b712c9f +--- /dev/null ++++ b/linux/aarch64/syscallent1.h +@@ -0,0 +1,330 @@ ++ { 2, 0, sys_io_setup, "io_setup" }, /* 0 */ ++ { 1, 0, sys_io_destroy, "io_destroy" }, /* 1 */ ++ { 3, 0, sys_io_submit, "io_submit" }, /* 2 */ ++ { 3, 0, sys_io_cancel, "io_cancel" }, /* 3 */ ++ { 5, 0, sys_io_getevents, "io_getevents" }, /* 4 */ ++ { 5, TF, sys_setxattr, "setxattr" }, /* 5 */ ++ { 5, TF, sys_setxattr, "lsetxattr" }, /* 6 */ ++ { 5, TD, sys_fsetxattr, "fsetxattr" }, /* 7 */ ++ { 4, TF, sys_getxattr, "getxattr" }, /* 8 */ ++ { 4, TF, sys_getxattr, "lgetxattr" }, /* 9 */ ++ { 4, TD, sys_fgetxattr, "fgetxattr" }, /* 10 */ ++ { 3, TF, sys_listxattr, "listxattr" }, /* 11 */ ++ { 3, TF, sys_listxattr, "llistxattr" }, /* 12 */ ++ { 3, TD, sys_flistxattr, "flistxattr" }, /* 13 */ ++ { 2, TF, sys_removexattr, "removexattr" }, /* 14 */ ++ { 2, TF, sys_removexattr, "lremovexattr" }, /* 15 */ ++ { 2, TD, sys_fremovexattr, "fremovexattr" }, /* 16 */ ++ { 2, TF, sys_getcwd, "getcwd" }, /* 17 */ ++ { 4, 0, sys_lookup_dcookie, "lookup_dcookie" }, /* 18 */ ++ { 2, TD, sys_eventfd2, "eventfd2" }, /* 19 */ ++ { 1, TD, sys_epoll_create1, "epoll_create1" }, /* 20 */ ++ { 4, TD, sys_epoll_ctl, "epoll_ctl" }, /* 21 */ ++ { 6, TD, sys_epoll_pwait, "epoll_pwait" }, /* 22 */ ++ { 1, TD, sys_dup, "dup" }, /* 23 */ ++ { 3, TD, sys_dup3, "dup3" }, /* 24 */ ++ { 3, TD, sys_fcntl, "fcntl" }, /* 25 */ ++ { 1, TD, sys_inotify_init1, "inotify_init1" }, /* 26 */ ++ { 3, TD, sys_inotify_add_watch, "inotify_add_watch" }, /* 27 */ ++ { 2, TD, sys_inotify_rm_watch, "inotify_rm_watch" }, /* 28 */ ++ { 3, TD, sys_ioctl, "ioctl" }, /* 29 */ ++ { 3, 0, sys_ioprio_set, "ioprio_set" }, /* 30 */ ++ { 2, 0, sys_ioprio_get, "ioprio_get" }, /* 31 */ ++ { 2, TD, sys_flock, "flock" }, /* 32 */ ++ { 4, TD|TF, sys_mknodat, "mknodat" }, /* 33 */ ++ { 3, TD|TF, sys_mkdirat, "mkdirat" }, /* 34 */ ++ { 3, TD|TF, sys_unlinkat, "unlinkat" }, /* 35 */ ++ { 3, TD|TF, sys_symlinkat, "symlinkat" }, /* 36 */ ++ { 5, TD|TF, sys_linkat, "linkat" }, /* 37 */ ++ { 4, TD|TF, sys_renameat, "renameat" }, /* 38 */ ++ { 2, TF, sys_umount2, "umount2" }, /* 39 */ ++ { 5, TF, sys_mount, "mount" }, /* 40 */ ++ { 2, TF, sys_pivotroot, "pivot_root" }, /* 41 */ ++ { 3, 0, sys_nfsservctl, "nfsservctl" }, /* 42 */ ++ { 2, TF, sys_statfs, "statfs64" }, /* 43 */ ++ { 2, TD, sys_fstatfs, "fstatfs64" }, /* 44 */ ++ { 2, TF, sys_truncate, "truncate64" }, /* 45 */ ++ { 2, TD, sys_ftruncate, "ftruncate64" }, /* 46 */ ++ { 6, TD, sys_fallocate, "fallocate" }, /* 47 */ ++ { 3, TD|TF, sys_faccessat, "faccessat" }, /* 48 */ ++ { 1, TF, sys_chdir, "chdir" }, /* 49 */ ++ { 1, TD, sys_fchdir, "fchdir" }, /* 50 */ ++ { 1, TF, sys_chroot, "chroot" }, /* 51 */ ++ { 2, TD, sys_fchmod, "fchmod" }, /* 52 */ ++ { 3, TD|TF, sys_fchmodat, "fchmodat" }, /* 53 */ ++ { 5, TD|TF, sys_fchownat, "fchownat" }, /* 54 */ ++ { 3, TD, sys_fchown, "fchown" }, /* 55 */ ++ { 4, TD|TF, sys_openat, "openat" }, /* 56 */ ++ { 1, TD, sys_close, "close" }, /* 57 */ ++ { 0, 0, sys_vhangup, "vhangup" }, /* 58 */ ++ { 2, TD, sys_pipe2, "pipe2" }, /* 59 */ ++ { 4, TF, sys_quotactl, "quotactl" }, /* 60 */ ++ { 3, TD, sys_getdents64, "getdents64" }, /* 61 */ ++ { 3, TD, sys_lseek, "lseek" }, /* 62 */ ++ { 3, TD, sys_read, "read" }, /* 63 */ ++ { 3, TD, sys_write, "write" }, /* 64 */ ++ { 3, TD, sys_readv, "readv" }, /* 65 */ ++ { 3, TD, sys_writev, "writev" }, /* 66 */ ++ { 5, TD, sys_pread, "pread64" }, /* 67 */ ++ { 5, TD, sys_pwrite, "pwrite64" }, /* 68 */ ++ { 5, TD, sys_preadv, "preadv" }, /* 69 */ ++ { 5, TD, sys_pwritev, "pwritev" }, /* 70 */ ++ { 4, TD|TN, sys_sendfile, "sendfile" }, /* 71 */ ++ { 6, TD, sys_pselect6, "pselect6" }, /* 72 */ ++ { 5, TD, sys_ppoll, "ppoll" }, /* 73 */ ++ { 4, TD|TS, sys_signalfd4, "signalfd4" }, /* 74 */ ++ { 4, TD, sys_vmsplice, "vmsplice" }, /* 75 */ ++ { 6, TD, sys_splice, "splice" }, /* 76 */ ++ { 4, TD, sys_tee, "tee" }, /* 77 */ ++ { 4, TD|TF, sys_readlinkat, "readlinkat" }, /* 78 */ ++ { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 79 */ ++ { 2, TD, sys_fstat, "fstat" }, /* 80 */ ++ { 0, 0, sys_sync, "sync" }, /* 81 */ ++ { 1, TD, sys_fsync, "fsync" }, /* 82 */ ++ { 1, TD, sys_fdatasync, "fdatasync" }, /* 83 */ ++ { 4, TD, sys_sync_file_range, "sync_file_range" }, /* 84 */ ++ { 2, TD, sys_timerfd_create, "timerfd_create" }, /* 85 */ ++ { 4, TD, sys_timerfd_settime, "timerfd_settime" }, /* 86 */ ++ { 2, TD, sys_timerfd_gettime, "timerfd_gettime" }, /* 87 */ ++ { 4, TD|TF, sys_utimensat, "utimensat" }, /* 88 */ ++ { 1, TF, sys_acct, "acct" }, /* 89 */ ++ { 2, 0, sys_capget, "capget" }, /* 90 */ ++ { 2, 0, sys_capset, "capset" }, /* 91 */ ++ { 1, 0, sys_personality, "personality" }, /* 92 */ ++ { 1, TP, sys_exit, "exit" }, /* 93 */ ++ { 1, TP, sys_exit, "exit_group" }, /* 94 */ ++ { 5, TP, sys_waitid, "waitid" }, /* 95 */ ++ { 1, 0, sys_set_tid_address, "set_tid_address" }, /* 96 */ ++ { 1, TP, sys_unshare, "unshare" }, /* 97 */ ++ { 6, 0, sys_futex, "futex" }, /* 98 */ ++ { 2, 0, sys_set_robust_list, "set_robust_list" }, /* 99 */ ++ { 3, 0, sys_get_robust_list, "get_robust_list" }, /* 100 */ ++ { 2, 0, sys_nanosleep, "nanosleep" }, /* 101 */ ++ { 2, 0, sys_getitimer, "getitimer" }, /* 102 */ ++ { 3, 0, sys_setitimer, "setitimer" }, /* 103 */ ++ { 4, 0, sys_kexec_load, "kexec_load" }, /* 104 */ ++ { 3, 0, sys_init_module, "init_module" }, /* 105 */ ++ { 2, 0, sys_delete_module, "delete_module" }, /* 106 */ ++ { 3, 0, sys_timer_create, "timer_create" }, /* 107 */ ++ { 2, 0, sys_timer_gettime, "timer_gettime" }, /* 108 */ ++ { 1, 0, sys_timer_getoverrun, "timer_getoverrun" }, /* 109 */ ++ { 4, 0, sys_timer_settime, "timer_settime" }, /* 110 */ ++ { 1, 0, sys_timer_delete, "timer_delete" }, /* 111 */ ++ { 2, 0, sys_clock_settime, "clock_settime" }, /* 112 */ ++ { 2, 0, sys_clock_gettime, "clock_gettime" }, /* 113 */ ++ { 2, 0, sys_clock_getres, "clock_getres" }, /* 114 */ ++ { 4, 0, sys_clock_nanosleep, "clock_nanosleep" }, /* 115 */ ++ { 3, 0, sys_syslog, "syslog" }, /* 116 */ ++ { 4, 0, sys_ptrace, "ptrace" }, /* 117 */ ++ { 0, 0, sys_sched_setparam, "sched_setparam" }, /* 118 */ ++ { 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 119 */ ++ { 1, 0, sys_sched_getscheduler, "sched_getscheduler" }, /* 120 */ ++ { 2, 0, sys_sched_getparam, "sched_getparam" }, /* 121 */ ++ { 3, 0, sys_sched_setaffinity, "sched_setaffinity" }, /* 122 */ ++ { 3, 0, sys_sched_getaffinity, "sched_getaffinity" }, /* 123 */ ++ { 0, 0, sys_sched_yield, "sched_yield" }, /* 124 */ ++ { 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 125 */ ++ { 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 126 */ ++ { 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 127 */ ++ { 0, 0, sys_restart_syscall, "restart_syscall" }, /* 128 */ ++ { 2, TS, sys_kill, "kill" }, /* 129 */ ++ { 2, TS, sys_kill, "tkill" }, /* 130 */ ++ { 3, TS, sys_tgkill, "tgkill" }, /* 131 */ ++ { 2, TS, sys_sigaltstack, "sigaltstack" }, /* 132 */ ++ { 2, TS, sys_rt_sigsuspend, "rt_sigsuspend" }, /* 133 */ ++ { 4, TS, sys_rt_sigaction, "rt_sigaction" }, /* 134 */ ++ { 4, TS, sys_rt_sigprocmask, "rt_sigprocmask" }, /* 135 */ ++ { 2, TS, sys_rt_sigpending, "rt_sigpending" }, /* 136 */ ++ { 4, TS, sys_rt_sigtimedwait, "rt_sigtimedwait" }, /* 137 */ ++ { 3, TS, sys_rt_sigqueueinfo, "rt_sigqueueinfo" }, /* 138 */ ++ { 0, TS, sys_rt_sigreturn, "rt_sigreturn" }, /* 139 */ ++ { 3, 0, sys_setpriority, "setpriority" }, /* 140 */ ++ { 2, 0, sys_getpriority, "getpriority" }, /* 141 */ ++ { 4, 0, sys_reboot, "reboot" }, /* 142 */ ++ { 2, 0, sys_setregid, "setregid" }, /* 143 */ ++ { 1, 0, sys_setgid, "setgid" }, /* 144 */ ++ { 2, 0, sys_setreuid, "setreuid" }, /* 145 */ ++ { 1, 0, sys_setuid, "setuid" }, /* 146 */ ++ { 3, 0, sys_setresuid, "setresuid" }, /* 147 */ ++ { 3, 0, sys_getresuid, "getresuid" }, /* 148 */ ++ { 3, 0, sys_setresgid, "setresgid" }, /* 149 */ ++ { 3, 0, sys_getresgid, "getresgid" }, /* 150 */ ++ { 1, NF, sys_setfsuid, "setfsuid" }, /* 151 */ ++ { 1, NF, sys_setfsgid, "setfsgid" }, /* 152 */ ++ { 1, 0, sys_times, "times" }, /* 153 */ ++ { 2, 0, sys_setpgid, "setpgid" }, /* 154 */ ++ { 1, 0, sys_getpgid, "getpgid" }, /* 155 */ ++ { 1, 0, sys_getsid, "getsid" }, /* 156 */ ++ { 0, 0, sys_setsid, "setsid" }, /* 157 */ ++ { 2, 0, sys_getgroups, "getgroups" }, /* 158 */ ++ { 2, 0, sys_setgroups, "setgroups" }, /* 159 */ ++ { 1, 0, sys_uname, "uname" }, /* 160 */ ++ { 2, 0, sys_sethostname, "sethostname" }, /* 161 */ ++ { 2, 0, sys_setdomainname, "setdomainname" }, /* 162 */ ++ { 2, 0, sys_getrlimit, "getrlimit" }, /* 163 */ ++ { 2, 0, sys_setrlimit, "setrlimit" }, /* 164 */ ++ { 2, 0, sys_getrusage, "getrusage" }, /* 165 */ ++ { 1, 0, sys_umask, "umask" }, /* 166 */ ++ { 5, 0, sys_prctl, "prctl" }, /* 167 */ ++ { 3, 0, sys_getcpu, "getcpu" }, /* 168 */ ++ { 2, 0, sys_gettimeofday, "gettimeofday" }, /* 169 */ ++ { 2, 0, sys_settimeofday, "settimeofday" }, /* 170 */ ++ { 1, 0, sys_adjtimex, "adjtimex" }, /* 171 */ ++ { 0, 0, sys_getpid, "getpid" }, /* 172 */ ++ { 0, 0, sys_getppid, "getppid" }, /* 173 */ ++ { 0, NF, sys_getuid, "getuid" }, /* 174 */ ++ { 0, NF, sys_geteuid, "geteuid" }, /* 175 */ ++ { 0, NF, sys_getgid, "getgid" }, /* 176 */ ++ { 0, NF, sys_getegid, "getegid" }, /* 177 */ ++ { 0, 0, sys_gettid, "gettid" }, /* 178 */ ++ { 1, 0, sys_sysinfo, "sysinfo" }, /* 179 */ ++ { 4, 0, sys_mq_open, "mq_open" }, /* 180 */ ++ { 1, 0, sys_mq_unlink, "mq_unlink" }, /* 181 */ ++ { 5, 0, sys_mq_timedsend, "mq_timedsend" }, /* 182 */ ++ { 5, 0, sys_mq_timedreceive, "mq_timedreceive" }, /* 183 */ ++ { 2, 0, sys_mq_notify, "mq_notify" }, /* 184 */ ++ { 3, 0, sys_mq_getsetattr, "mq_getsetattr" }, /* 185 */ ++ { 4, TI, sys_msgget, "msgget" }, /* 186 */ ++ { 3, TI, sys_msgctl, "msgctl" }, /* 187 */ ++ { 5, TI, sys_msgrcv, "msgrcv" }, /* 188 */ ++ { 4, TI, sys_msgsnd, "msgsnd" }, /* 189 */ ++ { 4, TI, sys_semget, "semget" }, /* 190 */ ++ { 4, TI, sys_semctl, "semctl" }, /* 191 */ ++ { 5, TI, sys_semtimedop, "semtimedop" }, /* 192 */ ++ { 4, TI, sys_semop, "semop" }, /* 193 */ ++ { 4, TI, sys_shmget, "shmget" }, /* 194 */ ++ { 4, TI, sys_shmctl, "shmctl" }, /* 195 */ ++ { 4, TI, sys_shmat, "shmat" }, /* 196 */ ++ { 4, TI, sys_shmdt, "shmdt" }, /* 197 */ ++ { 3, TN, sys_socket, "socket" }, /* 198 */ ++ { 4, TN, sys_socketpair, "socketpair" }, /* 199 */ ++ { 3, TN, sys_bind, "bind" }, /* 200 */ ++ { 2, TN, sys_listen, "listen" }, /* 201 */ ++ { 3, TN, sys_accept, "accept" }, /* 202 */ ++ { 3, TN, sys_connect, "connect" }, /* 203 */ ++ { 3, TN, sys_getsockname, "getsockname" }, /* 204 */ ++ { 3, TN, sys_getpeername, "getpeername" }, /* 205 */ ++ { 6, TN, sys_sendto, "sendto" }, /* 206 */ ++ { 6, TN, sys_recvfrom, "recvfrom" }, /* 207 */ ++ { 5, TN, sys_setsockopt, "setsockopt" }, /* 208 */ ++ { 5, TN, sys_getsockopt, "getsockopt" }, /* 209 */ ++ { 2, TN, sys_shutdown, "shutdown" }, /* 210 */ ++ { 3, TN, sys_sendmsg, "sendmsg" }, /* 211 */ ++ { 5, TN, sys_recvmsg, "recvmsg" }, /* 212 */ ++ { 4, TD, sys_readahead, "readahead" }, /* 213 */ ++ { 1, TM, sys_brk, "brk" }, /* 214 */ ++ { 2, TM, sys_munmap, "munmap" }, /* 215 */ ++ { 5, TM, sys_mremap, "mremap" }, /* 216 */ ++ { 5, 0, sys_add_key, "add_key" }, /* 217 */ ++ { 4, 0, sys_request_key, "request_key" }, /* 218 */ ++ { 5, 0, sys_keyctl, "keyctl" }, /* 219 */ ++ { 5, TP, sys_clone, "clone" }, /* 220 */ ++ { 3, TF|TP, sys_execve, "execve" }, /* 221 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 222 */ ++ { 4, TD, sys_fadvise64, "fadvise64" }, /* 223 */ ++ { 2, TF, sys_swapon, "swapon" }, /* 224 */ ++ { 1, TF, sys_swapoff, "swapoff" }, /* 225 */ ++ { 3, TM, sys_mprotect, "mprotect" }, /* 226 */ ++ { 3, TM, sys_msync, "msync" }, /* 227 */ ++ { 3, TM, sys_msync, "msync" }, /* 228 */ ++ { 2, TM, sys_munlock, "munlock" }, /* 229 */ ++ { 1, TM, sys_mlockall, "mlockall" }, /* 230 */ ++ { 0, TM, sys_munlockall, "munlockall" }, /* 231 */ ++ { 3, TM, sys_mincore, "mincore" }, /* 232 */ ++ { 3, TM, sys_madvise, "madvise" }, /* 233 */ ++ { 5, TM, sys_remap_file_pages, "remap_file_pages" }, /* 234 */ ++ { 6, TM, sys_mbind, "mbind" }, /* 235 */ ++ { 5, TM, sys_get_mempolicy, "get_mempolicy" }, /* 236 */ ++ { 3, TM, sys_set_mempolicy, "set_mempolicy" }, /* 237 */ ++ { 4, TM, sys_migrate_pages, "migrate_pages" }, /* 238 */ ++ { 6, TM, sys_move_pages, "move_pages" }, /* 239 */ ++ { 4, TP|TS, sys_rt_tgsigqueueinfo, "rt_tgsigqueueinfo" }, /* 240 */ ++ { 5, TD, sys_perf_event_open, "perf_event_open" }, /* 241 */ ++ { 4, TN, sys_accept4, "accept4" }, /* 242 */ ++ { 5, TN, sys_recvmmsg, "recvmmsg" }, /* 243 */ ++ ++ /* Arch-specific block, not used on AArch64 */ ++ [244 ... 259] = { }, ++ ++ { 4, TP, sys_wait4, "wait4" }, /* 260 */ ++ { 4, 0, sys_prlimit64, "prlimit64" }, /* 261 */ ++ { 2, TD, sys_fanotify_init, "fanotify_init" }, /* 262 */ ++ { 5, TD|TF, sys_fanotify_mark, "fanotify_mark" }, /* 263 */ ++ { 5, TD|TF, sys_name_to_handle_at, "name_to_handle_at" }, /* 264 */ ++ { 3, TD, sys_open_by_handle_at, "open_by_handle_at" }, /* 265 */ ++ { 2, 0, sys_clock_adjtime, "clock_adjtime" }, /* 266 */ ++ { 1, TD, sys_syncfs, "syncfs" }, /* 267 */ ++ { 2, TD, sys_setns, "setns" }, /* 268 */ ++ { 4, TN, sys_sendmmsg, "sendmmsg" }, /* 269 */ ++ { 6, 0, sys_process_vm_readv, "process_vm_readv" }, /* 270 */ ++ { 6, 0, sys_process_vm_writev, "process_vm_writev" }, /* 271 */ ++ ++ /* Blank down to 1023 */ ++ [272 ... 1023] = { }, ++ ++ /* Quote from asm-generic/unistd.h: ++ * ++ * All syscalls below here should go away really, ++ * these are provided for both review and as a porting ++ * help for the C library version. ++ * ++ * Last chance: are any of these important enough to ++ * enable by default? ++ */ ++ ++ { 3, TD|TF, sys_open, "open" }, /* 1024 */ ++ { 2, TF, sys_link, "link" }, /* 1025 */ ++ { 1, TF, sys_unlink, "unlink" }, /* 1026 */ ++ { 3, TF, sys_mknod, "mknod" }, /* 1027 */ ++ { 2, TF, sys_chmod, "chmod" }, /* 1028 */ ++ { 3, TF, sys_chown, "chown" }, /* 1029 */ ++ { 2, TF, sys_mkdir, "mkdir" }, /* 1030 */ ++ { 1, TF, sys_rmdir, "rmdir" }, /* 1031 */ ++ { 3, TF, sys_chown, "lchown" }, /* 1032 */ ++ { 2, TF, sys_access, "access" }, /* 1033 */ ++ { 2, TF, sys_rename, "rename" }, /* 1034 */ ++ { 3, TF, sys_readlink, "readlink" }, /* 1035 */ ++ { 2, TF, sys_symlink, "symlink" }, /* 1036 */ ++ { 2, TF, sys_utimes, "utimes" }, /* 1037 */ ++ { 2, TF, sys_stat, "stat" }, /* 1038 */ ++ { 2, TF, sys_lstat, "lstat" }, /* 1039 */ ++ { 1, TD, sys_pipe, "pipe" }, /* 1040 */ ++ { 2, TD, sys_dup2, "dup2" }, /* 1041 */ ++ { 1, TD, sys_epoll_create, "epoll_create" }, /* 1042 */ ++ { 0, TD, sys_inotify_init, "inotify_init" }, /* 1043 */ ++ { 1, TD, sys_eventfd, "eventfd" }, /* 1044 */ ++ { 3, TD|TS, sys_signalfd, "signalfd" }, /* 1045 */ ++ { 4, TD|TN, sys_sendfile, "sendfile" }, /* 1046 */ ++ { 2, TD, sys_ftruncate, "ftruncate" }, /* 1047 */ ++ { 2, TF, sys_truncate, "truncate" }, /* 1048 */ ++ { 2, TF, sys_stat, "stat" }, /* 1049 */ ++ { 2, TF, sys_lstat, "lstat" }, /* 1050 */ ++ { 2, TD, sys_fstat, "fstat" }, /* 1051 */ ++ { 3, TD, sys_fcntl, "fcntl" }, /* 1052 */ ++ { 4, TD, sys_fadvise64, "fadvise64" }, /* 1053 */ ++ { 4, TD|TF, sys_newfstatat, "newfstatat" }, /* 1054 */ ++ { 2, TD, sys_fstatfs, "fstatfs" }, /* 1055 */ ++ { 2, TF, sys_statfs, "statfs" }, /* 1056 */ ++ { 3, TD, sys_lseek, "lseek" }, /* 1057 */ ++ { 6, TD|TM, sys_mmap, "mmap" }, /* 1058 */ ++ { 1, 0, sys_alarm, "alarm" }, /* 1059 */ ++ { 0, 0, sys_getpgrp, "getpgrp" }, /* 1060 */ ++ { 0, TS, sys_pause, "pause" }, /* 1061 */ ++ { 1, 0, sys_time, "time" }, /* 1062 */ ++ { 2, TF, sys_utime, "utime" }, /* 1063 */ ++ { 2, TD|TF, sys_creat, "creat" }, /* 1064 */ ++ { 3, TD, sys_getdents, "getdents" }, /* 1065 */ ++ { 3, TD|TF, sys_futimesat, "futimesat" }, /* 1066 */ ++ { 5, TD, sys_select, "select" }, /* 1067 */ ++ { 3, TD, sys_poll, "poll" }, /* 1068 */ ++ { 4, TD, sys_epoll_wait, "epoll_wait" }, /* 1069 */ ++ { 2, 0, sys_ustat, "ustat" }, /* 1070 */ ++ { 0, TP, sys_vfork, "vfork" }, /* 1071 */ ++ { 4, TP, sys_wait4, "wait4" }, /* 1072 */ ++ { 6, TN, sys_recv, "recv" }, /* 1073 */ ++ { 4, TD|TN, sys_send, "send" }, /* 1074 */ ++ { 2, 0, sys_bdflush, "bdflush" }, /* 1075 */ ++ { 2, TF, sys_umount, "umount" }, /* 1076 */ ++ { 1, TF, sys_uselib, "uselib" }, /* 1077 */ ++ { 1, 0, sys_sysctl, "sysctl" }, /* 1078 */ ++ { 0, TP, sys_fork, "fork" }, /* 1079 */ +diff --git a/syscall.c b/syscall.c +index 680cbc3..69eceed 100644 +--- a/syscall.c ++++ b/syscall.c +@@ -287,6 +287,12 @@ update_personality(struct tcb *tcp, int personality) + fprintf(stderr, "[ Process PID=%d runs in %s mode. ]\n", + tcp->pid, names[personality]); + } ++# elif defined(AARCH64) ++ if (!qflag) { ++ static const char *const names[] = {"32-bit ARM", "AArch64"}; ++ fprintf(stderr, "[ Process PID=%d runs in %s mode. ]\n", ++ tcp->pid, names[personality]); ++ } + # endif + } + #endif +@@ -664,7 +670,8 @@ static long r0; + #elif defined(ARM) + static struct pt_regs regs; + #elif defined(AARCH64) +-static struct user_pt_regs regs; ++static struct user_pt_regs aarch64_regs; ++static struct arm_pt_regs regs; + #elif defined(ALPHA) + static long r0; + static long a3; +@@ -916,6 +923,29 @@ get_scno(struct tcb *tcp) + if (upeek(tcp, PT_R15, &scno) < 0) + return -1; + } ++#elif defined(AARCH64) ++ struct iovec io; ++ char buf[sizeof(aarch64_regs)]; ++ io.iov_base = &buf; ++ io.iov_len = sizeof(aarch64_regs); ++ if (ptrace(PTRACE_GETREGSET, tcp->pid, NT_PRSTATUS, (void *)&io) == -1) ++ return -1; ++ switch (io.iov_len) { ++ case sizeof(aarch64_regs): ++ /* We are in 64-bit mode */ ++ memcpy(&aarch64_regs, buf, sizeof(aarch64_regs)); ++ scno = aarch64_regs.regs[8]; ++ update_personality(tcp, 1); ++ break; ++ case sizeof(regs): ++ /* We are in 32-bit mode */ ++ memcpy(®s, buf, sizeof(regs)); ++ scno = regs.uregs[7]; ++ update_personality(tcp, 0); ++ break; ++ default: ++ return -1; ++ } + #elif defined(ARM) + /* Read complete register set in one go. */ + if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) +@@ -975,13 +1005,6 @@ get_scno(struct tcb *tcp) + fprintf(stderr, "pid %d stray syscall entry\n", tcp->pid); + tcp->flags |= TCB_INSYSCALL; + } +-#elif defined(AARCH64) +- struct iovec io; +- io.iov_base = ®s; +- io.iov_len = sizeof(regs); +- if (ptrace(PTRACE_GETREGSET, tcp->pid, NT_PRSTATUS, (void *)&io) == -1) +- return -1; +- scno = regs.regs[8]; + #elif defined(M68K) + if (upeek(tcp, 4*PT_ORIG_D0, &scno) < 0) + return -1; +@@ -1415,12 +1438,15 @@ get_syscall_args(struct tcb *tcp) + for (i = 0; i < nargs; ++i) + if (upeek(tcp, PT_GR26-4*i, &tcp->u_arg[i]) < 0) + return -1; +-#elif defined(ARM) ++#elif defined(ARM) || defined(AARCH64) ++# if defined(AARCH64) ++ if (tcp->currpers == 1) ++ for (i = 0; i < nargs; ++i) ++ tcp->u_arg[i] = aarch64_regs.regs[i]; ++ else ++# endif /* AARCH64 */ + for (i = 0; i < nargs; ++i) + tcp->u_arg[i] = regs.uregs[i]; +-#elif defined(AARCH64) +- for (i = 0; i < nargs; ++i) +- tcp->u_arg[i] = regs.regs[i]; + #elif defined(AVR32) + (void)i; + (void)nargs; +@@ -1655,16 +1681,31 @@ get_syscall_result(struct tcb *tcp) + return -1; + if (upeek(tcp, PT_R10, &r10) < 0) + return -1; +-#elif defined(ARM) +- /* Read complete register set in one go. */ +- if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) +- return -1; + #elif defined(AARCH64) + struct iovec io; +- io.iov_base = ®s; +- io.iov_len = sizeof(regs); ++ char buf[sizeof(aarch64_regs)]; ++ io.iov_base = &buf; ++ io.iov_len = sizeof(aarch64_regs); + if (ptrace(PTRACE_GETREGSET, tcp->pid, NT_PRSTATUS, (void *)&io) == -1) + return -1; ++ switch (io.iov_len) { ++ case sizeof(aarch64_regs): ++ /* We are in 64-bit mode */ ++ memcpy(&aarch64_regs, buf, sizeof(aarch64_regs)); ++ update_personality(tcp, 1); ++ break; ++ case sizeof(regs): ++ /* We are in 32-bit mode */ ++ memcpy(®s, buf, sizeof(regs)); ++ update_personality(tcp, 0); ++ break; ++ default: ++ return -1; ++ } ++#elif defined(ARM) ++ /* Read complete ARM register set in one go. */ ++ if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) ++ return -1; + #elif defined(M68K) + if (upeek(tcp, 4*PT_D0, &d0) < 0) + return -1; +@@ -1839,21 +1880,27 @@ get_error(struct tcb *tcp) + else { + tcp->u_rval = d0; + } +-#elif defined(ARM) +- if (check_errno && is_negated_errno(regs.ARM_r0)) { +- tcp->u_rval = -1; +- u_error = -regs.ARM_r0; +- } +- else { +- tcp->u_rval = regs.ARM_r0; +- } +-#elif defined(AARCH64) +- if (check_errno && is_negated_errno(regs.regs[0])) { +- tcp->u_rval = -1; +- u_error = -regs.regs[0]; ++#elif defined(ARM) || defined(AARCH64) ++# if defined(AARCH64) ++ if (tcp->currpers == 1) { ++ if (check_errno && is_negated_errno(aarch64_regs.regs[0])) { ++ tcp->u_rval = -1; ++ u_error = -aarch64_regs.regs[0]; ++ } ++ else { ++ tcp->u_rval = aarch64_regs.regs[0]; ++ } + } +- else { +- tcp->u_rval = regs.regs[0]; ++ else ++# endif /* AARCH64 */ ++ { ++ if (check_errno && is_negated_errno(regs.ARM_r0)) { ++ tcp->u_rval = -1; ++ u_error = -regs.ARM_r0; ++ } ++ else { ++ tcp->u_rval = regs.ARM_r0; ++ } + } + #elif defined(AVR32) + if (check_errno && regs.r12 && (unsigned) -regs.r12 < nerrnos) { +-- +1.8.0 + diff --git a/meta/recipes-devtools/strace/strace_4.7.bb b/meta/recipes-devtools/strace/strace_4.7.bb index e1a5e828ed..2d56e9af42 100644 --- a/meta/recipes-devtools/strace/strace_4.7.bb +++ b/meta/recipes-devtools/strace/strace_4.7.bb @@ -3,11 +3,20 @@ HOMEPAGE = "http://strace.sourceforge.net" SECTION = "console/utils" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=124500c21e856f0912df29295ba104c7" -PR = "r2" +PR = "r3" SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \ - file://strace-eglibc-2.16.patch \ - file://strace-x32.patch \ + file://0003-util-fix-building-when-glibc-has-a-stub-process_vm_r.patch \ + file://0014-x32-update-syscall-table.patch \ + file://0018-x32-update-g-s-etsockopt-syscall-numbers.patch \ + file://0024-x32-add-64bit-annotation-too.patch \ + file://0025-Add-e-trace-memory-option.patch \ + file://0026-linux-add-new-errno-values-for-EPROBE_DEFER-and-EOPE.patch \ + file://0027-Add-AArch64-support-to-strace.patch \ + file://0028-Enhance-quotactl-decoding.patch \ + file://0029-Filter-out-redundant-32-ioctl-entries.patch \ + file://0030-Move-asm-generic-ioctl-definitions-to-linux-ioctlent.patch \ + file://0031-Add-support-for-tracing-32-bit-ARM-EABI-binaries-on-.patch \ " SRC_URI[md5sum] = "6054c3880a00c6703f83b57f15e04642" |