diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-11-23 09:42:32 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-23 12:18:30 -0500 |
commit | e6db4876575f3fdd5b1df2cbff826df95ab9af6a (patch) | |
tree | 440da08b2437502804102cbfb2ea412eff2113b7 /include | |
parent | ba6909b719a5ccc0c8100d2895bb7ff557b2eeae (diff) |
hw-breakpoints: Include only linux/perf_event.h from kernel part of bp headers
As userspace only needs the breakpoints enum types from the
breakpoints headers.
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: <1258987355-8751-1-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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h index 4659e0c55ea6..76a48ab9a81e 100644 --- a/include/linux/hw_breakpoint.h +++ b/include/linux/hw_breakpoint.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef _LINUX_HW_BREAKPOINT_H | 1 | #ifndef _LINUX_HW_BREAKPOINT_H |
2 | #define _LINUX_HW_BREAKPOINT_H | 2 | #define _LINUX_HW_BREAKPOINT_H |
3 | 3 | ||
4 | #include <linux/perf_event.h> | ||
5 | |||
6 | enum { | 4 | enum { |
7 | HW_BREAKPOINT_LEN_1 = 1, | 5 | HW_BREAKPOINT_LEN_1 = 1, |
8 | HW_BREAKPOINT_LEN_2 = 2, | 6 | HW_BREAKPOINT_LEN_2 = 2, |
@@ -19,6 +17,8 @@ enum { | |||
19 | #ifdef __KERNEL__ | 17 | #ifdef __KERNEL__ |
20 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | 18 | #ifdef CONFIG_HAVE_HW_BREAKPOINT |
21 | 19 | ||
20 | #include <linux/perf_event.h> | ||
21 | |||
22 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) | 22 | static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) |
23 | { | 23 | { |
24 | return bp->attr.bp_addr; | 24 | return bp->attr.bp_addr; |