eb45473d7f
* 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.
34 lines
1.7 KiB
C
34 lines
1.7 KiB
C
#ifndef STRACE_SYSENT_H
|
|
#define STRACE_SYSENT_H
|
|
|
|
typedef struct sysent {
|
|
unsigned nargs;
|
|
int sys_flags;
|
|
int sen;
|
|
int (*sys_func)();
|
|
const char *sys_name;
|
|
} struct_sysent;
|
|
|
|
#define TRACE_FILE 00000001 /* Trace file-related syscalls. */
|
|
#define TRACE_IPC 00000002 /* Trace IPC-related syscalls. */
|
|
#define TRACE_NETWORK 00000004 /* Trace network-related syscalls. */
|
|
#define TRACE_PROCESS 00000010 /* Trace process-related syscalls. */
|
|
#define TRACE_SIGNAL 00000020 /* Trace signal-related syscalls. */
|
|
#define TRACE_DESC 00000040 /* Trace file descriptor-related syscalls. */
|
|
#define TRACE_MEMORY 00000100 /* Trace memory mapping-related syscalls. */
|
|
#define SYSCALL_NEVER_FAILS 00000200 /* Syscall is always successful. */
|
|
#define STACKTRACE_INVALIDATE_CACHE 00000400 /* Trigger proc/maps cache updating */
|
|
#define STACKTRACE_CAPTURE_ON_ENTER 00001000 /* Capture stacktrace on "entering" stage */
|
|
#define TRACE_INDIRECT_SUBCALL 00002000 /* Syscall is an indirect socket/ipc subcall. */
|
|
#define COMPAT_SYSCALL_TYPES 00004000 /* A compat syscall that uses compat types. */
|
|
#define TRACE_STAT 00010000 /* Trace {,*_}{,old}{,x}stat{,64} syscalls. */
|
|
#define TRACE_LSTAT 00020000 /* Trace *lstat* syscalls. */
|
|
#define TRACE_STATFS 00040000 /* Trace statfs, statfs64, and statvfs syscalls. */
|
|
#define TRACE_FSTATFS 00100000 /* Trace fstatfs, fstatfs64 and fstatvfs syscalls. */
|
|
#define TRACE_STATFS_LIKE 00200000 /* Trace statfs-like, fstatfs-like and ustat syscalls. */
|
|
#define TRACE_FSTAT 00400000 /* Trace *fstat{,at}{,64} syscalls. */
|
|
#define TRACE_STAT_LIKE 01000000 /* Trace *{,l,f}stat{,x,at}{,64} syscalls. */
|
|
#define TRACE_PURE 02000000 /* Trace getter syscalls with no arguments. */
|
|
|
|
#endif /* !STRACE_SYSENT_H */
|