hw_breakpoint.h 742 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_HW_BREAKPOINT_H
  3. #define _LINUX_HW_BREAKPOINT_H
  4. enum {
  5. HW_BREAKPOINT_LEN_1 = 1,
  6. HW_BREAKPOINT_LEN_2 = 2,
  7. HW_BREAKPOINT_LEN_3 = 3,
  8. HW_BREAKPOINT_LEN_4 = 4,
  9. HW_BREAKPOINT_LEN_5 = 5,
  10. HW_BREAKPOINT_LEN_6 = 6,
  11. HW_BREAKPOINT_LEN_7 = 7,
  12. HW_BREAKPOINT_LEN_8 = 8,
  13. };
  14. enum {
  15. HW_BREAKPOINT_EMPTY = 0,
  16. HW_BREAKPOINT_R = 1,
  17. HW_BREAKPOINT_W = 2,
  18. HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W,
  19. HW_BREAKPOINT_X = 4,
  20. HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
  21. };
  22. enum bp_type_idx {
  23. TYPE_INST = 0,
  24. #ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
  25. TYPE_DATA = 0,
  26. #else
  27. TYPE_DATA = 1,
  28. #endif
  29. TYPE_MAX
  30. };
  31. #endif /* _LINUX_HW_BREAKPOINT_H */