diff options
Diffstat (limited to 'kernel/perf_event.c')
| -rw-r--r-- | kernel/perf_event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c index 517d827f4982..05b7d8c72c6c 100644 --- a/kernel/perf_event.c +++ b/kernel/perf_event.c | |||
| @@ -31,6 +31,7 @@ | |||
| 31 | #include <linux/kernel_stat.h> | 31 | #include <linux/kernel_stat.h> |
| 32 | #include <linux/perf_event.h> | 32 | #include <linux/perf_event.h> |
| 33 | #include <linux/ftrace_event.h> | 33 | #include <linux/ftrace_event.h> |
| 34 | #include <linux/hw_breakpoint.h> | ||
| 34 | 35 | ||
| 35 | #include <asm/irq_regs.h> | 36 | #include <asm/irq_regs.h> |
| 36 | 37 | ||
| @@ -6295,6 +6296,8 @@ perf_cpu_notify(struct notifier_block *self, unsigned long action, void *hcpu) | |||
| 6295 | 6296 | ||
| 6296 | void __init perf_event_init(void) | 6297 | void __init perf_event_init(void) |
| 6297 | { | 6298 | { |
| 6299 | int ret; | ||
| 6300 | |||
| 6298 | perf_event_init_all_cpus(); | 6301 | perf_event_init_all_cpus(); |
| 6299 | init_srcu_struct(&pmus_srcu); | 6302 | init_srcu_struct(&pmus_srcu); |
| 6300 | perf_pmu_register(&perf_swevent); | 6303 | perf_pmu_register(&perf_swevent); |
| @@ -6302,4 +6305,7 @@ void __init perf_event_init(void) | |||
| 6302 | perf_pmu_register(&perf_task_clock); | 6305 | perf_pmu_register(&perf_task_clock); |
| 6303 | perf_tp_register(); | 6306 | perf_tp_register(); |
| 6304 | perf_cpu_notifier(perf_cpu_notify); | 6307 | perf_cpu_notifier(perf_cpu_notify); |
| 6308 | |||
| 6309 | ret = init_hw_breakpoint(); | ||
| 6310 | WARN(ret, "hw_breakpoint initialization failed with: %d", ret); | ||
| 6305 | } | 6311 | } |
