2018-12-24 23:46:43 +00:00
/*
* Copyright ( c ) 2012 - 2018 The strace developers .
* All rights reserved .
*
* SPDX - License - Identifier : LGPL - 2.1 - or - later
*/
2015-07-10 22:24:48 +03:00
[ 0 ] = { 3 , TD , SEN ( read ) , " read " } ,
[ 1 ] = { 3 , TD , SEN ( write ) , " write " } ,
[ 2 ] = { 3 , TD | TF , SEN ( open ) , " open " } ,
[ 3 ] = { 1 , TD , SEN ( close ) , " close " } ,
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 03:14:52 +02:00
[ 4 ] = { 2 , TF | TST | TSTA , SEN ( stat ) , " stat " } ,
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 01:52:58 +02:00
[ 5 ] = { 2 , TD | TFST | TSTA , SEN ( fstat ) , " fstat " } ,
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 02:23:05 +02:00
[ 6 ] = { 2 , TF | TLST | TSTA , SEN ( lstat ) , " lstat " } ,
2015-07-10 22:24:48 +03:00
[ 7 ] = { 3 , TD , SEN ( poll ) , " poll " } ,
[ 8 ] = { 3 , TD , SEN ( lseek ) , " lseek " } ,
[ 9 ] = { 6 , TD | TM | SI , SEN ( mmap ) , " mmap " } ,
[ 10 ] = { 3 , TM | SI , SEN ( mprotect ) , " mprotect " } ,
[ 11 ] = { 2 , TM | SI , SEN ( munmap ) , " munmap " } ,
[ 12 ] = { 1 , TM | SI , SEN ( brk ) , " brk " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 13 ] = { 4 , TS , SEN ( printargs ) , " rt_sigaction#64 " } ,
2015-07-10 22:24:48 +03:00
[ 14 ] = { 4 , TS , SEN ( rt_sigprocmask ) , " rt_sigprocmask " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 15 ] = { 0 , TS , SEN ( rt_sigreturn ) , " rt_sigreturn#64 " } ,
[ 16 ] = { 3 , TD , SEN ( printargs ) , " ioctl#64 " } ,
2015-12-08 16:52:06 +00:00
[ 17 ] = { 4 , TD , SEN ( pread ) , " pread64 " } ,
[ 18 ] = { 4 , TD , SEN ( pwrite ) , " pwrite64 " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 19 ] = { 3 , TD , SEN ( printargs ) , " readv#64 " } ,
[ 20 ] = { 3 , TD , SEN ( printargs ) , " writev#64 " } ,
2015-07-10 22:24:48 +03:00
[ 21 ] = { 2 , TF , SEN ( access ) , " access " } ,
[ 22 ] = { 1 , TD , SEN ( pipe ) , " pipe " } ,
[ 23 ] = { 5 , TD , SEN ( select ) , " select " } ,
2017-04-14 15:06:42 +00:00
[ 24 ] = { 0 , 0 , SEN ( sched_yield ) , " sched_yield " } ,
2015-07-10 22:24:48 +03:00
[ 25 ] = { 5 , TM | SI , SEN ( mremap ) , " mremap " } ,
[ 26 ] = { 3 , TM , SEN ( msync ) , " msync " } ,
[ 27 ] = { 3 , TM , SEN ( mincore ) , " mincore " } ,
[ 28 ] = { 3 , TM , SEN ( madvise ) , " madvise " } ,
[ 29 ] = { 3 , TI , SEN ( shmget ) , " shmget " } ,
[ 30 ] = { 3 , TI | TM | SI , SEN ( shmat ) , " shmat " } ,
[ 31 ] = { 3 , TI , SEN ( shmctl ) , " shmctl " } ,
[ 32 ] = { 1 , TD , SEN ( dup ) , " dup " } ,
[ 33 ] = { 2 , TD , SEN ( dup2 ) , " dup2 " } ,
[ 34 ] = { 0 , TS , SEN ( pause ) , " pause " } ,
[ 35 ] = { 2 , 0 , SEN ( nanosleep ) , " nanosleep " } ,
[ 36 ] = { 2 , 0 , SEN ( getitimer ) , " getitimer " } ,
[ 37 ] = { 1 , 0 , SEN ( alarm ) , " alarm " } ,
[ 38 ] = { 3 , 0 , SEN ( setitimer ) , " setitimer " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 39 ] = { 0 , PU | NF , SEN ( getpid ) , " getpid " } ,
2015-07-10 22:24:48 +03:00
[ 40 ] = { 4 , TD | TN , SEN ( sendfile64 ) , " sendfile " } ,
[ 41 ] = { 3 , TN , SEN ( socket ) , " socket " } ,
[ 42 ] = { 3 , TN , SEN ( connect ) , " connect " } ,
[ 43 ] = { 3 , TN , SEN ( accept ) , " accept " } ,
[ 44 ] = { 6 , TN , SEN ( sendto ) , " sendto " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 45 ] = { 6 , TN , SEN ( printargs ) , " recvfrom#64 " } ,
[ 46 ] = { 3 , TN , SEN ( printargs ) , " sendmsg#64 " } ,
[ 47 ] = { 3 , TN , SEN ( printargs ) , " recvmsg#64 " } ,
2015-07-10 22:24:48 +03:00
[ 48 ] = { 2 , TN , SEN ( shutdown ) , " shutdown " } ,
[ 49 ] = { 3 , TN , SEN ( bind ) , " bind " } ,
[ 50 ] = { 2 , TN , SEN ( listen ) , " listen " } ,
[ 51 ] = { 3 , TN , SEN ( getsockname ) , " getsockname " } ,
[ 52 ] = { 3 , TN , SEN ( getpeername ) , " getpeername " } ,
[ 53 ] = { 4 , TN , SEN ( socketpair ) , " socketpair " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 54 ] = { 5 , TN , SEN ( printargs ) , " setsockopt#64 " } ,
[ 55 ] = { 5 , TN , SEN ( printargs ) , " getsockopt#64 " } ,
2015-07-10 22:24:48 +03:00
[ 56 ] = { 5 , TP , SEN ( clone ) , " clone " } ,
[ 57 ] = { 0 , TP , SEN ( fork ) , " fork " } ,
[ 58 ] = { 0 , TP , SEN ( vfork ) , " vfork " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 59 ] = { 3 , TF | TP | SE | SI , SEN ( printargs ) , " execve#64 " } ,
2015-12-08 17:27:40 +00:00
[ 60 ] = { 1 , TP | SE , SEN ( exit ) , " exit " } ,
2015-07-10 22:24:48 +03:00
[ 61 ] = { 4 , TP , SEN ( wait4 ) , " wait4 " } ,
[ 62 ] = { 2 , TS , SEN ( kill ) , " kill " } ,
[ 63 ] = { 1 , 0 , SEN ( uname ) , " uname " } ,
[ 64 ] = { 3 , TI , SEN ( semget ) , " semget " } ,
[ 65 ] = { 3 , TI , SEN ( semop ) , " semop " } ,
[ 66 ] = { 4 , TI , SEN ( semctl ) , " semctl " } ,
[ 67 ] = { 1 , TI | TM | SI , SEN ( shmdt ) , " shmdt " } ,
[ 68 ] = { 2 , TI , SEN ( msgget ) , " msgget " } ,
[ 69 ] = { 4 , TI , SEN ( msgsnd ) , " msgsnd " } ,
[ 70 ] = { 5 , TI , SEN ( msgrcv ) , " msgrcv " } ,
[ 71 ] = { 3 , TI , SEN ( msgctl ) , " msgctl " } ,
[ 72 ] = { 3 , TD , SEN ( fcntl ) , " fcntl " } ,
[ 73 ] = { 2 , TD , SEN ( flock ) , " flock " } ,
[ 74 ] = { 1 , TD , SEN ( fsync ) , " fsync " } ,
[ 75 ] = { 1 , TD , SEN ( fdatasync ) , " fdatasync " } ,
[ 76 ] = { 2 , TF , SEN ( truncate64 ) , " truncate " } ,
[ 77 ] = { 2 , TD , SEN ( ftruncate64 ) , " ftruncate " } ,
[ 78 ] = { 3 , TD , SEN ( getdents ) , " getdents " } ,
[ 79 ] = { 2 , TF , SEN ( getcwd ) , " getcwd " } ,
[ 80 ] = { 1 , TF , SEN ( chdir ) , " chdir " } ,
[ 81 ] = { 1 , TD , SEN ( fchdir ) , " fchdir " } ,
[ 82 ] = { 2 , TF , SEN ( rename ) , " rename " } ,
[ 83 ] = { 2 , TF , SEN ( mkdir ) , " mkdir " } ,
[ 84 ] = { 1 , TF , SEN ( rmdir ) , " rmdir " } ,
[ 85 ] = { 2 , TD | TF , SEN ( creat ) , " creat " } ,
[ 86 ] = { 2 , TF , SEN ( link ) , " link " } ,
[ 87 ] = { 1 , TF , SEN ( unlink ) , " unlink " } ,
[ 88 ] = { 2 , TF , SEN ( symlink ) , " symlink " } ,
[ 89 ] = { 3 , TF , SEN ( readlink ) , " readlink " } ,
[ 90 ] = { 2 , TF , SEN ( chmod ) , " chmod " } ,
[ 91 ] = { 2 , TD , SEN ( fchmod ) , " fchmod " } ,
[ 92 ] = { 3 , TF , SEN ( chown ) , " chown " } ,
[ 93 ] = { 3 , TD , SEN ( fchown ) , " fchown " } ,
[ 94 ] = { 3 , TF , SEN ( chown ) , " lchown " } ,
2015-12-28 00:44:47 +00:00
[ 95 ] = { 1 , NF , SEN ( umask ) , " umask " } ,
2015-07-10 22:24:48 +03:00
[ 96 ] = { 2 , 0 , SEN ( gettimeofday ) , " gettimeofday " } ,
[ 97 ] = { 2 , 0 , SEN ( getrlimit ) , " getrlimit " } ,
[ 98 ] = { 2 , 0 , SEN ( getrusage ) , " getrusage " } ,
[ 99 ] = { 1 , 0 , SEN ( sysinfo ) , " sysinfo " } ,
[ 100 ] = { 1 , 0 , SEN ( times ) , " times " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 101 ] = { 4 , 0 , SEN ( printargs ) , " ptrace#64 " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 102 ] = { 0 , PU | NF , SEN ( getuid ) , " getuid " } ,
2015-07-10 22:24:48 +03:00
[ 103 ] = { 3 , 0 , SEN ( syslog ) , " syslog " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 104 ] = { 0 , PU | NF , SEN ( getgid ) , " getgid " } ,
2015-07-10 22:24:48 +03:00
[ 105 ] = { 1 , 0 , SEN ( setuid ) , " setuid " } ,
[ 106 ] = { 1 , 0 , SEN ( setgid ) , " setgid " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 107 ] = { 0 , PU | NF , SEN ( geteuid ) , " geteuid " } ,
[ 108 ] = { 0 , PU | NF , SEN ( getegid ) , " getegid " } ,
2015-07-10 22:24:48 +03:00
[ 109 ] = { 2 , 0 , SEN ( setpgid ) , " setpgid " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 110 ] = { 0 , PU | NF , SEN ( getppid ) , " getppid " } ,
[ 111 ] = { 0 , PU | NF , SEN ( getpgrp ) , " getpgrp " } ,
2015-07-10 22:24:48 +03:00
[ 112 ] = { 0 , 0 , SEN ( setsid ) , " setsid " } ,
[ 113 ] = { 2 , 0 , SEN ( setreuid ) , " setreuid " } ,
[ 114 ] = { 2 , 0 , SEN ( setregid ) , " setregid " } ,
[ 115 ] = { 2 , 0 , SEN ( getgroups ) , " getgroups " } ,
[ 116 ] = { 2 , 0 , SEN ( setgroups ) , " setgroups " } ,
[ 117 ] = { 3 , 0 , SEN ( setresuid ) , " setresuid " } ,
[ 118 ] = { 3 , 0 , SEN ( getresuid ) , " getresuid " } ,
[ 119 ] = { 3 , 0 , SEN ( setresgid ) , " setresgid " } ,
[ 120 ] = { 3 , 0 , SEN ( getresgid ) , " getresgid " } ,
[ 121 ] = { 1 , 0 , SEN ( getpgid ) , " getpgid " } ,
[ 122 ] = { 1 , NF , SEN ( setfsuid ) , " setfsuid " } ,
[ 123 ] = { 1 , NF , SEN ( setfsgid ) , " setfsgid " } ,
[ 124 ] = { 1 , 0 , SEN ( getsid ) , " getsid " } ,
[ 125 ] = { 2 , 0 , SEN ( capget ) , " capget " } ,
[ 126 ] = { 2 , 0 , SEN ( capset ) , " capset " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 127 ] = { 2 , TS , SEN ( printargs ) , " rt_sigpending#64 " } ,
[ 128 ] = { 4 , TS , SEN ( printargs ) , " rt_sigtimedwait#64 " } ,
[ 129 ] = { 3 , TS , SEN ( printargs ) , " rt_sigqueueinfo#64 " } ,
2015-07-10 22:24:48 +03:00
[ 130 ] = { 2 , TS , SEN ( rt_sigsuspend ) , " rt_sigsuspend " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 131 ] = { 2 , TS , SEN ( printargs ) , " sigaltstack#64 " } ,
2015-07-10 22:24:48 +03:00
[ 132 ] = { 2 , TF , SEN ( utime ) , " utime " } ,
[ 133 ] = { 3 , TF , SEN ( mknod ) , " mknod " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 134 ] = { 1 , TF , SEN ( printargs ) , " uselib#64 " } ,
2015-12-25 00:34:07 +00:00
[ 135 ] = { 1 , NF , SEN ( personality ) , " personality " } ,
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 15:30:29 +02:00
[ 136 ] = { 2 , TSFA , SEN ( ustat ) , " ustat " } ,
[ 137 ] = { 2 , TF | TSF | TSFA , SEN ( statfs ) , " statfs " } ,
[ 138 ] = { 2 , TD | TFSF | TSFA , SEN ( fstatfs ) , " fstatfs " } ,
2015-07-10 22:24:48 +03:00
[ 139 ] = { 3 , 0 , SEN ( sysfs ) , " sysfs " } ,
[ 140 ] = { 2 , 0 , SEN ( getpriority ) , " getpriority " } ,
[ 141 ] = { 3 , 0 , SEN ( setpriority ) , " setpriority " } ,
2017-04-14 15:06:42 +00:00
[ 142 ] = { 2 , 0 , SEN ( sched_setparam ) , " sched_setparam " } ,
[ 143 ] = { 2 , 0 , SEN ( sched_getparam ) , " sched_getparam " } ,
[ 144 ] = { 3 , 0 , SEN ( sched_setscheduler ) , " sched_setscheduler " } ,
[ 145 ] = { 1 , 0 , SEN ( sched_getscheduler ) , " sched_getscheduler " } ,
[ 146 ] = { 1 , 0 , SEN ( sched_get_priority_max ) , " sched_get_priority_max " } ,
[ 147 ] = { 1 , 0 , SEN ( sched_get_priority_min ) , " sched_get_priority_min " } ,
[ 148 ] = { 2 , 0 , SEN ( sched_rr_get_interval ) , " sched_rr_get_interval " } ,
2015-07-10 22:24:48 +03:00
[ 149 ] = { 2 , TM , SEN ( mlock ) , " mlock " } ,
[ 150 ] = { 2 , TM , SEN ( munlock ) , " munlock " } ,
[ 151 ] = { 1 , TM , SEN ( mlockall ) , " mlockall " } ,
[ 152 ] = { 0 , TM , SEN ( munlockall ) , " munlockall " } ,
[ 153 ] = { 0 , 0 , SEN ( vhangup ) , " vhangup " } ,
[ 154 ] = { 3 , 0 , SEN ( modify_ldt ) , " modify_ldt " } ,
[ 155 ] = { 2 , TF , SEN ( pivotroot ) , " pivot_root " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 156 ] = { 1 , 0 , SEN ( printargs ) , " _sysctl#64 " } ,
2015-07-10 22:24:48 +03:00
[ 157 ] = { 5 , 0 , SEN ( prctl ) , " prctl " } ,
[ 158 ] = { 2 , TP , SEN ( arch_prctl ) , " arch_prctl " } ,
[ 159 ] = { 1 , 0 , SEN ( adjtimex ) , " adjtimex " } ,
[ 160 ] = { 2 , 0 , SEN ( setrlimit ) , " setrlimit " } ,
[ 161 ] = { 1 , TF , SEN ( chroot ) , " chroot " } ,
[ 162 ] = { 0 , 0 , SEN ( sync ) , " sync " } ,
[ 163 ] = { 1 , TF , SEN ( acct ) , " acct " } ,
[ 164 ] = { 2 , 0 , SEN ( settimeofday ) , " settimeofday " } ,
[ 165 ] = { 5 , TF , SEN ( mount ) , " mount " } ,
[ 166 ] = { 2 , TF , SEN ( umount2 ) , " umount2 " } ,
[ 167 ] = { 2 , TF , SEN ( swapon ) , " swapon " } ,
[ 168 ] = { 1 , TF , SEN ( swapoff ) , " swapoff " } ,
[ 169 ] = { 4 , 0 , SEN ( reboot ) , " reboot " } ,
[ 170 ] = { 2 , 0 , SEN ( sethostname ) , " sethostname " } ,
[ 171 ] = { 2 , 0 , SEN ( setdomainname ) , " setdomainname " } ,
[ 172 ] = { 1 , 0 , SEN ( iopl ) , " iopl " } ,
[ 173 ] = { 3 , 0 , SEN ( ioperm ) , " ioperm " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 174 ] = { 2 , 0 , SEN ( printargs ) , " create_module#64 " } ,
2015-07-10 22:24:48 +03:00
[ 175 ] = { 3 , 0 , SEN ( init_module ) , " init_module " } ,
[ 176 ] = { 2 , 0 , SEN ( delete_module ) , " delete_module " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 177 ] = { 1 , 0 , SEN ( printargs ) , " get_kernel_syms#64 " } ,
[ 178 ] = { 5 , 0 , SEN ( printargs ) , " query_module#64 " } ,
2015-07-10 22:24:48 +03:00
[ 179 ] = { 4 , TF , SEN ( quotactl ) , " quotactl " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 180 ] = { 3 , 0 , SEN ( printargs ) , " nfsservctl#64 " } ,
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 02:45:11 +00:00
[ 181 ] = { 5 , TN , SEN ( getpmsg ) , " getpmsg " } ,
[ 182 ] = { 5 , TN , SEN ( putpmsg ) , " putpmsg " } ,
2015-07-10 22:24:48 +03:00
[ 183 ] = { 5 , 0 , SEN ( afs_syscall ) , " afs_syscall " } ,
[ 184 ] = { 3 , 0 , SEN ( tuxcall ) , " tuxcall " } ,
[ 185 ] = { 3 , 0 , SEN ( security ) , " security " } ,
Add pure syscall flag
* basic_filters.c (lookup_class) <syscall_class>: Add "%pure" for
TRACE_PURE.
* sysent.h (TRACE_PURE): New syscall flag.
* sysent_shorthand_defs.h (PU): New shorthand macro.
* linux/32/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/64/syscallent.h ([172], [173], [174], [175], [176], [177],
[178]): Add PU flag to getpid, getppid, getuid, geteuid, getgid,
getegid, gettid syscalls.
* linux/aarch64/syscallent.h ([1060]): Add PU flag to getpgrp syscalls.
* linux/alpha/syscallent.h ([20], [24], [47], [63], [64], [89],
[378]): Add PU flag to getxpid, getxuid, getxgid, getpgrp, getpagesize,
getdtablesize, gettid syscalls.
* linux/arc/syscallent.h ([246]): Add PU flag to arc_gettls syscalls.
* linux/arm/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224], [ARM_FIRST_SHUFFLED_SYSCALL+1+6]):
Add PU flag to getpid, getuid, getgid, geteuid, getegid, getppid,
getpgrp, getuid32, getgid32, geteuid32, getegid32, gettid, get_tls
syscalls.
* linux/avr32/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[176]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/bfin/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/hppa/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[206]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/i386/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/ia64/syscallent.h ([1041], [1042], [1046], [1047], [1062],
[1063], [1105], [1171]): Add PU flag to getpid, getppid, getuid,
geteuid, getgid, getegid, gettid, getpagesize syscalls.
* linux/m68k/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [166], [199], [200], [201], [202], [221], [333]): Add PU flag
to getpid, getuid, getgid, geteuid, getegid, getppid, getpgrp,
getpagesize, getuid32, getgid32, geteuid32, getegid32, gettid,
get_thread_area syscalls.
* linux/metag/syscallent.h ([248]): Add PU flag to metag_get_tls
syscalls.
* linux/microblaze/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [199], [200], [201], [202], [224]): Add PU flag to getpid,
getuid, getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/powerpc64/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/powerpc/syscallent.h ([20], [24], [47], [49], [50], [64],
[65], [207]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/s390/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [236]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/s390x/syscallent.h ([20], [64], [65], [199], [200], [201],
[202], [236]): Add PU flag to getpid, getppid, getpgrp, getuid,
getgid, geteuid, getegid, gettid syscalls.
* linux/sh64/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [252]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sh/syscallent.h ([20], [24], [47], [49], [50], [64], [65],
[199], [200], [201], [202], [224]): Add PU flag to getpid, getuid,
getgid, geteuid, getegid, getppid, getpgrp, getuid32, getgid32,
geteuid32, getegid32, gettid syscalls.
* linux/sparc64/syscallent.h ([20], [24], [47], [49], [50], [64], [81],
[143], [197], [340]): Add PU flag to getpid, getuid, getgid, geteuid,
getegid, getpagesize, getpgrp, gettid, getppid, kern_features syscalls.
* linux/sparc/syscallent.h ([20], [24], [44], [47], [49], [50], [53],
[64], [69], [70], [81], [143], [197], [340]): Add PU flag to getpid,
getuid, getuid32, getgid, geteuid, getegid, getgid32, getpagesize,
geteuid32, getegid32, getpgrp, gettid, getppid, kern_features syscalls.
* linux/x32/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/x86_64/syscallent.h ([39], [102], [104], [107], [108], [110],
[111], [186]): Add PU flag to getpid, getuid, getgid, geteuid, getegid,
getppid, getpgrp, gettid syscalls.
* linux/xtensa/syscallent.h ([120], [127], [137], [139], [140], [141],
[150], [151]): Add PU flag to getpid, gettid, getuid, getgid, geteuid,
getegid, getppid, getpgrp syscalls.
* strace.1.in (.SS Filtering): Document it.
* NEWS: Mention it.
2018-02-07 18:46:54 +01:00
[ 186 ] = { 0 , PU | NF , SEN ( gettid ) , " gettid " } ,
2015-07-10 22:24:48 +03:00
[ 187 ] = { 3 , TD , SEN ( readahead ) , " readahead " } ,
[ 188 ] = { 5 , TF , SEN ( setxattr ) , " setxattr " } ,
[ 189 ] = { 5 , TF , SEN ( setxattr ) , " lsetxattr " } ,
[ 190 ] = { 5 , TD , SEN ( fsetxattr ) , " fsetxattr " } ,
[ 191 ] = { 4 , TF , SEN ( getxattr ) , " getxattr " } ,
[ 192 ] = { 4 , TF , SEN ( getxattr ) , " lgetxattr " } ,
[ 193 ] = { 4 , TD , SEN ( fgetxattr ) , " fgetxattr " } ,
[ 194 ] = { 3 , TF , SEN ( listxattr ) , " listxattr " } ,
[ 195 ] = { 3 , TF , SEN ( listxattr ) , " llistxattr " } ,
[ 196 ] = { 3 , TD , SEN ( flistxattr ) , " flistxattr " } ,
[ 197 ] = { 2 , TF , SEN ( removexattr ) , " removexattr " } ,
[ 198 ] = { 2 , TF , SEN ( removexattr ) , " lremovexattr " } ,
[ 199 ] = { 2 , TD , SEN ( fremovexattr ) , " fremovexattr " } ,
[ 200 ] = { 2 , TS , SEN ( kill ) , " tkill " } ,
[ 201 ] = { 1 , 0 , SEN ( time ) , " time " } ,
[ 202 ] = { 6 , 0 , SEN ( futex ) , " futex " } ,
2017-04-14 15:06:42 +00:00
[ 203 ] = { 3 , 0 , SEN ( sched_setaffinity ) , " sched_setaffinity " } ,
[ 204 ] = { 3 , 0 , SEN ( sched_getaffinity ) , " sched_getaffinity " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 205 ] = { 1 , 0 , SEN ( printargs ) , " set_thread_area#64 " } ,
[ 206 ] = { 2 , TM , SEN ( printargs ) , " io_setup#64 " } ,
2016-09-09 02:38:32 +00:00
[ 207 ] = { 1 , TM , SEN ( io_destroy ) , " io_destroy " } ,
2015-07-10 22:24:48 +03:00
[ 208 ] = { 5 , 0 , SEN ( io_getevents ) , " io_getevents " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 209 ] = { 3 , 0 , SEN ( printargs ) , " io_submit#64 " } ,
2015-07-10 22:24:48 +03:00
[ 210 ] = { 3 , 0 , SEN ( io_cancel ) , " io_cancel " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 211 ] = { 1 , 0 , SEN ( printargs ) , " get_thread_area#64 " } ,
2015-07-10 22:24:48 +03:00
[ 212 ] = { 3 , 0 , SEN ( lookup_dcookie ) , " lookup_dcookie " } ,
[ 213 ] = { 1 , TD , SEN ( epoll_create ) , " epoll_create " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 214 ] = { 4 , 0 , SEN ( printargs ) , " epoll_ctl_old#64 " } ,
[ 215 ] = { 4 , 0 , SEN ( printargs ) , " epoll_wait_old#64 " } ,
2015-07-10 22:24:48 +03:00
[ 216 ] = { 5 , TM | SI , SEN ( remap_file_pages ) , " remap_file_pages " } ,
[ 217 ] = { 3 , TD , SEN ( getdents64 ) , " getdents64 " } ,
[ 218 ] = { 1 , 0 , SEN ( set_tid_address ) , " set_tid_address " } ,
[ 219 ] = { 0 , 0 , SEN ( restart_syscall ) , " restart_syscall " } ,
[ 220 ] = { 4 , TI , SEN ( semtimedop ) , " semtimedop " } ,
2016-09-22 00:21:42 +03:00
[ 221 ] = { 4 , TD , SEN ( fadvise64 ) , " fadvise64 " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 222 ] = { 3 , 0 , SEN ( printargs ) , " timer_create#64 " } ,
2015-07-10 22:24:48 +03:00
[ 223 ] = { 4 , 0 , SEN ( timer_settime ) , " timer_settime " } ,
[ 224 ] = { 2 , 0 , SEN ( timer_gettime ) , " timer_gettime " } ,
[ 225 ] = { 1 , 0 , SEN ( timer_getoverrun ) , " timer_getoverrun " } ,
[ 226 ] = { 1 , 0 , SEN ( timer_delete ) , " timer_delete " } ,
2017-04-14 15:06:42 +00:00
[ 227 ] = { 2 , 0 , SEN ( clock_settime ) , " clock_settime " } ,
[ 228 ] = { 2 , 0 , SEN ( clock_gettime ) , " clock_gettime " } ,
[ 229 ] = { 2 , 0 , SEN ( clock_getres ) , " clock_getres " } ,
[ 230 ] = { 4 , 0 , SEN ( clock_nanosleep ) , " clock_nanosleep " } ,
2015-07-10 22:24:48 +03:00
[ 231 ] = { 1 , TP | SE , SEN ( exit ) , " exit_group " } ,
[ 232 ] = { 4 , TD , SEN ( epoll_wait ) , " epoll_wait " } ,
[ 233 ] = { 4 , TD , SEN ( epoll_ctl ) , " epoll_ctl " } ,
[ 234 ] = { 3 , TS , SEN ( tgkill ) , " tgkill " } ,
[ 235 ] = { 2 , TF , SEN ( utimes ) , " utimes " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 236 ] = { 5 , 0 , SEN ( printargs ) , " vserver#64 " } ,
2015-07-10 22:24:48 +03:00
[ 237 ] = { 6 , TM , SEN ( mbind ) , " mbind " } ,
[ 238 ] = { 3 , TM , SEN ( set_mempolicy ) , " set_mempolicy " } ,
[ 239 ] = { 5 , TM , SEN ( get_mempolicy ) , " get_mempolicy " } ,
Enhance decoding of mq_* syscalls
* mq.c (SYS_FUNC(mq_open)): Add RVAL_FD to return value.
(SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive), SYS_FUNC(mq_notify),
SYS_FUNC(mq_getsetattr)): Print the first argument using printfd.
* NEWS: Mention this change.
* pathtrace.c (pathtrace_match_set) <SEN_mq_getsetattr, SEN_mq_notify,
SEN_mq_open, SEN_mq_timedreceive, SEN_mq_timedsend>: Skip matching.
* linux/32/syscallent.h (mq_getsetattr, mq_notify, mq_open,
mq_timedreceive, mq_timedsend): Add TD flag.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: 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-n64.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/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
2018-01-15 22:47:38 +00:00
[ 240 ] = { 4 , TD , SEN ( mq_open ) , " mq_open " } ,
2015-07-10 22:24:48 +03:00
[ 241 ] = { 1 , 0 , SEN ( mq_unlink ) , " mq_unlink " } ,
Enhance decoding of mq_* syscalls
* mq.c (SYS_FUNC(mq_open)): Add RVAL_FD to return value.
(SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive), SYS_FUNC(mq_notify),
SYS_FUNC(mq_getsetattr)): Print the first argument using printfd.
* NEWS: Mention this change.
* pathtrace.c (pathtrace_match_set) <SEN_mq_getsetattr, SEN_mq_notify,
SEN_mq_open, SEN_mq_timedreceive, SEN_mq_timedsend>: Skip matching.
* linux/32/syscallent.h (mq_getsetattr, mq_notify, mq_open,
mq_timedreceive, mq_timedsend): Add TD flag.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: 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-n64.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/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
2018-01-15 22:47:38 +00:00
[ 242 ] = { 5 , TD , SEN ( mq_timedsend ) , " mq_timedsend " } ,
[ 243 ] = { 5 , TD , SEN ( mq_timedreceive ) , " mq_timedreceive " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 244 ] = { 2 , 0 , SEN ( printargs ) , " mq_notify#64 " } ,
Enhance decoding of mq_* syscalls
* mq.c (SYS_FUNC(mq_open)): Add RVAL_FD to return value.
(SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive), SYS_FUNC(mq_notify),
SYS_FUNC(mq_getsetattr)): Print the first argument using printfd.
* NEWS: Mention this change.
* pathtrace.c (pathtrace_match_set) <SEN_mq_getsetattr, SEN_mq_notify,
SEN_mq_open, SEN_mq_timedreceive, SEN_mq_timedsend>: Skip matching.
* linux/32/syscallent.h (mq_getsetattr, mq_notify, mq_open,
mq_timedreceive, mq_timedsend): Add TD flag.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: 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-n64.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/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
2018-01-15 22:47:38 +00:00
[ 245 ] = { 3 , TD , SEN ( mq_getsetattr ) , " mq_getsetattr " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 246 ] = { 4 , 0 , SEN ( printargs ) , " kexec_load#64 " } ,
[ 247 ] = { 5 , TP , SEN ( printargs ) , " waitid#64 " } ,
2015-07-10 22:24:48 +03:00
[ 248 ] = { 5 , 0 , SEN ( add_key ) , " add_key " } ,
[ 249 ] = { 4 , 0 , SEN ( request_key ) , " request_key " } ,
[ 250 ] = { 5 , 0 , SEN ( keyctl ) , " keyctl " } ,
[ 251 ] = { 3 , 0 , SEN ( ioprio_set ) , " ioprio_set " } ,
[ 252 ] = { 2 , 0 , SEN ( ioprio_get ) , " ioprio_get " } ,
[ 253 ] = { 0 , TD , SEN ( inotify_init ) , " inotify_init " } ,
2017-08-11 12:43:58 +07:00
[ 254 ] = { 3 , TD | TF , SEN ( inotify_add_watch ) , " inotify_add_watch " } ,
2015-07-10 22:24:48 +03:00
[ 255 ] = { 2 , TD , SEN ( inotify_rm_watch ) , " inotify_rm_watch " } ,
[ 256 ] = { 4 , TM , SEN ( migrate_pages ) , " migrate_pages " } ,
[ 257 ] = { 4 , TD | TF , SEN ( openat ) , " openat " } ,
[ 258 ] = { 3 , TD | TF , SEN ( mkdirat ) , " mkdirat " } ,
[ 259 ] = { 4 , TD | TF , SEN ( mknodat ) , " mknodat " } ,
[ 260 ] = { 5 , TD | TF , SEN ( fchownat ) , " fchownat " } ,
[ 261 ] = { 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 01:52:58 +02:00
[ 262 ] = { 4 , TD | TF | TFST | TSTA , SEN ( newfstatat ) , " newfstatat " } ,
2015-07-10 22:24:48 +03:00
[ 263 ] = { 3 , TD | TF , SEN ( unlinkat ) , " unlinkat " } ,
[ 264 ] = { 4 , TD | TF , SEN ( renameat ) , " renameat " } ,
[ 265 ] = { 5 , TD | TF , SEN ( linkat ) , " linkat " } ,
[ 266 ] = { 3 , TD | TF , SEN ( symlinkat ) , " symlinkat " } ,
[ 267 ] = { 4 , TD | TF , SEN ( readlinkat ) , " readlinkat " } ,
[ 268 ] = { 3 , TD | TF , SEN ( fchmodat ) , " fchmodat " } ,
[ 269 ] = { 3 , TD | TF , SEN ( faccessat ) , " faccessat " } ,
[ 270 ] = { 6 , TD , SEN ( pselect6 ) , " pselect6 " } ,
[ 271 ] = { 5 , TD , SEN ( ppoll ) , " ppoll " } ,
[ 272 ] = { 1 , TP , SEN ( unshare ) , " unshare " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 273 ] = { 2 , 0 , SEN ( printargs ) , " set_robust_list#64 " } ,
[ 274 ] = { 3 , 0 , SEN ( printargs ) , " get_robust_list#64 " } ,
2015-07-10 22:24:48 +03:00
[ 275 ] = { 6 , TD , SEN ( splice ) , " splice " } ,
[ 276 ] = { 4 , TD , SEN ( tee ) , " tee " } ,
[ 277 ] = { 4 , TD , SEN ( sync_file_range ) , " sync_file_range " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 278 ] = { 4 , TD , SEN ( printargs ) , " vmsplice#64 " } ,
[ 279 ] = { 6 , TM , SEN ( printargs ) , " move_pages#64 " } ,
2015-07-10 22:24:48 +03:00
[ 280 ] = { 4 , TD | TF , SEN ( utimensat ) , " utimensat " } ,
[ 281 ] = { 6 , TD , SEN ( epoll_pwait ) , " epoll_pwait " } ,
[ 282 ] = { 3 , TD | TS , SEN ( signalfd ) , " signalfd " } ,
[ 283 ] = { 2 , TD , SEN ( timerfd_create ) , " timerfd_create " } ,
[ 284 ] = { 1 , TD , SEN ( eventfd ) , " eventfd " } ,
[ 285 ] = { 4 , TD , SEN ( fallocate ) , " fallocate " } ,
[ 286 ] = { 4 , TD , SEN ( timerfd_settime ) , " timerfd_settime " } ,
[ 287 ] = { 2 , TD , SEN ( timerfd_gettime ) , " timerfd_gettime " } ,
[ 288 ] = { 4 , TN , SEN ( accept4 ) , " accept4 " } ,
[ 289 ] = { 4 , TD | TS , SEN ( signalfd4 ) , " signalfd4 " } ,
[ 290 ] = { 2 , TD , SEN ( eventfd2 ) , " eventfd2 " } ,
[ 291 ] = { 1 , TD , SEN ( epoll_create1 ) , " epoll_create1 " } ,
[ 292 ] = { 3 , TD , SEN ( dup3 ) , " dup3 " } ,
[ 293 ] = { 2 , TD , SEN ( pipe2 ) , " pipe2 " } ,
[ 294 ] = { 1 , TD , SEN ( inotify_init1 ) , " inotify_init1 " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 295 ] = { 4 , TD , SEN ( printargs ) , " preadv#64 " } ,
[ 296 ] = { 4 , TD , SEN ( printargs ) , " pwritev#64 " } ,
[ 297 ] = { 4 , TP | TS , SEN ( printargs ) , " rt_tgsigqueueinfo#64 " } ,
2015-07-10 22:24:48 +03:00
[ 298 ] = { 5 , TD , SEN ( perf_event_open ) , " perf_event_open " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 299 ] = { 5 , TN , SEN ( printargs ) , " recvmmsg#64 " } ,
2015-07-10 22:24:48 +03:00
[ 300 ] = { 2 , TD , SEN ( fanotify_init ) , " fanotify_init " } ,
[ 301 ] = { 5 , TD | TF , SEN ( fanotify_mark ) , " fanotify_mark " } ,
[ 302 ] = { 4 , 0 , SEN ( prlimit64 ) , " prlimit64 " } ,
[ 303 ] = { 5 , TD | TF , SEN ( name_to_handle_at ) , " name_to_handle_at " } ,
[ 304 ] = { 3 , TD , SEN ( open_by_handle_at ) , " open_by_handle_at " } ,
2017-04-14 15:06:42 +00:00
[ 305 ] = { 2 , 0 , SEN ( clock_adjtime ) , " clock_adjtime " } ,
2015-07-10 22:24:48 +03:00
[ 306 ] = { 1 , TD , SEN ( syncfs ) , " syncfs " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 307 ] = { 4 , TN , SEN ( printargs ) , " sendmmsg#64 " } ,
2015-07-10 22:24:48 +03:00
[ 308 ] = { 2 , TD , SEN ( setns ) , " setns " } ,
[ 309 ] = { 3 , 0 , SEN ( getcpu ) , " getcpu " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 310 ] = { 6 , 0 , SEN ( printargs ) , " process_vm_readv#64 " } ,
[ 311 ] = { 6 , 0 , SEN ( printargs ) , " process_vm_writev#64 " } ,
2015-07-10 22:24:48 +03:00
[ 312 ] = { 5 , 0 , SEN ( kcmp ) , " kcmp " } ,
[ 313 ] = { 3 , TD , SEN ( finit_module ) , " finit_module " } ,
2017-04-14 15:06:42 +00:00
[ 314 ] = { 3 , 0 , SEN ( sched_setattr ) , " sched_setattr " } ,
[ 315 ] = { 4 , 0 , SEN ( sched_getattr ) , " sched_getattr " } ,
2015-07-10 22:24:48 +03:00
[ 316 ] = { 5 , TD | TF , SEN ( renameat2 ) , " renameat2 " } ,
2017-01-11 23:48:41 +00:00
[ 317 ] = { 3 , 0 , SEN ( seccomp ) , " seccomp " } ,
[ 318 ] = { 3 , 0 , SEN ( getrandom ) , " getrandom " } ,
[ 319 ] = { 2 , TD , SEN ( memfd_create ) , " memfd_create " } ,
[ 320 ] = { 5 , TD , SEN ( kexec_file_load ) , " kexec_file_load " } ,
[ 321 ] = { 3 , TD , SEN ( bpf ) , " bpf " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 322 ] = { 5 , TD | TF | TP | SE | SI , SEN ( printargs ) , " execveat#64 " } ,
2017-01-11 23:48:41 +00:00
[ 323 ] = { 1 , TD , SEN ( userfaultfd ) , " userfaultfd " } ,
[ 324 ] = { 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 02:37:51 +00:00
[ 325 ] = { 3 , TM , SEN ( mlock2 ) , " mlock2 " } ,
2016-02-13 03:45:32 +00:00
[ 326 ] = { 6 , TD , SEN ( copy_file_range ) , " copy_file_range " } ,
linux/x32/syscallent.h: change 64-bit syscall designation
The current way of designation of 64-bit specific syscalls in x32
personality not only conflicts with fault injection specification
syntax, but also makes it impossible to specify such syscalls at all
(since everything that starts from a digit is considered a syscall
number specification). So, let's change prefix to suffix and use
octothorpe instead of colon as a separator.
* linux/x32/syscallent.h (13, 15, 16, 19, 20, 45, 46, 47, 54, 55, 59,
101, 127, 128. 129, 131, 134, 156, 174, 177, 178, 180, 205, 206, 209,
211, 214, 215, 222, 236, 244, 246, 247, 273, 274, 278, 279, 295, 296,
297, 299, 307, 310, 311, 32, 327, 328): Change "64:" prefix to "#64"
suffix in syscall name.
Closes: https://github.com/strace/strace/issues/36
2018-05-16 04:28:15 +02:00
[ 327 ] = { 6 , TD , SEN ( printargs ) , " preadv2#64 " } ,
[ 328 ] = { 6 , TD , SEN ( printargs ) , " pwritev2#64 " } ,
2016-11-12 20:54:56 +03:00
[ 329 ] = { 4 , TM | SI , SEN ( pkey_mprotect ) , " pkey_mprotect " } ,
[ 330 ] = { 2 , 0 , SEN ( pkey_alloc ) , " pkey_alloc " } ,
[ 331 ] = { 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 01:14:58 +02:00
[ 332 ] = { 5 , TD | TF | TSTA , SEN ( statx ) , " statx " } ,
2018-06-07 19:57:28 +02:00
[ 333 ] = { 6 , 0 , SEN ( io_pgetevents ) , " io_pgetevents " } ,
2018-06-17 22:45:46 +08:00
[ 334 ] = { 4 , 0 , SEN ( rseq ) , " rseq " } ,
2015-01-11 02:42:56 +00:00
/*
* x32 - specific system call numbers start at 512 to avoid cache impact
* for native 64 - bit operation .
*/
2016-12-20 01:52:20 +00:00
[ 512 ] = { 4 , CST | TS , SEN ( rt_sigaction ) , " rt_sigaction " } ,
2017-03-12 22:01:09 +00:00
[ 513 ] = { 0 , CST | TS , SEN ( rt_sigreturn ) , " rt_sigreturn " } ,
2016-12-20 01:52:20 +00:00
[ 514 ] = { 3 , CST | TD , SEN ( ioctl ) , " ioctl " } ,
[ 515 ] = { 3 , CST | TD , SEN ( readv ) , " readv " } ,
[ 516 ] = { 3 , CST | TD , SEN ( writev ) , " writev " } ,
[ 517 ] = { 6 , CST | TN , SEN ( recvfrom ) , " recvfrom " } ,
[ 518 ] = { 3 , CST | TN , SEN ( sendmsg ) , " sendmsg " } ,
[ 519 ] = { 3 , CST | TN , SEN ( recvmsg ) , " recvmsg " } ,
[ 520 ] = { 3 , CST | TF | TP | SE | SI , SEN ( execve ) , " execve " } ,
[ 521 ] = { 4 , CST , SEN ( ptrace ) , " ptrace " } ,
[ 522 ] = { 2 , CST | TS , SEN ( rt_sigpending ) , " rt_sigpending " } ,
[ 523 ] = { 4 , CST | TS , SEN ( rt_sigtimedwait ) , " rt_sigtimedwait " } ,
[ 524 ] = { 3 , CST | TS , SEN ( rt_sigqueueinfo ) , " rt_sigqueueinfo " } ,
[ 525 ] = { 2 , CST | TS , SEN ( sigaltstack ) , " sigaltstack " } ,
[ 526 ] = { 3 , CST , SEN ( timer_create ) , " timer_create " } ,
Enhance decoding of mq_* syscalls
* mq.c (SYS_FUNC(mq_open)): Add RVAL_FD to return value.
(SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive), SYS_FUNC(mq_notify),
SYS_FUNC(mq_getsetattr)): Print the first argument using printfd.
* NEWS: Mention this change.
* pathtrace.c (pathtrace_match_set) <SEN_mq_getsetattr, SEN_mq_notify,
SEN_mq_open, SEN_mq_timedreceive, SEN_mq_timedsend>: Skip matching.
* linux/32/syscallent.h (mq_getsetattr, mq_notify, mq_open,
mq_timedreceive, mq_timedsend): Add TD flag.
* linux/64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: 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-n64.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/x32/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/xtensa/syscallent.h: Likewise.
2018-01-15 22:47:38 +00:00
[ 527 ] = { 2 , CST | TD , SEN ( mq_notify ) , " mq_notify " } ,
2016-12-20 01:52:20 +00:00
[ 528 ] = { 4 , CST , SEN ( kexec_load ) , " kexec_load " } ,
[ 529 ] = { 5 , CST | TP , SEN ( waitid ) , " waitid " } ,
[ 530 ] = { 2 , CST , SEN ( set_robust_list ) , " set_robust_list " } ,
[ 531 ] = { 3 , CST , SEN ( get_robust_list ) , " get_robust_list " } ,
[ 532 ] = { 4 , CST | TD , SEN ( vmsplice ) , " vmsplice " } ,
[ 533 ] = { 6 , CST | TM , SEN ( move_pages ) , " move_pages " } ,
2015-07-10 22:24:48 +03:00
[ 534 ] = { 4 , TD , SEN ( preadv ) , " preadv " } ,
[ 535 ] = { 4 , TD , SEN ( pwritev ) , " pwritev " } ,
2016-12-20 01:52:20 +00:00
[ 536 ] = { 4 , CST | TP | TS , SEN ( rt_tgsigqueueinfo ) , " rt_tgsigqueueinfo " } ,
[ 537 ] = { 5 , CST | TN , SEN ( recvmmsg ) , " recvmmsg " } ,
[ 538 ] = { 4 , CST | TN , SEN ( sendmmsg ) , " sendmmsg " } ,
[ 539 ] = { 6 , CST , SEN ( process_vm_readv ) , " process_vm_readv " } ,
[ 540 ] = { 6 , CST , SEN ( process_vm_writev ) , " process_vm_writev " } ,
[ 541 ] = { 5 , CST | TN , SEN ( setsockopt ) , " setsockopt " } ,
[ 542 ] = { 5 , CST | TN , SEN ( getsockopt ) , " getsockopt " } ,
[ 543 ] = { 2 , CST | TM , SEN ( io_setup ) , " io_setup " } ,
[ 544 ] = { 3 , CST , SEN ( io_submit ) , " io_submit " } ,
2017-01-11 23:48:41 +00:00
[ 545 ] = { 5 , CST | TD | TF | TP | SE | SI , SEN ( execveat ) , " execveat " } ,
2017-02-25 15:55:31 +00:00
[ 546 ] = { 5 , TD , SEN ( preadv2 ) , " preadv2 " } ,
[ 547 ] = { 5 , TD , SEN ( pwritev2 ) , " pwritev2 " } ,