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.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/linux/hw_breakpoint.h b/include/linux/hw_breakpoint.h
index 7eba9b92e5f3..18710e0c84bd 100644
--- a/include/linux/hw_breakpoint.h
+++ b/include/linux/hw_breakpoint.h
@@ -16,11 +16,6 @@ enum {
16 HW_BREAKPOINT_X = 4, 16 HW_BREAKPOINT_X = 4,
17}; 17};
18 18
19static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
20{
21 return &bp->hw.info;
22}
23
24static inline unsigned long hw_breakpoint_addr(struct perf_event *bp) 19static inline unsigned long hw_breakpoint_addr(struct perf_event *bp)
25{ 20{
26 return bp->attr.bp_addr; 21 return bp->attr.bp_addr;
@@ -83,6 +78,11 @@ extern void release_bp_slot(struct perf_event *bp);
83 78
84extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk); 79extern void flush_ptrace_hw_breakpoint(struct task_struct *tsk);
85 80
81static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
82{
83 return &bp->hw.info;
84}
85
86#else /* !CONFIG_HAVE_HW_BREAKPOINT */ 86#else /* !CONFIG_HAVE_HW_BREAKPOINT */
87 87
88static inline struct perf_event * 88static inline struct perf_event *
@@ -126,6 +126,11 @@ static inline void release_bp_slot(struct perf_event *bp) { }
126 126
127static inline void flush_ptrace_hw_breakpoint(struct task_struct *tsk) { } 127static inline void flush_ptrace_hw_breakpoint(struct task_struct *tsk) { }
128 128
129static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
130{
131 return NULL;
132}
133
129#endif /* CONFIG_HAVE_HW_BREAKPOINT */ 134#endif /* CONFIG_HAVE_HW_BREAKPOINT */
130 135
131#endif /* _LINUX_HW_BREAKPOINT_H */ 136#endif /* _LINUX_HW_BREAKPOINT_H */