at v4.13 694 B view raw
1#ifndef _UAPI_LINUX_HW_BREAKPOINT_H 2#define _UAPI_LINUX_HW_BREAKPOINT_H 3 4enum { 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 15enum { 16 HW_BREAKPOINT_EMPTY = 0, 17 HW_BREAKPOINT_R = 1, 18 HW_BREAKPOINT_W = 2, 19 HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W, 20 HW_BREAKPOINT_X = 4, 21 HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X, 22}; 23 24enum bp_type_idx { 25 TYPE_INST = 0, 26#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS 27 TYPE_DATA = 0, 28#else 29 TYPE_DATA = 1, 30#endif 31 TYPE_MAX 32}; 33 34#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */