hw_breakpoint.h 575 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _LINUX_HW_BREAKPOINT_H
  2. #define _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 /* _LINUX_HW_BREAKPOINT_H */