aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 18710e0c84bd..0b98cbf76da7 100644
--- a/include/linux/hw_breakpoint.h
+++ b/include/linux/hw_breakpoint.h
@@ -16,6 +16,8 @@ enum {
16 HW_BREAKPOINT_X = 4, 16 HW_BREAKPOINT_X = 4,
17}; 17};
18 18
19#ifdef CONFIG_HAVE_HW_BREAKPOINT
20
19static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) 21static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
20{ 22{
21 return bp->attr.bp_addr; 23 return bp->attr.bp_addr;
@@ -31,7 +33,6 @@ static inline int hw_breakpoint_len(struct perf_event *bp)
31 return bp->attr.bp_len; 33 return bp->attr.bp_len;
32} 34}
33 35
34#ifdef CONFIG_HAVE_HW_BREAKPOINT
35extern struct perf_event * 36extern struct perf_event *
36register_user_hw_breakpoint(unsigned long addr, 37register_user_hw_breakpoint(unsigned long addr,
37 int len, 38 int len,