hw_breakpoint.h 605 B

12345678910111213141516171819202122232425
  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. #endif /* _LINUX_HW_BREAKPOINT_H */