-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Copy uapi/linux/hw_breakpoint.h from the kernel
To allow the build to complete on older systems, where those files are either not uptodate, lacking some recent additions or not present at all. And check if the copy drifts from the kernel. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-3jz31pz4nw526uko5da9e7o3@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
- Loading branch information
Arnaldo Carvalho de Melo
committed
Jul 12, 2016
1 parent
4ffde49
commit 4998a12
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef _UAPI_LINUX_HW_BREAKPOINT_H | ||
#define _UAPI_LINUX_HW_BREAKPOINT_H | ||
|
||
enum { | ||
HW_BREAKPOINT_LEN_1 = 1, | ||
HW_BREAKPOINT_LEN_2 = 2, | ||
HW_BREAKPOINT_LEN_4 = 4, | ||
HW_BREAKPOINT_LEN_8 = 8, | ||
}; | ||
|
||
enum { | ||
HW_BREAKPOINT_EMPTY = 0, | ||
HW_BREAKPOINT_R = 1, | ||
HW_BREAKPOINT_W = 2, | ||
HW_BREAKPOINT_RW = HW_BREAKPOINT_R | HW_BREAKPOINT_W, | ||
HW_BREAKPOINT_X = 4, | ||
HW_BREAKPOINT_INVALID = HW_BREAKPOINT_RW | HW_BREAKPOINT_X, | ||
}; | ||
|
||
enum bp_type_idx { | ||
TYPE_INST = 0, | ||
#ifdef CONFIG_HAVE_MIXED_BREAKPOINTS_REGS | ||
TYPE_DATA = 0, | ||
#else | ||
TYPE_DATA = 1, | ||
#endif | ||
TYPE_MAX | ||
}; | ||
|
||
#endif /* _UAPI_LINUX_HW_BREAKPOINT_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters