summaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-10-16 20:17:25 +0200
committerIngo Molnar <mingo@elte.hu>2010-10-16 20:17:25 +0200
commitf92f6e6ee35d2779aa62e70f78ad8e1cd417eb52 (patch)
tree1e8e2ee34678a43d416c4bab58f9ca91673d4444 /kernel/perf_event.c
parent66af86e2c630908b21cec018cb612576cf5f516e (diff)
parentcd254f295248c98b62ea824f361e10d80a081fe7 (diff)
Merge branch 'core' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into perf/core
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 64507eaa2d9..1ec3916ffef 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -63,6 +63,11 @@ static atomic64_t perf_event_id;
void __weak perf_event_print_debug(void) { }
+extern __weak const char *perf_pmu_name(void)
+{
+ return "pmu";
+}
+
void perf_pmu_disable(struct pmu *pmu)
{
int *count = this_cpu_ptr(pmu->pmu_disable_count);