• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This header was generated from the Linux kernel headers by update_headers.py,
3  * to provide necessary information from kernel to userspace, such as constants,
4  * structures, and macros, and thus, contains no copyrightable information.
5  */
6 #ifndef _UAPI_LINUX_HW_BREAKPOINT_H
7 #define _UAPI_LINUX_HW_BREAKPOINT_H
8 enum {
9 	HW_BREAKPOINT_LEN_1 = 1,
10 	HW_BREAKPOINT_LEN_2 = 2,
11 	HW_BREAKPOINT_LEN_3 = 3,
12 	HW_BREAKPOINT_LEN_4 = 4,
13 	HW_BREAKPOINT_LEN_5 = 5,
14 	HW_BREAKPOINT_LEN_6 = 6,
15 	HW_BREAKPOINT_LEN_7 = 7,
16 	HW_BREAKPOINT_LEN_8 = 8,
17 };
18 enum {
19 	HW_BREAKPOINT_EMPTY	= 0,
20 	HW_BREAKPOINT_R		= 1,
21 	HW_BREAKPOINT_W		= 2,
22 	HW_BREAKPOINT_RW	= HW_BREAKPOINT_R | HW_BREAKPOINT_W,
23 	HW_BREAKPOINT_X		= 4,
24 	HW_BREAKPOINT_INVALID   = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
25 };
26 enum bp_type_idx {
27 	TYPE_INST 	= 0,
28 #ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS
29 	TYPE_DATA	= 0,
30 #else
31 	TYPE_DATA	= 1,
32 #endif
33 	TYPE_MAX
34 };
35 #endif
36