diff options
Diffstat (limited to 'arch/sh/include/asm/hw_breakpoint.h')
-rw-r--r-- | arch/sh/include/asm/hw_breakpoint.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/sh/include/asm/hw_breakpoint.h b/arch/sh/include/asm/hw_breakpoint.h index 965dd780d51..89890f61a7b 100644 --- a/arch/sh/include/asm/hw_breakpoint.h +++ b/arch/sh/include/asm/hw_breakpoint.h | |||
@@ -46,17 +46,20 @@ struct pmu; | |||
46 | /* Maximum number of UBC channels */ | 46 | /* Maximum number of UBC channels */ |
47 | #define HBP_NUM 2 | 47 | #define HBP_NUM 2 |
48 | 48 | ||
49 | static inline int hw_breakpoint_slots(int type) | ||
50 | { | ||
51 | return HBP_NUM; | ||
52 | } | ||
53 | |||
49 | /* arch/sh/kernel/hw_breakpoint.c */ | 54 | /* arch/sh/kernel/hw_breakpoint.c */ |
50 | extern int arch_check_va_in_userspace(unsigned long va, u16 hbp_len); | 55 | extern int arch_check_bp_in_kernelspace(struct perf_event *bp); |
51 | extern int arch_validate_hwbkpt_settings(struct perf_event *bp, | 56 | extern int arch_validate_hwbkpt_settings(struct perf_event *bp); |
52 | struct task_struct *tsk); | ||
53 | extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, | 57 | extern int hw_breakpoint_exceptions_notify(struct notifier_block *unused, |
54 | unsigned long val, void *data); | 58 | unsigned long val, void *data); |
55 | 59 | ||
56 | int arch_install_hw_breakpoint(struct perf_event *bp); | 60 | int arch_install_hw_breakpoint(struct perf_event *bp); |
57 | void arch_uninstall_hw_breakpoint(struct perf_event *bp); | 61 | void arch_uninstall_hw_breakpoint(struct perf_event *bp); |
58 | void hw_breakpoint_pmu_read(struct perf_event *bp); | 62 | void hw_breakpoint_pmu_read(struct perf_event *bp); |
59 | void hw_breakpoint_pmu_unthrottle(struct perf_event *bp); | ||
60 | 63 | ||
61 | extern void arch_fill_perf_breakpoint(struct perf_event *bp); | 64 | extern void arch_fill_perf_breakpoint(struct perf_event *bp); |
62 | extern int register_sh_ubc(struct sh_ubc *); | 65 | extern int register_sh_ubc(struct sh_ubc *); |