xref: /linux/include/uapi/linux/hw_breakpoint.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_LINUX_HW_BREAKPOINT_H
3 #define _UAPI_LINUX_HW_BREAKPOINT_H
4 
5 enum {
6 	HW_BREAKPOINT_LEN_1 = 1,
7 	HW_BREAKPOINT_LEN_2 = 2,
8 	HW_BREAKPOINT_LEN_3 = 3,
9 	HW_BREAKPOINT_LEN_4 = 4,
10 	HW_BREAKPOINT_LEN_5 = 5,
11 	HW_BREAKPOINT_LEN_6 = 6,
12 	HW_BREAKPOINT_LEN_7 = 7,
13 	HW_BREAKPOINT_LEN_8 = 8,
14 };
15 
16 enum {
17 	HW_BREAKPOINT_EMPTY	= 0,
18 	HW_BREAKPOINT_R		= 1,
19 	HW_BREAKPOINT_W		= 2,
20 	HW_BREAKPOINT_RW	= HW_BREAKPOINT_R | HW_BREAKPOINT_W,
21 	HW_BREAKPOINT_X		= 4,
22 	HW_BREAKPOINT_INVALID   = HW_BREAKPOINT_RW | HW_BREAKPOINT_X,
23 };
24 
25 #endif /* _UAPI_LINUX_HW_BREAKPOINT_H */
26