Mirror of strace – the linux syscall tracer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sysent.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (c) 2016-2019 The strace developers.
  3. * All rights reserved.
  4. *
  5. * SPDX-License-Identifier: LGPL-2.1-or-later
  6. */
  7. #ifndef STRACE_SYSENT_H
  8. # define STRACE_SYSENT_H
  9. typedef struct sysent {
  10. unsigned nargs;
  11. int sys_flags;
  12. int sen;
  13. int (*sys_func)();
  14. const char *sys_name;
  15. } struct_sysent;
  16. # define TRACE_FILE 000000001 /* Trace file-related syscalls. */
  17. # define TRACE_IPC 000000002 /* Trace IPC-related syscalls. */
  18. # define TRACE_NETWORK 000000004 /* Trace network-related syscalls. */
  19. # define TRACE_PROCESS 000000010 /* Trace process-related syscalls. */
  20. # define TRACE_SIGNAL 000000020 /* Trace signal-related syscalls. */
  21. # define TRACE_DESC 000000040 /* Trace file descriptor-related syscalls. */
  22. # define TRACE_MEMORY 000000100 /* Trace memory mapping-related syscalls. */
  23. # define SYSCALL_NEVER_FAILS 000000200 /* Syscall is always successful. */
  24. # define MEMORY_MAPPING_CHANGE 000000400 /* Trigger proc/maps cache updating */
  25. # define STACKTRACE_CAPTURE_ON_ENTER 000001000 /* Capture stacktrace on "entering" stage */
  26. # define TRACE_INDIRECT_SUBCALL 000002000 /* Syscall is an indirect socket/ipc subcall. */
  27. # define COMPAT_SYSCALL_TYPES 000004000 /* A compat syscall that uses compat types. */
  28. # define TRACE_STAT 000010000 /* Trace {,*_}{,old}{,x}stat{,64} syscalls. */
  29. # define TRACE_LSTAT 000020000 /* Trace *lstat* syscalls. */
  30. # define TRACE_STATFS 000040000 /* Trace statfs, statfs64, and statvfs syscalls. */
  31. # define TRACE_FSTATFS 000100000 /* Trace fstatfs, fstatfs64 and fstatvfs syscalls. */
  32. # define TRACE_STATFS_LIKE 000200000 /* Trace statfs-like, fstatfs-like and ustat syscalls. */
  33. # define TRACE_FSTAT 000400000 /* Trace *fstat{,at}{,64} syscalls. */
  34. # define TRACE_STAT_LIKE 001000000 /* Trace *{,l,f}stat{,x,at}{,64} syscalls. */
  35. # define TRACE_PURE 002000000 /* Trace getter syscalls with no arguments. */
  36. # define TRACE_SECCOMP_DEFAULT 004000000 /* Syscall is traced by seccomp filter by default. */
  37. # define TRACE_CREDS 010000000 /* Trace process credentials-related syscalls. */
  38. #endif /* !STRACE_SYSENT_H */