projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a7554
)
hw-breakpoints: Separate the kernel part from breakpoint headers
author
Frederic Weisbecker
<
[email protected]
>
Sun, 22 Nov 2009 04:21:35 +0000
(
05:21
+0100)
committer
Ingo Molnar
<
[email protected]
>
Sun, 22 Nov 2009 08:03:43 +0000
(09:03 +0100)
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 <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Prasad <
[email protected]
>
LKML-Reference: <
1258863695
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
include/linux/hw_breakpoint.h
patch
|
blob
|
history
diff --git
a/include/linux/hw_breakpoint.h
b/include/linux/hw_breakpoint.h
index 0b98cbf76da7adc5e9ef6b8f47d0b51e52ffd501..4659e0c55ea638737d76109327fc4a6b5eb8e40a 100644
(file)
--- a/
include/linux/hw_breakpoint.h
+++ b/
include/linux/hw_breakpoint.h
@@
-16,6
+16,7
@@
enum {
HW_BREAKPOINT_X = 4,
};
+#ifdef __KERNEL__
#ifdef CONFIG_HAVE_HW_BREAKPOINT
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)
}
#endif /* CONFIG_HAVE_HW_BREAKPOINT */
+#endif /* __KERNEL__ */
#endif /* _LINUX_HW_BREAKPOINT_H */