diff options
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r-- | kernel/perf_counter.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 673c1aaf7332..52eb4b68d34f 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -3703,17 +3703,17 @@ static const struct pmu perf_ops_task_clock = { | |||
3703 | }; | 3703 | }; |
3704 | 3704 | ||
3705 | #ifdef CONFIG_EVENT_PROFILE | 3705 | #ifdef CONFIG_EVENT_PROFILE |
3706 | void perf_tpcounter_event(int event_id) | 3706 | void perf_tpcounter_event(int event_id, u64 addr, u64 count) |
3707 | { | 3707 | { |
3708 | struct perf_sample_data data = { | 3708 | struct perf_sample_data data = { |
3709 | .regs = get_irq_regs(), | 3709 | .regs = get_irq_regs(), |
3710 | .addr = 0, | 3710 | .addr = addr, |
3711 | }; | 3711 | }; |
3712 | 3712 | ||
3713 | if (!data.regs) | 3713 | if (!data.regs) |
3714 | data.regs = task_pt_regs(current); | 3714 | data.regs = task_pt_regs(current); |
3715 | 3715 | ||
3716 | do_perf_swcounter_event(PERF_TYPE_TRACEPOINT, event_id, 1, 1, &data); | 3716 | do_perf_swcounter_event(PERF_TYPE_TRACEPOINT, event_id, count, 1, &data); |
3717 | } | 3717 | } |
3718 | EXPORT_SYMBOL_GPL(perf_tpcounter_event); | 3718 | EXPORT_SYMBOL_GPL(perf_tpcounter_event); |
3719 | 3719 | ||