]> git.baikalelectronics.ru Git - kernel.git/commit
perf: New helper function for pmu name
authorMatt Fleming <matt@console-pimps.org>
Sun, 3 Oct 2010 20:41:13 +0000 (21:41 +0100)
committerRobert Richter <robert.richter@amd.com>
Mon, 11 Oct 2010 15:45:49 +0000 (17:45 +0200)
commitc66a1125f13e300e08850549416ba3f87db0d539
tree1fc9f7c8139f680f3d899328128a38e5087c30c7
parent3604db104f174adb33446d442504db518962c93b
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>
arch/sh/kernel/perf_event.c
include/linux/perf_event.h
kernel/perf_event.c