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 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2016-2018 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 00000001 /* Trace file-related syscalls. */
  17. # define TRACE_IPC 00000002 /* Trace IPC-related syscalls. */
  18. # define TRACE_NETWORK 00000004 /* Trace network-related syscalls. */
  19. # define TRACE_PROCESS 00000010 /* Trace process-related syscalls. */
  20. # define TRACE_SIGNAL 00000020 /* Trace signal-related syscalls. */
  21. # define TRACE_DESC 00000040 /* Trace file descriptor-related syscalls. */
  22. # define TRACE_MEMORY 00000100 /* Trace memory mapping-related syscalls. */
  23. # define SYSCALL_NEVER_FAILS 00000200 /* Syscall is always successful. */
  24. # define MEMORY_MAPPING_CHANGE 00000400 /* Trigger proc/maps cache updating */
  25. # define STACKTRACE_CAPTURE_ON_ENTER 00001000 /* Capture stacktrace on "entering" stage */
  26. # define TRACE_INDIRECT_SUBCALL 00002000 /* Syscall is an indirect socket/ipc subcall. */
  27. # define COMPAT_SYSCALL_TYPES 00004000 /* A compat syscall that uses compat types. */
  28. # define TRACE_STAT 00010000 /* Trace {,*_}{,old}{,x}stat{,64} syscalls. */
  29. # define TRACE_LSTAT 00020000 /* Trace *lstat* syscalls. */
  30. # define TRACE_STATFS 00040000 /* Trace statfs, statfs64, and statvfs syscalls. */
  31. # define TRACE_FSTATFS 00100000 /* Trace fstatfs, fstatfs64 and fstatvfs syscalls. */
  32. # define TRACE_STATFS_LIKE 00200000 /* Trace statfs-like, fstatfs-like and ustat syscalls. */
  33. # define TRACE_FSTAT 00400000 /* Trace *fstat{,at}{,64} syscalls. */
  34. # define TRACE_STAT_LIKE 01000000 /* Trace *{,l,f}stat{,x,at}{,64} syscalls. */
  35. # define TRACE_PURE 02000000 /* Trace getter syscalls with no arguments. */
  36. #endif /* !STRACE_SYSENT_H */