diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-10-03 20:41:13 (GMT) |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2010-10-11 15:45:49 (GMT) |
commit | 84c7991059c9c4530cc911137c5bf508a41ed129 (patch) | |
tree | 1fc9f7c8139f680f3d899328128a38e5087c30c7 /include/linux/perf_event.h | |
parent | 3bf101ba42a1c89b5afbc7492e7647dae5e18735 (diff) | |
download | linux-fsl-qoriq-84c7991059c9c4530cc911137c5bf508a41ed129.tar.xz |
perf: New helper function for pmu name
Introduce perf_pmu_name() helper function that returns the name of the
pmu. This gives us a generic way to get the name of a pmu regardless of
how an architecture identifies it internally.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r-- | include/linux/perf_event.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 1a02192..33f08da 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -850,6 +850,7 @@ extern int perf_max_events; extern const struct pmu *hw_perf_event_init(struct perf_event *event); extern int perf_num_counters(void); +extern const char *perf_pmu_name(void); extern void perf_event_task_sched_in(struct task_struct *task); extern void perf_event_task_sched_out(struct task_struct *task, struct task_struct *next); extern void perf_event_task_tick(struct task_struct *task); |