diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-11-21 23:21:35 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-22 03:03:43 -0500 |
commit | 5093ebad5f2348076fdc3dac7d2358b1ad7f85f7 (patch) | |
tree | e9904d9b799945c2dde0b5b4aa6b6ea408e688ff /include | |
parent | b3a75542d329ce4e1c66b293cefeb4429a2af043 (diff) |
hw-breakpoints: Separate the kernel part from breakpoint headers
So that we can include this header from userspace tools, like
perf tools, to get the breakpoint types and len definitions.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Prasad <prasad@linux.vnet.ibm.com>
LKML-Reference: <1258863695-10464-4-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hw_breakpoint.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 0b98cbf76da7..4659e0c55ea6 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
@@ -16,6 +16,7 @@ enum { | |||
16 | HW_BREAKPOINT_X = 4, | 16 | HW_BREAKPOINT_X = 4, |
17 | }; | 17 | }; |
18 | 18 | ||
19 | #ifdef __KERNEL__ | ||
19 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | 20 | #ifdef CONFIG_HAVE_HW_BREAKPOINT |
20 | 21 | ||
21 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) | 22 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) |
@@ -133,5 +134,6 @@ static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp) | |||
133 | } | 134 | } |
134 | 135 | ||
135 | #endif /* CONFIG_HAVE_HW_BREAKPOINT */ | 136 | #endif /* CONFIG_HAVE_HW_BREAKPOINT */ |
137 | #endif /* __KERNEL__ */ | ||
136 | 138 | ||
137 | #endif /* _LINUX_HW_BREAKPOINT_H */ | 139 | #endif /* _LINUX_HW_BREAKPOINT_H */ |