tracer.h 456 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * SO2 kprobe based tracer header file
  4. *
  5. * this is shared with user space
  6. */
  7. #ifndef TRACER_H__
  8. #define TRACER_H__ 1
  9. #include <asm/ioctl.h>
  10. #ifndef __KERNEL__
  11. #include <sys/types.h>
  12. #endif /* __KERNEL__ */
  13. #define TRACER_DEV_MINOR 42
  14. #define TRACER_DEV_NAME "tracer"
  15. #define TRACER_ADD_PROCESS _IOW(_IOC_WRITE, 42, pid_t)
  16. #define TRACER_REMOVE_PROCESS _IOW(_IOC_WRITE, 43, pid_t)
  17. #endif /* TRACER_H__ */