diff options
Diffstat (limited to 'include/uapi/linux/hw_breakpoint.h')
| -rw-r--r-- | include/uapi/linux/hw_breakpoint.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/uapi/linux/hw_breakpoint.h b/include/uapi/linux/hw_breakpoint.h new file mode 100644 index 000000000000..b04000a2296a --- /dev/null +++ b/include/uapi/linux/hw_breakpoint.h | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | #ifndef _UAPI_LINUX_HW_BREAKPOINT_H | ||
| 2 | #define _UAPI_LINUX_HW_BREAKPOINT_H | ||
| 3 | |||
| 4 | enum { | ||
| 5 | HW_BREAKPOINT_LEN_1 = 1, | ||
| 6 | HW_BREAKPOINT_LEN_2 = 2, | ||
| 7 | HW_BREAKPOINT_LEN_4 = 4, | ||
| 8 | HW_BREAKPOINT_LEN_8 = 8, | ||
| 9 | }; | ||
| 10 | |||
| 11 | enum { | ||
| 12 | HW_BREAKPOINT_EMPTY = 0, | ||
| 13 | HW_BREAKPOINT_R = 1, | ||
| 14 | HW_BREAKPOINT_W = 2, | ||
| 15 | HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W, | ||
| 16 | HW_BREAKPOINT_X = 4, | ||
| 17 | HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X, | ||
| 18 | }; | ||
| 19 | |||
| 20 | enum bp_type_idx { | ||
| 21 | TYPE_INST = 0, | ||
| 22 | #ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS | ||
| 23 | TYPE_DATA = 0, | ||
| 24 | #else | ||
| 25 | TYPE_DATA = 1, | ||
| 26 | #endif | ||
| 27 | TYPE_MAX | ||
| 28 | }; | ||
| 29 | |||
| 30 | #endif /* _UAPI_LINUX_HW_BREAKPOINT_H */ | ||
