aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hw_breakpoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hw_breakpoint.h')
-rw-r--r--include/linux/hw_breakpoint.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h
index 76a48ab9a81e..c9f7f7c7b0e0 100644
--- a/include/linux/hw_breakpoint.h
+++ b/include/linux/hw_breakpoint.h
@@ -15,10 +15,11 @@ enum {
15}; 15};
16 16
17#ifdef __KERNEL__ 17#ifdef __KERNEL__
18#ifdef CONFIG_HAVE_HW_BREAKPOINT
19 18
20#include <linux/perf_event.h> 19#include <linux/perf_event.h>
21 20
21#ifdef CONFIG_HAVE_HW_BREAKPOINT
22
22static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) 23static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
23{ 24{
24 return bp->attr.bp_addr; 25 return bp->attr.bp_addr;