1 #ifndef STRACE_SYSENT_H 2 #define STRACE_SYSENT_H 3 4 typedef 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 12 #define TRACE_FILE 001 /* Trace file-related syscalls. */ 13 #define TRACE_IPC 002 /* Trace IPC-related syscalls. */ 14 #define TRACE_NETWORK 004 /* Trace network-related syscalls. */ 15 #define TRACE_PROCESS 010 /* Trace process-related syscalls. */ 16 #define TRACE_SIGNAL 020 /* Trace signal-related syscalls. */ 17 #define TRACE_DESC 040 /* Trace file descriptor-related syscalls. */ 18 #define TRACE_MEMORY 0100 /* Trace memory mapping-related syscalls. */ 19 #define SYSCALL_NEVER_FAILS 0200 /* Syscall is always successful. */ 20 #define STACKTRACE_INVALIDATE_CACHE 0400 /* Trigger proc/maps cache updating */ 21 #define STACKTRACE_CAPTURE_ON_ENTER 01000 /* Capture stacktrace on "entering" stage */ 22 #define TRACE_INDIRECT_SUBCALL 02000 /* Syscall is an indirect socket/ipc subcall. */ 23 #define COMPAT_SYSCALL_TYPES 04000 /* A compat syscall that uses compat types. */ 24 25 #endif /* !STRACE_SYSENT_H */ 26