1999-02-19 03:21:36 +03:00
/*
* Copyright ( c ) 1993 Branko Lankester < branko @ hacktic . nl >
* Copyright ( c ) 1993 , 1994 , 1995 Rick Sladkey < jrs @ world . std . com >
2017-05-22 20:14:52 +03:00
* Copyright ( c ) 1995 - 2017 The strace developers .
1999-02-19 03:21:36 +03:00
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions
* are met :
* 1. Redistributions of source code must retain the above copyright
* notice , this list of conditions and the following disclaimer .
* 2. Redistributions in binary form must reproduce the above copyright
* notice , this list of conditions and the following disclaimer in the
* documentation and / or other materials provided with the distribution .
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission .
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS ' ' AND ANY EXPRESS OR
* IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED .
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT , INDIRECT ,
* INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT
* NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE ,
* DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT
* ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
*/
2015-07-10 22:24:48 +03:00
[ 0 ] = { 0 , 0 , SEN ( restart_syscall ) , " restart_syscall " } ,
2015-12-08 20:27:40 +03:00
[ 1 ] = { 1 , TP | SE , SEN ( exit ) , " exit " } ,
2015-07-10 22:24:48 +03:00
[ 2 ] = { 0 , TP , SEN ( fork ) , " fork " } ,
[ 3 ] = { 3 , TD , SEN ( read ) , " read " } ,
[ 4 ] = { 3 , TD , SEN ( write ) , " write " } ,
[ 5 ] = { 3 , TD | TF , SEN ( open ) , " open " } ,
[ 6 ] = { 1 , TD , SEN ( close ) , " close " } ,
[ 7 ] = { 3 , TP , SEN ( waitpid ) , " waitpid " } ,
[ 8 ] = { 2 , TD | TF , SEN ( creat ) , " creat " } ,
[ 9 ] = { 2 , TF , SEN ( link ) , " link " } ,
[ 10 ] = { 1 , TF , SEN ( unlink ) , " unlink " } ,
[ 11 ] = { 3 , TF | TP | SE | SI , SEN ( execve ) , " execve " } ,
[ 12 ] = { 1 , TF , SEN ( chdir ) , " chdir " } ,
[ 13 ] = { 1 , 0 , SEN ( time ) , " time " } ,
[ 14 ] = { 3 , TF , SEN ( mknod ) , " mknod " } ,
[ 15 ] = { 2 , TF , SEN ( chmod ) , " chmod " } ,
[ 16 ] = { 3 , TF , SEN ( chown16 ) , " lchown " } ,
[ 17 ] = { 0 , TM , SEN ( break ) , " break " } ,
Implement -e trace=%stat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
* sysent.h (TRACE_STAT): New macro.
* syscall.c: Alias LST to TRACE_STAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_STAT for "%stat".
* strace.1 (.SS Filtering): Add information about %stat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (stat): Add TST flag.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (oldstat, stat, stat64): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (stat, stat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h (oldstat, stat): Likewise.
* linux/alpha/syscallent.h (osf_old_stat, osf_stat, stat, stat64): Likewise.
* linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat,
svr4_stat, svr4_xstat, sysv_stat, sysv_xstat): Likewise.
* tests/gen_tests.in (trace_stat): New entry.
* tests/trace_stat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 04:14:52 +03:00
[ 18 ] = { 2 , TF | TST | TSTA , SEN ( oldstat ) , " oldstat " } ,
2015-07-10 22:24:48 +03:00
[ 19 ] = { 3 , TD , SEN ( lseek ) , " lseek " } ,
2015-12-29 04:06:39 +03:00
[ 20 ] = { 0 , NF , SEN ( getpid ) , " getpid " } ,
2015-07-10 22:24:48 +03:00
[ 21 ] = { 5 , TF , SEN ( mount ) , " mount " } ,
[ 22 ] = { 1 , TF , SEN ( umount ) , " umount " } ,
[ 23 ] = { 1 , 0 , SEN ( setuid16 ) , " setuid " } ,
[ 24 ] = { 0 , NF , SEN ( getuid16 ) , " getuid " } ,
[ 25 ] = { 1 , 0 , SEN ( stime ) , " stime " } ,
[ 26 ] = { 4 , 0 , SEN ( ptrace ) , " ptrace " } ,
[ 27 ] = { 1 , 0 , SEN ( alarm ) , " alarm " } ,
Implement -e trace=%fstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
-e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
* sysent.h (TRACE_FSTAT): New macro.
* syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat".
* strace.1 (.SS Filtering): Add information about %fstat syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstat64, fstatat64): Add TFST flag.
* linux/64/syscallent.h (fstat, newfstatat): Likewise.
* linux/aarch64/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (fstat, fstat64, fstatat64, oldfstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (fstat, fstat64, fstatat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (fstat, fstat64, fstatat64, osf_fstat,
osf_old_fstat): Likewise.
* linux/powerpc64/syscallent.h (fstat, newfstatat, oldfstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
svr4_fstat, sysv_fstat): Likewise.
* tests/gen_tests.in (trace_fstat): New entry.
* tests/trace_fstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TFST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 02:52:58 +03:00
[ 28 ] = { 2 , TD | TFST | TSTA , SEN ( oldfstat ) , " oldfstat " } ,
2015-07-10 22:24:48 +03:00
[ 29 ] = { 0 , TS , SEN ( pause ) , " pause " } ,
[ 30 ] = { 2 , TF , SEN ( utime ) , " utime " } ,
[ 31 ] = { 2 , 0 , SEN ( stty ) , " stty " } ,
[ 32 ] = { 2 , 0 , SEN ( gtty ) , " gtty " } ,
[ 33 ] = { 2 , TF , SEN ( access ) , " access " } ,
[ 34 ] = { 1 , 0 , SEN ( nice ) , " nice " } ,
[ 35 ] = { 0 , 0 , SEN ( ftime ) , " ftime " } ,
[ 36 ] = { 0 , 0 , SEN ( sync ) , " sync " } ,
[ 37 ] = { 2 , TS , SEN ( kill ) , " kill " } ,
[ 38 ] = { 2 , TF , SEN ( rename ) , " rename " } ,
[ 39 ] = { 2 , TF , SEN ( mkdir ) , " mkdir " } ,
[ 40 ] = { 1 , TF , SEN ( rmdir ) , " rmdir " } ,
[ 41 ] = { 1 , TD , SEN ( dup ) , " dup " } ,
[ 42 ] = { 1 , TD , SEN ( pipe ) , " pipe " } ,
[ 43 ] = { 1 , 0 , SEN ( times ) , " times " } ,
[ 44 ] = { 0 , 0 , SEN ( prof ) , " prof " } ,
[ 45 ] = { 1 , TM | SI , SEN ( brk ) , " brk " } ,
[ 46 ] = { 1 , 0 , SEN ( setgid16 ) , " setgid " } ,
[ 47 ] = { 0 , NF , SEN ( getgid16 ) , " getgid " } ,
Fix numbers of syscall arguments in syscall tables
This semi-automatic change brings syscall tables in sync with kernel's
include/linux/syscalls.h file.
* linux/aarch64/syscallent.h (recv): Fix nargs.
* linux/alpha/syscallent.h (sigaltstack, init_module,
sched_getscheduler, settimeofday): Likewise.
* linux/arm/syscallent.h (signal, pciconfig_iobase, msgrcv, msgctl,
shmat, shmdt, shmctl, semtimedop, get_mempolicy, set_mempolicy,
timerfd_create): Likewise.
* linux/bfin/syscallent.h (signal, delete_module): Likewise.
* linux/hppa/syscallent.h (init_module, munlockall, sched_getscheduler,
io_cancel, set_tid_address, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr): Likewise.
* linux/i386/syscallent.h (signal, mmap): Likewise.
* linux/ia64/syscallent.h (init_module, readv, writev,
sched_getscheduler): Likewise.
* linux/m68k/syscallent.h (signal, request_key): Likewise.
* linux/microblaze/syscallent.h (signal, clone, fstatfs64, vmsplice):
Likewise.
* linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module,
delete_module): Likewise.
* linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module,
delete_module): Likewise.
* linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm,
fstatfs64): Likewise.
* linux/powerpc/syscallent.h (signal, spu_run, spu_create): Likewise.
* linux/powerpc64/syscallent.h (signal, pread64, pwrite64, readahead,
fadvise64, lookup_dcookie, spu_run, spu_create, sync_file_range2,
fallocate, preadv, pwritev, fanotify_mark): Likewise.
* linux/s390/syscallent.h (signal, mmap, lookup_dcookie, ipc): Likewise.
* linux/s390x/syscallent.h (signal, ipc): Likewise.
* linux/sh/syscallent.h (signal, ipc, munlockall, fstatfs64, vmsplice):
Likewise.
* linux/sh64/syscallent.h (signal, ipc, msgrcv, msgctl, shmat, shmdt,
shmctl, fstatfs64, vmsplice): Likewise.
* linux/sparc/syscallent.h (ptrace, dup, signal, ipc): Likewise.
* linux/sparc64/syscallent.h (ptrace, dup, signal, pread64, pwrite64,
readahead, lookup_dcookie, fadvise64, fadvise64_64, ipc,
sync_file_range, fallocate, preadv, pwritev, fanotify_mark): Likewise.
* linux/x32/syscallent.h (64:recvmsg): Likewise.
* linux/xtensa/syscallent.h (mremap, futex, reboot, init_module,
delete_module, request_key, getcpu, ioprio_set, ioprio_get, utimensat,
futimesat, fchmodat, faccessat): Likewise.
* NEWS: Mention this fix.
2016-02-12 22:50:38 +03:00
[ 48 ] = { 2 , TS , SEN ( signal ) , " signal " } ,
2015-07-10 22:24:48 +03:00
[ 49 ] = { 0 , NF , SEN ( geteuid16 ) , " geteuid " } ,
[ 50 ] = { 0 , NF , SEN ( getegid16 ) , " getegid " } ,
[ 51 ] = { 1 , TF , SEN ( acct ) , " acct " } ,
[ 52 ] = { 2 , TF , SEN ( umount2 ) , " umount2 " } ,
[ 53 ] = { 0 , 0 , SEN ( lock ) , " lock " } ,
[ 54 ] = { 3 , TD , SEN ( ioctl ) , " ioctl " } ,
[ 55 ] = { 3 , TD , SEN ( fcntl ) , " fcntl " } ,
[ 56 ] = { 0 , 0 , SEN ( mpx ) , " mpx " } ,
[ 57 ] = { 2 , 0 , SEN ( setpgid ) , " setpgid " } ,
[ 58 ] = { 2 , 0 , SEN ( ulimit ) , " ulimit " } ,
[ 59 ] = { 1 , 0 , SEN ( oldolduname ) , " oldolduname " } ,
2015-12-28 03:44:47 +03:00
[ 60 ] = { 1 , NF , SEN ( umask ) , " umask " } ,
2015-07-10 22:24:48 +03:00
[ 61 ] = { 1 , TF , SEN ( chroot ) , " chroot " } ,
Implement -e trace=%%statfs option
linux/*/syscallent*.h part is updated automatically by:
sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h
* sysent.h (TRACE_STATFS_LIKE): New macro.
* syscall.c: Alias TSFA to TRACE_STATFS_LIKE around syscallent.h inclusion.
* qualify.c (lookup_class): Add SCHED_STATFS_LIKE for "%%statfs".
* strace.1 (.SS Filtering): Add information about %%statfs syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (statfs64, fstatfs64): Add TSFA flag.
* linux/64/syscallent.h (statfs, fstatfs): Likewise.
* linux/aarch64/syscallent.h (statfs, fstatfs, ustat): Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (statfs, statfs64, fstatfs, fstatfs64, ustat):
Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/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-n32.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/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/sparc64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (osf_statfs, osf_statfs64, statfs,
ofs_fstatfs, osf_fstatfs64, ustat): Likewise.
* linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise.
* tests/gen_tests.in (trace_statfs_like): New entry.
* tests/trace_statfs_like.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TSFA): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-16 16:30:29 +03:00
[ 62 ] = { 2 , TSFA , SEN ( ustat ) , " ustat " } ,
2015-07-10 22:24:48 +03:00
[ 63 ] = { 2 , TD , SEN ( dup2 ) , " dup2 " } ,
2015-12-29 04:06:39 +03:00
[ 64 ] = { 0 , NF , SEN ( getppid ) , " getppid " } ,
2015-07-10 22:24:48 +03:00
[ 65 ] = { 0 , 0 , SEN ( getpgrp ) , " getpgrp " } ,
[ 66 ] = { 0 , 0 , SEN ( setsid ) , " setsid " } ,
[ 67 ] = { 3 , TS , SEN ( sigaction ) , " sigaction " } ,
2017-05-21 20:51:01 +03:00
[ 68 ] = { 0 , TS , SEN ( sgetmask ) , " sgetmask " } ,
[ 69 ] = { 1 , TS , SEN ( ssetmask ) , " ssetmask " } ,
2015-07-10 22:24:48 +03:00
[ 70 ] = { 2 , 0 , SEN ( setreuid16 ) , " setreuid " } ,
[ 71 ] = { 2 , 0 , SEN ( setregid16 ) , " setregid " } ,
[ 72 ] = { 3 , TS , SEN ( sigsuspend ) , " sigsuspend " } ,
[ 73 ] = { 1 , TS , SEN ( sigpending ) , " sigpending " } ,
[ 74 ] = { 2 , 0 , SEN ( sethostname ) , " sethostname " } ,
[ 75 ] = { 2 , 0 , SEN ( setrlimit ) , " setrlimit " } ,
[ 76 ] = { 2 , 0 , SEN ( getrlimit ) , " getrlimit " } ,
[ 77 ] = { 2 , 0 , SEN ( getrusage ) , " getrusage " } ,
[ 78 ] = { 2 , 0 , SEN ( gettimeofday ) , " gettimeofday " } ,
[ 79 ] = { 2 , 0 , SEN ( settimeofday ) , " settimeofday " } ,
[ 80 ] = { 2 , 0 , SEN ( getgroups16 ) , " getgroups " } ,
[ 81 ] = { 2 , 0 , SEN ( setgroups16 ) , " setgroups " } ,
2015-12-08 20:38:12 +03:00
[ 82 ] = { 1 , TD , SEN ( oldselect ) , " select " } ,
2015-07-10 22:24:48 +03:00
[ 83 ] = { 2 , TF , SEN ( symlink ) , " symlink " } ,
Implement -e trace=%lstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h
* sysent.h (TRACE_LSTAT): New macro.
* syscall.c: Alias TLST to TRACE_LSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_LSTAT for "%lstat".
* strace.1 (.SS Filtering): Add information about %lstat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (lstat): Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (lstat, lstat64, oldlstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/avr32/syscallent.h (lstat, lstat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (lstat, lstat64, osf_lstat, osf_old_lstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat,
sysv_lstat): Likewise.
* tests/gen_tests.in (trace_lstat): New entry.
* tests/trace_lstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TLST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 03:23:05 +03:00
[ 84 ] = { 2 , TF | TLST | TSTA , SEN ( oldlstat ) , " oldlstat " } ,
2015-07-10 22:24:48 +03:00
[ 85 ] = { 3 , TF , SEN ( readlink ) , " readlink " } ,
[ 86 ] = { 1 , TF , SEN ( uselib ) , " uselib " } ,
[ 87 ] = { 2 , TF , SEN ( swapon ) , " swapon " } ,
[ 88 ] = { 4 , 0 , SEN ( reboot ) , " reboot " } ,
[ 89 ] = { 3 , TD , SEN ( readdir ) , " readdir " } ,
Fix numbers of syscall arguments in syscall tables
This semi-automatic change brings syscall tables in sync with kernel's
include/linux/syscalls.h file.
* linux/aarch64/syscallent.h (recv): Fix nargs.
* linux/alpha/syscallent.h (sigaltstack, init_module,
sched_getscheduler, settimeofday): Likewise.
* linux/arm/syscallent.h (signal, pciconfig_iobase, msgrcv, msgctl,
shmat, shmdt, shmctl, semtimedop, get_mempolicy, set_mempolicy,
timerfd_create): Likewise.
* linux/bfin/syscallent.h (signal, delete_module): Likewise.
* linux/hppa/syscallent.h (init_module, munlockall, sched_getscheduler,
io_cancel, set_tid_address, listxattr, llistxattr, flistxattr,
removexattr, lremovexattr, fremovexattr): Likewise.
* linux/i386/syscallent.h (signal, mmap): Likewise.
* linux/ia64/syscallent.h (init_module, readv, writev,
sched_getscheduler): Likewise.
* linux/m68k/syscallent.h (signal, request_key): Likewise.
* linux/microblaze/syscallent.h (signal, clone, fstatfs64, vmsplice):
Likewise.
* linux/mips/syscallent-n32.h (getpgid, statfs, fstatfs, init_module,
delete_module): Likewise.
* linux/mips/syscallent-n64.h (getpgid, statfs, fstatfs, init_module,
delete_module): Likewise.
* linux/mips/syscallent-o32.h (signal, statfs, fstatfs, ioperm,
fstatfs64): Likewise.
* linux/powerpc/syscallent.h (signal, spu_run, spu_create): Likewise.
* linux/powerpc64/syscallent.h (signal, pread64, pwrite64, readahead,
fadvise64, lookup_dcookie, spu_run, spu_create, sync_file_range2,
fallocate, preadv, pwritev, fanotify_mark): Likewise.
* linux/s390/syscallent.h (signal, mmap, lookup_dcookie, ipc): Likewise.
* linux/s390x/syscallent.h (signal, ipc): Likewise.
* linux/sh/syscallent.h (signal, ipc, munlockall, fstatfs64, vmsplice):
Likewise.
* linux/sh64/syscallent.h (signal, ipc, msgrcv, msgctl, shmat, shmdt,
shmctl, fstatfs64, vmsplice): Likewise.
* linux/sparc/syscallent.h (ptrace, dup, signal, ipc): Likewise.
* linux/sparc64/syscallent.h (ptrace, dup, signal, pread64, pwrite64,
readahead, lookup_dcookie, fadvise64, fadvise64_64, ipc,
sync_file_range, fallocate, preadv, pwritev, fanotify_mark): Likewise.
* linux/x32/syscallent.h (64:recvmsg): Likewise.
* linux/xtensa/syscallent.h (mremap, futex, reboot, init_module,
delete_module, request_key, getcpu, ioprio_set, ioprio_get, utimensat,
futimesat, fchmodat, faccessat): Likewise.
* NEWS: Mention this fix.
2016-02-12 22:50:38 +03:00
[ 90 ] = { 1 , TD | TM | SI , SEN ( old_mmap ) , " mmap " } ,
2015-07-10 22:24:48 +03:00
[ 91 ] = { 2 , TM | SI , SEN ( munmap ) , " munmap " } ,
[ 92 ] = { 2 , TF , SEN ( truncate ) , " truncate " } ,
[ 93 ] = { 2 , TD , SEN ( ftruncate ) , " ftruncate " } ,
[ 94 ] = { 2 , TD , SEN ( fchmod ) , " fchmod " } ,
[ 95 ] = { 3 , TD , SEN ( fchown16 ) , " fchown " } ,
[ 96 ] = { 2 , 0 , SEN ( getpriority ) , " getpriority " } ,
[ 97 ] = { 3 , 0 , SEN ( setpriority ) , " setpriority " } ,
[ 98 ] = { 4 , 0 , SEN ( profil ) , " profil " } ,
Implement -e trace=%%statfs option
linux/*/syscallent*.h part is updated automatically by:
sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h
* sysent.h (TRACE_STATFS_LIKE): New macro.
* syscall.c: Alias TSFA to TRACE_STATFS_LIKE around syscallent.h inclusion.
* qualify.c (lookup_class): Add SCHED_STATFS_LIKE for "%%statfs".
* strace.1 (.SS Filtering): Add information about %%statfs syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (statfs64, fstatfs64): Add TSFA flag.
* linux/64/syscallent.h (statfs, fstatfs): Likewise.
* linux/aarch64/syscallent.h (statfs, fstatfs, ustat): Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (statfs, statfs64, fstatfs, fstatfs64, ustat):
Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/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-n32.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/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/sparc64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (osf_statfs, osf_statfs64, statfs,
ofs_fstatfs, osf_fstatfs64, ustat): Likewise.
* linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise.
* tests/gen_tests.in (trace_statfs_like): New entry.
* tests/trace_statfs_like.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TSFA): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-16 16:30:29 +03:00
[ 99 ] = { 2 , TF | TSF | TSFA , SEN ( statfs ) , " statfs " } ,
[ 100 ] = { 2 , TD | TFSF | TSFA , SEN ( fstatfs ) , " fstatfs " } ,
2015-07-10 22:24:48 +03:00
[ 101 ] = { 3 , 0 , SEN ( ioperm ) , " ioperm " } ,
[ 102 ] = { 2 , TD , SEN ( socketcall ) , " socketcall " } ,
[ 103 ] = { 3 , 0 , SEN ( syslog ) , " syslog " } ,
[ 104 ] = { 3 , 0 , SEN ( setitimer ) , " setitimer " } ,
[ 105 ] = { 2 , 0 , SEN ( getitimer ) , " getitimer " } ,
Implement -e trace=%stat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
* sysent.h (TRACE_STAT): New macro.
* syscall.c: Alias LST to TRACE_STAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_STAT for "%stat".
* strace.1 (.SS Filtering): Add information about %stat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (stat): Add TST flag.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (oldstat, stat, stat64): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (stat, stat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h (oldstat, stat): Likewise.
* linux/alpha/syscallent.h (osf_old_stat, osf_stat, stat, stat64): Likewise.
* linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat,
svr4_stat, svr4_xstat, sysv_stat, sysv_xstat): Likewise.
* tests/gen_tests.in (trace_stat): New entry.
* tests/trace_stat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 04:14:52 +03:00
[ 106 ] = { 2 , TF | TST | TSTA , SEN ( stat ) , " stat " } ,
Implement -e trace=%lstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h
* sysent.h (TRACE_LSTAT): New macro.
* syscall.c: Alias TLST to TRACE_LSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_LSTAT for "%lstat".
* strace.1 (.SS Filtering): Add information about %lstat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (lstat): Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (lstat, lstat64, oldlstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/avr32/syscallent.h (lstat, lstat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (lstat, lstat64, osf_lstat, osf_old_lstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat,
sysv_lstat): Likewise.
* tests/gen_tests.in (trace_lstat): New entry.
* tests/trace_lstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TLST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 03:23:05 +03:00
[ 107 ] = { 2 , TF | TLST | TSTA , SEN ( lstat ) , " lstat " } ,
Implement -e trace=%fstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
-e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
* sysent.h (TRACE_FSTAT): New macro.
* syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat".
* strace.1 (.SS Filtering): Add information about %fstat syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstat64, fstatat64): Add TFST flag.
* linux/64/syscallent.h (fstat, newfstatat): Likewise.
* linux/aarch64/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (fstat, fstat64, fstatat64, oldfstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (fstat, fstat64, fstatat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (fstat, fstat64, fstatat64, osf_fstat,
osf_old_fstat): Likewise.
* linux/powerpc64/syscallent.h (fstat, newfstatat, oldfstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
svr4_fstat, sysv_fstat): Likewise.
* tests/gen_tests.in (trace_fstat): New entry.
* tests/trace_fstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TFST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 02:52:58 +03:00
[ 108 ] = { 2 , TD | TFST | TSTA , SEN ( fstat ) , " fstat " } ,
2015-07-10 22:24:48 +03:00
[ 109 ] = { 1 , 0 , SEN ( olduname ) , " olduname " } ,
[ 110 ] = { 1 , 0 , SEN ( iopl ) , " iopl " } ,
[ 111 ] = { 0 , 0 , SEN ( vhangup ) , " vhangup " } ,
[ 112 ] = { 0 , 0 , SEN ( idle ) , " idle " } ,
[ 113 ] = { 1 , 0 , SEN ( vm86old ) , " vm86old " } ,
[ 114 ] = { 4 , TP , SEN ( wait4 ) , " wait4 " } ,
[ 115 ] = { 1 , TF , SEN ( swapoff ) , " swapoff " } ,
[ 116 ] = { 1 , 0 , SEN ( sysinfo ) , " sysinfo " } ,
[ 117 ] = { 6 , TI , SEN ( ipc ) , " ipc " } ,
[ 118 ] = { 1 , TD , SEN ( fsync ) , " fsync " } ,
[ 119 ] = { 0 , TS , SEN ( sigreturn ) , " sigreturn " } ,
[ 120 ] = { 5 , TP , SEN ( clone ) , " clone " } ,
[ 121 ] = { 2 , 0 , SEN ( setdomainname ) , " setdomainname " } ,
[ 122 ] = { 1 , 0 , SEN ( uname ) , " uname " } ,
[ 123 ] = { 3 , 0 , SEN ( modify_ldt ) , " modify_ldt " } ,
[ 124 ] = { 1 , 0 , SEN ( adjtimex ) , " adjtimex " } ,
[ 125 ] = { 3 , TM | SI , SEN ( mprotect ) , " mprotect " } ,
[ 126 ] = { 3 , TS , SEN ( sigprocmask ) , " sigprocmask " } ,
[ 127 ] = { 2 , 0 , SEN ( create_module ) , " create_module " } ,
[ 128 ] = { 3 , 0 , SEN ( init_module ) , " init_module " } ,
[ 129 ] = { 2 , 0 , SEN ( delete_module ) , " delete_module " } ,
[ 130 ] = { 1 , 0 , SEN ( get_kernel_syms ) , " get_kernel_syms " } ,
[ 131 ] = { 4 , TF , SEN ( quotactl ) , " quotactl " } ,
[ 132 ] = { 1 , 0 , SEN ( getpgid ) , " getpgid " } ,
[ 133 ] = { 1 , TD , SEN ( fchdir ) , " fchdir " } ,
2015-11-24 05:17:48 +03:00
[ 134 ] = { 2 , 0 , SEN ( bdflush ) , " bdflush " } ,
2015-07-10 22:24:48 +03:00
[ 135 ] = { 3 , 0 , SEN ( sysfs ) , " sysfs " } ,
2015-12-25 03:34:07 +03:00
[ 136 ] = { 1 , NF , SEN ( personality ) , " personality " } ,
2015-07-10 22:24:48 +03:00
[ 137 ] = { 5 , 0 , SEN ( afs_syscall ) , " afs_syscall " } ,
[ 138 ] = { 1 , NF , SEN ( setfsuid16 ) , " setfsuid " } ,
[ 139 ] = { 1 , NF , SEN ( setfsgid16 ) , " setfsgid " } ,
[ 140 ] = { 5 , TD , SEN ( llseek ) , " _llseek " } ,
[ 141 ] = { 3 , TD , SEN ( getdents ) , " getdents " } ,
2015-12-08 20:38:12 +03:00
[ 142 ] = { 5 , TD , SEN ( select ) , " _newselect " } ,
2015-07-10 22:24:48 +03:00
[ 143 ] = { 2 , TD , SEN ( flock ) , " flock " } ,
[ 144 ] = { 3 , TM , SEN ( msync ) , " msync " } ,
[ 145 ] = { 3 , TD , SEN ( readv ) , " readv " } ,
[ 146 ] = { 3 , TD , SEN ( writev ) , " writev " } ,
[ 147 ] = { 1 , 0 , SEN ( getsid ) , " getsid " } ,
[ 148 ] = { 1 , TD , SEN ( fdatasync ) , " fdatasync " } ,
[ 149 ] = { 1 , 0 , SEN ( sysctl ) , " _sysctl " } ,
[ 150 ] = { 2 , TM , SEN ( mlock ) , " mlock " } ,
[ 151 ] = { 2 , TM , SEN ( munlock ) , " munlock " } ,
[ 152 ] = { 1 , TM , SEN ( mlockall ) , " mlockall " } ,
[ 153 ] = { 0 , TM , SEN ( munlockall ) , " munlockall " } ,
2017-04-14 18:06:42 +03:00
[ 154 ] = { 2 , 0 , SEN ( sched_setparam ) , " sched_setparam " } ,
[ 155 ] = { 2 , 0 , SEN ( sched_getparam ) , " sched_getparam " } ,
[ 156 ] = { 3 , 0 , SEN ( sched_setscheduler ) , " sched_setscheduler " } ,
[ 157 ] = { 1 , 0 , SEN ( sched_getscheduler ) , " sched_getscheduler " } ,
[ 158 ] = { 0 , 0 , SEN ( sched_yield ) , " sched_yield " } ,
[ 159 ] = { 1 , 0 , SEN ( sched_get_priority_max ) , " sched_get_priority_max " } ,
[ 160 ] = { 1 , 0 , SEN ( sched_get_priority_min ) , " sched_get_priority_min " } ,
[ 161 ] = { 2 , 0 , SEN ( sched_rr_get_interval ) , " sched_rr_get_interval " } ,
2015-07-10 22:24:48 +03:00
[ 162 ] = { 2 , 0 , SEN ( nanosleep ) , " nanosleep " } ,
[ 163 ] = { 5 , TM | SI , SEN ( mremap ) , " mremap " } ,
[ 164 ] = { 3 , 0 , SEN ( setresuid16 ) , " setresuid " } ,
[ 165 ] = { 3 , 0 , SEN ( getresuid16 ) , " getresuid " } ,
[ 166 ] = { 5 , 0 , SEN ( vm86 ) , " vm86 " } ,
[ 167 ] = { 5 , 0 , SEN ( query_module ) , " query_module " } ,
[ 168 ] = { 3 , TD , SEN ( poll ) , " poll " } ,
[ 169 ] = { 3 , 0 , SEN ( nfsservctl ) , " nfsservctl " } ,
[ 170 ] = { 3 , 0 , SEN ( setresgid16 ) , " setresgid " } ,
[ 171 ] = { 3 , 0 , SEN ( getresgid16 ) , " getresgid " } ,
[ 172 ] = { 5 , 0 , SEN ( prctl ) , " prctl " } ,
[ 173 ] = { 0 , TS , SEN ( rt_sigreturn ) , " rt_sigreturn " } ,
[ 174 ] = { 4 , TS , SEN ( rt_sigaction ) , " rt_sigaction " } ,
[ 175 ] = { 4 , TS , SEN ( rt_sigprocmask ) , " rt_sigprocmask " } ,
[ 176 ] = { 2 , TS , SEN ( rt_sigpending ) , " rt_sigpending " } ,
[ 177 ] = { 4 , TS , SEN ( rt_sigtimedwait ) , " rt_sigtimedwait " } ,
[ 178 ] = { 3 , TS , SEN ( rt_sigqueueinfo ) , " rt_sigqueueinfo " } ,
[ 179 ] = { 2 , TS , SEN ( rt_sigsuspend ) , " rt_sigsuspend " } ,
[ 180 ] = { 5 , TD , SEN ( pread ) , " pread64 " } ,
[ 181 ] = { 5 , TD , SEN ( pwrite ) , " pwrite64 " } ,
[ 182 ] = { 3 , TF , SEN ( chown16 ) , " chown " } ,
[ 183 ] = { 2 , TF , SEN ( getcwd ) , " getcwd " } ,
[ 184 ] = { 2 , 0 , SEN ( capget ) , " capget " } ,
[ 185 ] = { 2 , 0 , SEN ( capset ) , " capset " } ,
[ 186 ] = { 2 , TS , SEN ( sigaltstack ) , " sigaltstack " } ,
[ 187 ] = { 4 , TD | TN , SEN ( sendfile ) , " sendfile " } ,
Fix syscall entries of unimplemented getpmsg and putpmsg syscalls
* linux/ia64/syscallent.h (getpmsg): Change SEN(printargs)
to SEN(getpmsg).
(putpmsg): Change SEN(printargs) to SEN(putpmsg).
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/arm/syscallent.h (getpmsg, putpmsg): Set sys_flags to TN.
* linux/bfin/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/hppa/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/i386/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/m68k/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/microblaze/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/powerpc/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/s390/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/s390x/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/x32/syscallent.h (getpmsg, putpmsg): Likewise.
* linux/x86_64/syscallent.h (getpmsg, putpmsg): Likewise.
2015-11-24 05:45:11 +03:00
[ 188 ] = { 5 , TN , SEN ( getpmsg ) , " getpmsg " } ,
[ 189 ] = { 5 , TN , SEN ( putpmsg ) , " putpmsg " } ,
2015-07-10 22:24:48 +03:00
[ 190 ] = { 0 , TP , SEN ( vfork ) , " vfork " } ,
[ 191 ] = { 2 , 0 , SEN ( getrlimit ) , " ugetrlimit " } ,
[ 192 ] = { 6 , TD | TM | SI , SEN ( mmap_pgoff ) , " mmap2 " } ,
[ 193 ] = { 3 , TF , SEN ( truncate64 ) , " truncate64 " } ,
[ 194 ] = { 3 , TD , SEN ( ftruncate64 ) , " ftruncate64 " } ,
Implement -e trace=%stat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/statx/! s/TF|TSTA,/TF|TST|TSTA,/' linux/*/syscallent*.h
* sysent.h (TRACE_STAT): New macro.
* syscall.c: Alias LST to TRACE_STAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_STAT for "%stat".
* strace.1 (.SS Filtering): Add information about %stat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (stat): Add TST flag.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (oldstat, stat, stat64): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (stat, stat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h (oldstat, stat): Likewise.
* linux/alpha/syscallent.h (osf_old_stat, osf_stat, stat, stat64): Likewise.
* linux/mips/syscallent-compat.h (bsd43_oldstat, bsd43_stat, posix_stat,
svr4_stat, svr4_xstat, sysv_stat, sysv_xstat): Likewise.
* tests/gen_tests.in (trace_stat): New entry.
* tests/trace_stat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 04:14:52 +03:00
[ 195 ] = { 2 , TF | TST | TSTA , SEN ( stat64 ) , " stat64 " } ,
Implement -e trace=%lstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/TSTA,.*lx\?stat/ s/TSTA,/TLST|&/' linux/*/syscallent*.h
* sysent.h (TRACE_LSTAT): New macro.
* syscall.c: Alias TLST to TRACE_LSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_LSTAT for "%lstat".
* strace.1 (.SS Filtering): Add information about %lstat syscall class.
* NEWS: Mention this change.
* linux/aarch64/syscallent.h (lstat): Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (lstat, lstat64, oldlstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/avr32/syscallent.h (lstat, lstat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/powerpc64/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (lstat, lstat64, osf_lstat, osf_old_lstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_lstat, posix_lstat, svr4_lstat,
sysv_lstat): Likewise.
* tests/gen_tests.in (trace_lstat): New entry.
* tests/trace_lstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TLST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 03:23:05 +03:00
[ 196 ] = { 2 , TF | TLST | TSTA , SEN ( lstat64 ) , " lstat64 " } ,
Implement -e trace=%fstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
-e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
* sysent.h (TRACE_FSTAT): New macro.
* syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat".
* strace.1 (.SS Filtering): Add information about %fstat syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstat64, fstatat64): Add TFST flag.
* linux/64/syscallent.h (fstat, newfstatat): Likewise.
* linux/aarch64/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (fstat, fstat64, fstatat64, oldfstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (fstat, fstat64, fstatat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (fstat, fstat64, fstatat64, osf_fstat,
osf_old_fstat): Likewise.
* linux/powerpc64/syscallent.h (fstat, newfstatat, oldfstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
svr4_fstat, sysv_fstat): Likewise.
* tests/gen_tests.in (trace_fstat): New entry.
* tests/trace_fstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TFST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 02:52:58 +03:00
[ 197 ] = { 2 , TD | TFST | TSTA , SEN ( fstat64 ) , " fstat64 " } ,
2015-07-10 22:24:48 +03:00
[ 198 ] = { 3 , TF , SEN ( chown ) , " lchown32 " } ,
[ 199 ] = { 0 , NF , SEN ( getuid ) , " getuid32 " } ,
[ 200 ] = { 0 , NF , SEN ( getgid ) , " getgid32 " } ,
[ 201 ] = { 0 , NF , SEN ( geteuid ) , " geteuid32 " } ,
[ 202 ] = { 0 , NF , SEN ( getegid ) , " getegid32 " } ,
[ 203 ] = { 2 , 0 , SEN ( setreuid ) , " setreuid32 " } ,
[ 204 ] = { 2 , 0 , SEN ( setregid ) , " setregid32 " } ,
[ 205 ] = { 2 , 0 , SEN ( getgroups ) , " getgroups32 " } ,
[ 206 ] = { 2 , 0 , SEN ( setgroups ) , " setgroups32 " } ,
[ 207 ] = { 3 , TD , SEN ( fchown ) , " fchown32 " } ,
[ 208 ] = { 3 , 0 , SEN ( setresuid ) , " setresuid32 " } ,
[ 209 ] = { 3 , 0 , SEN ( getresuid ) , " getresuid32 " } ,
[ 210 ] = { 3 , 0 , SEN ( setresgid ) , " setresgid32 " } ,
[ 211 ] = { 3 , 0 , SEN ( getresgid ) , " getresgid32 " } ,
[ 212 ] = { 3 , TF , SEN ( chown ) , " chown32 " } ,
[ 213 ] = { 1 , 0 , SEN ( setuid ) , " setuid32 " } ,
[ 214 ] = { 1 , 0 , SEN ( setgid ) , " setgid32 " } ,
[ 215 ] = { 1 , NF , SEN ( setfsuid ) , " setfsuid32 " } ,
[ 216 ] = { 1 , NF , SEN ( setfsgid ) , " setfsgid32 " } ,
[ 217 ] = { 2 , TF , SEN ( pivotroot ) , " pivot_root " } ,
[ 218 ] = { 3 , TM , SEN ( mincore ) , " mincore " } ,
[ 219 ] = { 3 , TM , SEN ( madvise ) , " madvise " } ,
[ 220 ] = { 3 , TD , SEN ( getdents64 ) , " getdents64 " } ,
2015-12-05 00:42:58 +03:00
[ 221 ] = { 3 , TD , SEN ( fcntl64 ) , " fcntl64 " } ,
2015-12-08 05:49:39 +03:00
[ 222 . . . 223 ] = { } ,
2015-12-29 04:06:39 +03:00
[ 224 ] = { 0 , NF , SEN ( gettid ) , " gettid " } ,
2015-07-10 22:24:48 +03:00
[ 225 ] = { 4 , TD , SEN ( readahead ) , " readahead " } ,
[ 226 ] = { 5 , TF , SEN ( setxattr ) , " setxattr " } ,
[ 227 ] = { 5 , TF , SEN ( setxattr ) , " lsetxattr " } ,
[ 228 ] = { 5 , TD , SEN ( fsetxattr ) , " fsetxattr " } ,
[ 229 ] = { 4 , TF , SEN ( getxattr ) , " getxattr " } ,
[ 230 ] = { 4 , TF , SEN ( getxattr ) , " lgetxattr " } ,
[ 231 ] = { 4 , TD , SEN ( fgetxattr ) , " fgetxattr " } ,
[ 232 ] = { 3 , TF , SEN ( listxattr ) , " listxattr " } ,
[ 233 ] = { 3 , TF , SEN ( listxattr ) , " llistxattr " } ,
[ 234 ] = { 3 , TD , SEN ( flistxattr ) , " flistxattr " } ,
[ 235 ] = { 2 , TF , SEN ( removexattr ) , " removexattr " } ,
[ 236 ] = { 2 , TF , SEN ( removexattr ) , " lremovexattr " } ,
[ 237 ] = { 2 , TD , SEN ( fremovexattr ) , " fremovexattr " } ,
[ 238 ] = { 2 , TS , SEN ( kill ) , " tkill " } ,
[ 239 ] = { 4 , TD | TN , SEN ( sendfile64 ) , " sendfile64 " } ,
[ 240 ] = { 6 , 0 , SEN ( futex ) , " futex " } ,
2017-04-14 18:06:42 +03:00
[ 241 ] = { 3 , 0 , SEN ( sched_setaffinity ) , " sched_setaffinity " } ,
[ 242 ] = { 3 , 0 , SEN ( sched_getaffinity ) , " sched_getaffinity " } ,
2015-07-10 22:24:48 +03:00
[ 243 ] = { 1 , 0 , SEN ( set_thread_area ) , " set_thread_area " } ,
[ 244 ] = { 1 , 0 , SEN ( get_thread_area ) , " get_thread_area " } ,
2016-09-09 05:38:32 +03:00
[ 245 ] = { 2 , TM , SEN ( io_setup ) , " io_setup " } ,
[ 246 ] = { 1 , TM , SEN ( io_destroy ) , " io_destroy " } ,
2015-07-10 22:24:48 +03:00
[ 247 ] = { 5 , 0 , SEN ( io_getevents ) , " io_getevents " } ,
[ 248 ] = { 3 , 0 , SEN ( io_submit ) , " io_submit " } ,
[ 249 ] = { 3 , 0 , SEN ( io_cancel ) , " io_cancel " } ,
[ 250 ] = { 5 , TD , SEN ( fadvise64 ) , " fadvise64 " } ,
2015-01-11 05:42:56 +03:00
[ 251 ] = { } , /* sys_set_zone_reclaim */
2015-07-10 22:24:48 +03:00
[ 252 ] = { 1 , TP | SE , SEN ( exit ) , " exit_group " } ,
[ 253 ] = { 4 , 0 , SEN ( lookup_dcookie ) , " lookup_dcookie " } ,
[ 254 ] = { 1 , TD , SEN ( epoll_create ) , " epoll_create " } ,
[ 255 ] = { 4 , TD , SEN ( epoll_ctl ) , " epoll_ctl " } ,
[ 256 ] = { 4 , TD , SEN ( epoll_wait ) , " epoll_wait " } ,
[ 257 ] = { 5 , TM | SI , SEN ( remap_file_pages ) , " remap_file_pages " } ,
[ 258 ] = { 1 , 0 , SEN ( set_tid_address ) , " set_tid_address " } ,
[ 259 ] = { 3 , 0 , SEN ( timer_create ) , " timer_create " } ,
[ 260 ] = { 4 , 0 , SEN ( timer_settime ) , " timer_settime " } ,
[ 261 ] = { 2 , 0 , SEN ( timer_gettime ) , " timer_gettime " } ,
[ 262 ] = { 1 , 0 , SEN ( timer_getoverrun ) , " timer_getoverrun " } ,
[ 263 ] = { 1 , 0 , SEN ( timer_delete ) , " timer_delete " } ,
2017-04-14 18:06:42 +03:00
[ 264 ] = { 2 , 0 , SEN ( clock_settime ) , " clock_settime " } ,
[ 265 ] = { 2 , 0 , SEN ( clock_gettime ) , " clock_gettime " } ,
[ 266 ] = { 2 , 0 , SEN ( clock_getres ) , " clock_getres " } ,
[ 267 ] = { 4 , 0 , SEN ( clock_nanosleep ) , " clock_nanosleep " } ,
Implement -e trace=%%statfs option
linux/*/syscallent*.h part is updated automatically by:
sed -i 's/\(TSF\),[[:space:]]\?/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/\(TFSF\),/\1|TSFA,/' linux/*/syscallent*.h
sed -i 's/0\(,.*ustat\)/TSFA\1/' linux/*/syscallent*.h
* sysent.h (TRACE_STATFS_LIKE): New macro.
* syscall.c: Alias TSFA to TRACE_STATFS_LIKE around syscallent.h inclusion.
* qualify.c (lookup_class): Add SCHED_STATFS_LIKE for "%%statfs".
* strace.1 (.SS Filtering): Add information about %%statfs syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (statfs64, fstatfs64): Add TSFA flag.
* linux/64/syscallent.h (statfs, fstatfs): Likewise.
* linux/aarch64/syscallent.h (statfs, fstatfs, ustat): Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (statfs, statfs64, fstatfs, fstatfs64, ustat):
Likewise.
* linux/avr32/syscallent.h: Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/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-n32.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/powerpc64/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/sparc64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (osf_statfs, osf_statfs64, statfs,
ofs_fstatfs, osf_fstatfs64, ustat): Likewise.
* linux/mips/syscallent-compat.h (*_statfs, *_statvfs, *_fstatfs): Likewise.
* tests/gen_tests.in (trace_statfs_like): New entry.
* tests/trace_statfs_like.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TSFA): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-16 16:30:29 +03:00
[ 268 ] = { 3 , TF | TSF | TSFA , SEN ( statfs64 ) , " statfs64 " } ,
[ 269 ] = { 3 , TD | TFSF | TSFA , SEN ( fstatfs64 ) , " fstatfs64 " } ,
2015-07-10 22:24:48 +03:00
[ 270 ] = { 3 , TS , SEN ( tgkill ) , " tgkill " } ,
[ 271 ] = { 2 , TF , SEN ( utimes ) , " utimes " } ,
[ 272 ] = { 6 , TD , SEN ( fadvise64_64 ) , " fadvise64_64 " } ,
[ 273 ] = { 5 , 0 , SEN ( vserver ) , " vserver " } ,
[ 274 ] = { 6 , TM , SEN ( mbind ) , " mbind " } ,
[ 275 ] = { 5 , TM , SEN ( get_mempolicy ) , " get_mempolicy " } ,
[ 276 ] = { 3 , TM , SEN ( set_mempolicy ) , " set_mempolicy " } ,
[ 277 ] = { 4 , 0 , SEN ( mq_open ) , " mq_open " } ,
[ 278 ] = { 1 , 0 , SEN ( mq_unlink ) , " mq_unlink " } ,
[ 279 ] = { 5 , 0 , SEN ( mq_timedsend ) , " mq_timedsend " } ,
[ 280 ] = { 5 , 0 , SEN ( mq_timedreceive ) , " mq_timedreceive " } ,
[ 281 ] = { 2 , 0 , SEN ( mq_notify ) , " mq_notify " } ,
[ 282 ] = { 3 , 0 , SEN ( mq_getsetattr ) , " mq_getsetattr " } ,
[ 283 ] = { 4 , 0 , SEN ( kexec_load ) , " kexec_load " } ,
[ 284 ] = { 5 , TP , SEN ( waitid ) , " waitid " } ,
2015-01-11 05:42:56 +03:00
[ 285 ] = { } , /* sys_setaltroot */
2015-07-10 22:24:48 +03:00
[ 286 ] = { 5 , 0 , SEN ( add_key ) , " add_key " } ,
[ 287 ] = { 4 , 0 , SEN ( request_key ) , " request_key " } ,
[ 288 ] = { 5 , 0 , SEN ( keyctl ) , " keyctl " } ,
[ 289 ] = { 3 , 0 , SEN ( ioprio_set ) , " ioprio_set " } ,
[ 290 ] = { 2 , 0 , SEN ( ioprio_get ) , " ioprio_get " } ,
[ 291 ] = { 0 , TD , SEN ( inotify_init ) , " inotify_init " } ,
2017-08-11 08:43:58 +03:00
[ 292 ] = { 3 , TD | TF , SEN ( inotify_add_watch ) , " inotify_add_watch " } ,
2015-07-10 22:24:48 +03:00
[ 293 ] = { 2 , TD , SEN ( inotify_rm_watch ) , " inotify_rm_watch " } ,
[ 294 ] = { 4 , TM , SEN ( migrate_pages ) , " migrate_pages " } ,
[ 295 ] = { 4 , TD | TF , SEN ( openat ) , " openat " } ,
[ 296 ] = { 3 , TD | TF , SEN ( mkdirat ) , " mkdirat " } ,
[ 297 ] = { 4 , TD | TF , SEN ( mknodat ) , " mknodat " } ,
[ 298 ] = { 5 , TD | TF , SEN ( fchownat ) , " fchownat " } ,
[ 299 ] = { 3 , TD | TF , SEN ( futimesat ) , " futimesat " } ,
Implement -e trace=%fstat option
linux/*/syscallent*.h part is updated automatically by:
sed -i -e '/TSTA.*fx\?stat/ s/TSTA,/TFST|&/' \
-e 's/\(TD|TF|TFST|TSTA,\)[[:space:]]/\1/' linux/*/syscallent*.h
* sysent.h (TRACE_FSTAT): New macro.
* syscall.c: Alias TFST to TRACE_FSTAT around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_FSTAT for "%fstat".
* strace.1 (.SS Filtering): Add information about %fstat syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstat64, fstatat64): Add TFST flag.
* linux/64/syscallent.h (fstat, newfstatat): Likewise.
* linux/aarch64/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h (fstat, fstat64, fstatat64, oldfstat): Likewise.
* linux/bfin/syscallent.h: Likewise.
* linux/crisv10/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/avr32/syscallent.h (fstat, fstat64, fstatat64): Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
* linux/alpha/syscallent.h (fstat, fstat64, fstatat64, osf_fstat,
osf_old_fstat): Likewise.
* linux/powerpc64/syscallent.h (fstat, newfstatat, oldfstat): Likewise.
* linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_oldfstat, posix_fstat,
svr4_fstat, sysv_fstat): Likewise.
* tests/gen_tests.in (trace_fstat): New entry.
* tests/trace_fstat.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TFST): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 02:52:58 +03:00
[ 300 ] = { 4 , TD | TF | TFST | TSTA , SEN ( fstatat64 ) , " fstatat64 " } ,
2015-07-10 22:24:48 +03:00
[ 301 ] = { 3 , TD | TF , SEN ( unlinkat ) , " unlinkat " } ,
[ 302 ] = { 4 , TD | TF , SEN ( renameat ) , " renameat " } ,
[ 303 ] = { 5 , TD | TF , SEN ( linkat ) , " linkat " } ,
[ 304 ] = { 3 , TD | TF , SEN ( symlinkat ) , " symlinkat " } ,
[ 305 ] = { 4 , TD | TF , SEN ( readlinkat ) , " readlinkat " } ,
[ 306 ] = { 3 , TD | TF , SEN ( fchmodat ) , " fchmodat " } ,
[ 307 ] = { 3 , TD | TF , SEN ( faccessat ) , " faccessat " } ,
[ 308 ] = { 6 , TD , SEN ( pselect6 ) , " pselect6 " } ,
[ 309 ] = { 5 , TD , SEN ( ppoll ) , " ppoll " } ,
[ 310 ] = { 1 , TP , SEN ( unshare ) , " unshare " } ,
[ 311 ] = { 2 , 0 , SEN ( set_robust_list ) , " set_robust_list " } ,
[ 312 ] = { 3 , 0 , SEN ( get_robust_list ) , " get_robust_list " } ,
[ 313 ] = { 6 , TD , SEN ( splice ) , " splice " } ,
[ 314 ] = { 6 , TD , SEN ( sync_file_range ) , " sync_file_range " } ,
[ 315 ] = { 4 , TD , SEN ( tee ) , " tee " } ,
[ 316 ] = { 4 , TD , SEN ( vmsplice ) , " vmsplice " } ,
[ 317 ] = { 6 , TM , SEN ( move_pages ) , " move_pages " } ,
[ 318 ] = { 3 , 0 , SEN ( getcpu ) , " getcpu " } ,
[ 319 ] = { 6 , TD , SEN ( epoll_pwait ) , " epoll_pwait " } ,
[ 320 ] = { 4 , TD | TF , SEN ( utimensat ) , " utimensat " } ,
[ 321 ] = { 3 , TD | TS , SEN ( signalfd ) , " signalfd " } ,
[ 322 ] = { 2 , TD , SEN ( timerfd_create ) , " timerfd_create " } ,
[ 323 ] = { 1 , TD , SEN ( eventfd ) , " eventfd " } ,
[ 324 ] = { 6 , TD , SEN ( fallocate ) , " fallocate " } ,
[ 325 ] = { 4 , TD , SEN ( timerfd_settime ) , " timerfd_settime " } ,
[ 326 ] = { 2 , TD , SEN ( timerfd_gettime ) , " timerfd_gettime " } ,
[ 327 ] = { 4 , TD | TS , SEN ( signalfd4 ) , " signalfd4 " } ,
[ 328 ] = { 2 , TD , SEN ( eventfd2 ) , " eventfd2 " } ,
[ 329 ] = { 1 , TD , SEN ( epoll_create1 ) , " epoll_create1 " } ,
[ 330 ] = { 3 , TD , SEN ( dup3 ) , " dup3 " } ,
[ 331 ] = { 2 , TD , SEN ( pipe2 ) , " pipe2 " } ,
[ 332 ] = { 1 , TD , SEN ( inotify_init1 ) , " inotify_init1 " } ,
[ 333 ] = { 5 , TD , SEN ( preadv ) , " preadv " } ,
[ 334 ] = { 5 , TD , SEN ( pwritev ) , " pwritev " } ,
[ 335 ] = { 4 , TP | TS , SEN ( rt_tgsigqueueinfo ) , " rt_tgsigqueueinfo " } ,
[ 336 ] = { 5 , TD , SEN ( perf_event_open ) , " perf_event_open " } ,
[ 337 ] = { 5 , TN , SEN ( recvmmsg ) , " recvmmsg " } ,
[ 338 ] = { 2 , TD , SEN ( fanotify_init ) , " fanotify_init " } ,
[ 339 ] = { 6 , TD | TF , SEN ( fanotify_mark ) , " fanotify_mark " } ,
[ 340 ] = { 4 , 0 , SEN ( prlimit64 ) , " prlimit64 " } ,
[ 341 ] = { 5 , TD | TF , SEN ( name_to_handle_at ) , " name_to_handle_at " } ,
[ 342 ] = { 3 , TD , SEN ( open_by_handle_at ) , " open_by_handle_at " } ,
2017-04-14 18:06:42 +03:00
[ 343 ] = { 2 , 0 , SEN ( clock_adjtime ) , " clock_adjtime " } ,
2015-07-10 22:24:48 +03:00
[ 344 ] = { 1 , TD , SEN ( syncfs ) , " syncfs " } ,
[ 345 ] = { 4 , TN , SEN ( sendmmsg ) , " sendmmsg " } ,
[ 346 ] = { 2 , TD , SEN ( setns ) , " setns " } ,
[ 347 ] = { 6 , 0 , SEN ( process_vm_readv ) , " process_vm_readv " } ,
[ 348 ] = { 6 , 0 , SEN ( process_vm_writev ) , " process_vm_writev " } ,
[ 349 ] = { 5 , 0 , SEN ( kcmp ) , " kcmp " } ,
[ 350 ] = { 3 , TD , SEN ( finit_module ) , " finit_module " } ,
2017-04-14 18:06:42 +03:00
[ 351 ] = { 3 , 0 , SEN ( sched_setattr ) , " sched_setattr " } ,
[ 352 ] = { 4 , 0 , SEN ( sched_getattr ) , " sched_getattr " } ,
2015-07-10 22:24:48 +03:00
[ 353 ] = { 5 , TD | TF , SEN ( renameat2 ) , " renameat2 " } ,
2017-01-12 02:48:41 +03:00
[ 354 ] = { 3 , 0 , SEN ( seccomp ) , " seccomp " } ,
[ 355 ] = { 3 , 0 , SEN ( getrandom ) , " getrandom " } ,
[ 356 ] = { 2 , TD , SEN ( memfd_create ) , " memfd_create " } ,
[ 357 ] = { 3 , TD , SEN ( bpf ) , " bpf " } ,
[ 358 ] = { 5 , TD | TF | TP | SE | SI , SEN ( execveat ) , " execveat " } ,
i386: wire up direct socket syscalls
Starting with linux commit v4.2-rc1-64-g9dea5dc, x86 has direct
socket syscalls in addition to traditional socketcall syscall.
* linux/i386/syscallent.h (socket, socketpair, bind, connect, listen,
accept4, getsockopt, setsockopt, getsockname, getpeername, sendto,
sendmsg, recvfrom, recvmsg, shutdown): New entries.
2015-11-15 04:40:26 +03:00
[ 359 ] = { 3 , TN , SEN ( socket ) , " socket " } ,
[ 360 ] = { 4 , TN , SEN ( socketpair ) , " socketpair " } ,
[ 361 ] = { 3 , TN , SEN ( bind ) , " bind " } ,
[ 362 ] = { 3 , TN , SEN ( connect ) , " connect " } ,
[ 363 ] = { 2 , TN , SEN ( listen ) , " listen " } ,
[ 364 ] = { 4 , TN , SEN ( accept4 ) , " accept4 " } ,
[ 365 ] = { 5 , TN , SEN ( getsockopt ) , " getsockopt " } ,
[ 366 ] = { 5 , TN , SEN ( setsockopt ) , " setsockopt " } ,
[ 367 ] = { 3 , TN , SEN ( getsockname ) , " getsockname " } ,
[ 368 ] = { 3 , TN , SEN ( getpeername ) , " getpeername " } ,
[ 369 ] = { 6 , TN , SEN ( sendto ) , " sendto " } ,
[ 370 ] = { 3 , TN , SEN ( sendmsg ) , " sendmsg " } ,
[ 371 ] = { 6 , TN , SEN ( recvfrom ) , " recvfrom " } ,
[ 372 ] = { 3 , TN , SEN ( recvmsg ) , " recvmsg " } ,
[ 373 ] = { 2 , TN , SEN ( shutdown ) , " shutdown " } ,
2017-01-12 02:48:41 +03:00
[ 374 ] = { 1 , TD , SEN ( userfaultfd ) , " userfaultfd " } ,
[ 375 ] = { 2 , 0 , SEN ( membarrier ) , " membarrier " } ,
Wire up userfaultfd, membarrier, and mlock2 syscalls
* linux/dummy.h (membarrier, mlock2, userfaultfd): New stub aliases.
* linux/32/syscallent.h (userfaultfd, membarrier, mlock2): New entries.
* linux/64/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/arm/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/hppa/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/i386/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/ia64/syscallent.h (userfaultfd, membarrier): Likewise.
* linux/m68k/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/microblaze/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/mips/syscallent-n32.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/mips/syscallent-n64.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/mips/syscallent-o32.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/powerpc/syscallent.h (userfaultfd, membarrier): Likewise.
* linux/s390/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/s390x/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/sparc/syscallent.h (membarrier, userfaultfd, mlock2): Likewise.
* linux/x32/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
* linux/x86_64/syscallent.h (userfaultfd, membarrier, mlock2): Likewise.
2015-11-15 05:37:51 +03:00
[ 376 ] = { 3 , TM , SEN ( mlock2 ) , " mlock2 " } ,
2016-02-13 06:45:32 +03:00
[ 377 ] = { 6 , TD , SEN ( copy_file_range ) , " copy_file_range " } ,
2016-05-11 03:42:10 +03:00
[ 378 ] = { 6 , TD , SEN ( preadv2 ) , " preadv2 " } ,
[ 379 ] = { 6 , TD , SEN ( pwritev2 ) , " pwritev2 " } ,
2016-11-12 20:54:56 +03:00
[ 380 ] = { 4 , TM | SI , SEN ( pkey_mprotect ) , " pkey_mprotect " } ,
[ 381 ] = { 2 , 0 , SEN ( pkey_alloc ) , " pkey_alloc " } ,
[ 382 ] = { 1 , 0 , SEN ( pkey_free ) , " pkey_free " } ,
Implement -e trace=%%stat option
linux/*/syscallent*.h part is updated automatically by:
sed -i '/TSFA\|stat[iu]s/! s/,[[:space:]]\?\([[:space:]]*SEN(.*stat\)/|TSTA,\1/' \
linux/*/syscallent*.h
* sysent.h (TRACE_STAT_LIKE): New macro.
* syscall.c: Alias TSTA to TRACE_STAT_LIKE around syscallent.h inclusion.
* qualify.c (lookup_class): Add TRACE_STAT_LIKE for "%%stat".
* strace.1 (.SS Filtering): Add information about %%stat syscall class.
* NEWS: Mention this change.
* linux/32/syscallent.h (fstat64, fstatat64, statx): Add TSTA flag.
* linux/64/syscallent.h (fstat, newfstatat, statx): Likewise.
* linux/aarch64/syscallent.h (fstat, lstat, newfstatat, stat): Likewise.
* linux/alpha/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
osf_fstat, osf_lstat, osf_old_fstat, osf_old_lstat, osf_old_stat, osf_stat,
stat, stat64): Likewise.
* linux/arm/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat,
oldlstat, oldstat, stat, stat64, statx): Likewise.
* linux/avr32/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat,
stat64): Likewise.
* linux/bfin/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldfstat, oldlstat, oldstat, stat, stat64): Likewise.
* linux/crisv10/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldfstat, oldlstat, oldstat, stat, stat64): Likewise.
* linux/hppa/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat,
stat64): Likewise.
* linux/i386/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat,
oldlstat, oldstat, stat, stat64, statx): Likewise.
* linux/ia64/syscallent.h (fstat, lstat, newfstatat, stat): Likewise.
* linux/m68k/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat,
oldlstat, oldstat, stat, stat64, statx): Likewise.
* linux/microblaze/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldfstat, oldlstat, oldstat, stat, stat64): Likewise.
* linux/mips/syscallent-compat.h (bsd43_fstat, bsd43_lstat, bsd43_oldfstat,
bsd43_oldstat, bsd43_stat, posix_fstat, posix_lstat, posix_stat, svr4_fstat,
svr4_fxstat, svr4_lstat, svr4_lxstat, svr4_stat, svr4_xstat, sysv_fstat,
sysv_fxstat, sysv_lstat, sysv_lxstat, sysv_stat, sysv_xstat): Likewise.
* linux/mips/syscallent-n32.h (fstat, lstat, newfstatat, stat, statx): Likewise.
* linux/mips/syscallent-n64.h (fstat, lstat, newfstatat, stat, statx): Likewise.
* linux/mips/syscallent-o32.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise.
* linux/powerpc64/syscallent.h (fstat, lstat, newfstatat, oldfstat, oldlstat,
oldstat, stat): Likewise.
* linux/powerpc/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldfstat, oldlstat, oldstat, stat, stat64, statx): Likewise.
* linux/s390/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat,
stat64, statx): Likewise.
* linux/s390x/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise.
* linux/sh64/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat,
oldlstat, oldstat, stat, stat64): Likewise.
* linux/sh/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, oldfstat,
oldlstat, oldstat, stat, stat64): Likewise.
* linux/sparc64/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldlstat, stat, stat64): Likewise.
* linux/sparc/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64,
oldlstat, stat, stat64): Likewise.
* linux/x32/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise.
* linux/x86_64/syscallent.h (fstat, lstat, newfstatat, stat, statx): Likewise.
* linux/xtensa/syscallent.h (fstat, fstat64, fstatat64, lstat, lstat64, stat,
stat64, statx): Likewise.
* tests/gen_tests.in (trace_stat_like): New entry.
* tests/trace_stat_like.in: New file.
* tests/Makefile.am (EXTRA_DIST): Add it.
* tests/ksysent.c (TSTA): New macro, defined to 0.
* tests/nsyscalls.c: Likewise.
2017-04-18 02:14:58 +03:00
[ 383 ] = { 5 , TD | TF | TSTA , SEN ( statx ) , " statx " } ,
2017-07-21 04:30:26 +03:00
[ 384 ] = { 2 , TP , SEN ( arch_prctl ) , " arch_prctl " } ,
Wire up new syscalls
* linux/dummy.h (sys_bpf, sys_execveat, sys_getrandom,
sys_kexec_file_load, sys_memfd_create, sys_seccomp): New stub aliases.
* linux/32/syscallent.h (seccomp, getrandom, memfd_create, bpf,
execveat): New entries.
* linux/64/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/mips/syscallent-n32.h: Likewise.
* linux/mips/syscallent-n64.h: Likewise.
* linux/mips/syscallent-o32.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/ia64/syscallent.h (getrandom, memfd_create, bpf, execveat):
New entries.
* linux/m68k/syscallent.h: Likewise.
* linux/s390/syscallent.h: (seccomp, getrandom, memfd_create, bpf,
s390_pci_mmio_write, s390_pci_mmio_read, execveat): New entries.
* linux/s390x/syscallent.h: Likewise.
* linux/x86_64/syscallent.h (seccomp, getrandom, memfd_create,
kexec_file_load, bpf, execveat): New entries.
* linux/x32/syscallent.h: Likewise.
* linux/xtensa/syscallent.h (seccomp, getrandom, memfd_create):
New entries.
2015-01-12 21:53:32 +03:00
2013-05-07 18:38:01 +04:00
# define SYS_socket_subcall 400
# include "subcall.h"