blob: cf2daed1be2b56231aa71f1714133f0196fd3b47 [file] [log] [blame]
Elliott Hughesd35df492017-02-15 15:19:05 -08001#ifndef STRACE_SYSENT_H
2#define STRACE_SYSENT_H
3
4typedef struct sysent {
5 unsigned nargs;
6 int sys_flags;
7 int sen;
8 int (*sys_func)();
9 const char *sys_name;
10} struct_sysent;
11
Elliott Hughes39bac052017-05-25 16:56:11 -070012#define TRACE_FILE 00000001 /* Trace file-related syscalls. */
13#define TRACE_IPC 00000002 /* Trace IPC-related syscalls. */
14#define TRACE_NETWORK 00000004 /* Trace network-related syscalls. */
15#define TRACE_PROCESS 00000010 /* Trace process-related syscalls. */
16#define TRACE_SIGNAL 00000020 /* Trace signal-related syscalls. */
17#define TRACE_DESC 00000040 /* Trace file descriptor-related syscalls. */
18#define TRACE_MEMORY 00000100 /* Trace memory mapping-related syscalls. */
19#define SYSCALL_NEVER_FAILS 00000200 /* Syscall is always successful. */
Elliott Hughes03a418e2018-06-15 13:11:40 -070020#define MEMORY_MAPPING_CHANGE 00000400 /* Trigger proc/maps cache updating */
Elliott Hughes39bac052017-05-25 16:56:11 -070021#define STACKTRACE_CAPTURE_ON_ENTER 00001000 /* Capture stacktrace on "entering" stage */
22#define TRACE_INDIRECT_SUBCALL 00002000 /* Syscall is an indirect socket/ipc subcall. */
23#define COMPAT_SYSCALL_TYPES 00004000 /* A compat syscall that uses compat types. */
24#define TRACE_STAT 00010000 /* Trace {,*_}{,old}{,x}stat{,64} syscalls. */
25#define TRACE_LSTAT 00020000 /* Trace *lstat* syscalls. */
26#define TRACE_STATFS 00040000 /* Trace statfs, statfs64, and statvfs syscalls. */
27#define TRACE_FSTATFS 00100000 /* Trace fstatfs, fstatfs64 and fstatvfs syscalls. */
28#define TRACE_STATFS_LIKE 00200000 /* Trace statfs-like, fstatfs-like and ustat syscalls. */
29#define TRACE_FSTAT 00400000 /* Trace *fstat{,at}{,64} syscalls. */
30#define TRACE_STAT_LIKE 01000000 /* Trace *{,l,f}stat{,x,at}{,64} syscalls. */
Elliott Hughesb7556142018-02-20 17:03:16 -080031#define TRACE_PURE 02000000 /* Trace getter syscalls with no arguments. */
Elliott Hughesd35df492017-02-15 15:19:05 -080032
33#endif /* !STRACE_SYSENT_H */