hw_breakpoint.h 590 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _UAPI_LINUX_HW_BREAKPOINT_H
  2. #define _UAPI_LINUX_HW_BREAKPOINT_H
  3. enum {
  4. HW_BREAKPOINT_LEN_1 = 1,
  5. HW_BREAKPOINT_LEN_2 = 2,
  6. HW_BREAKPOINT_LEN_4 = 4,
  7. HW_BREAKPOINT_LEN_8 = 8,
  8. };
  9. enum {
  10. HW_BREAKPOINT_EMPTY = 0,
  11. HW_BREAKPOINT_R = 1,
  12. HW_BREAKPOINT_W = 2,
  13. HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W,
  14. HW_BREAKPOINT_X = 4,
  15. HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
  16. };
  17. enum bp_type_idx {
  18. TYPE_INST = 0,
  19. #ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
  20. TYPE_DATA = 0,
  21. #else
  22. TYPE_DATA = 1,
  23. #endif
  24. TYPE_MAX
  25. };
  26. #endif /* _UAPI_LINUX_HW_BREAKPOINT_H */