* [PATCH] perf: Exporting perf PMU functions
@ 2011-09-01 19:58 Stephen George
0 siblings, 0 replies; only message in thread
From: Stephen George @ 2011-09-01 19:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Stephen George
These exports allow a perf PMU to be implemented as a module
instead of being restricted to being a built-in.
Signed-off-by: Stephen George <stephen.george@freescale.com>
---
kernel/events/core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 9efe710..007c848 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -555,6 +555,7 @@ void perf_pmu_disable(struct pmu *pmu)
if (!(*count)++)
pmu->pmu_disable(pmu);
}
+EXPORT_SYMBOL_GPL(perf_pmu_disable);
void perf_pmu_enable(struct pmu *pmu)
{
@@ -562,6 +563,7 @@ void perf_pmu_enable(struct pmu *pmu)
if (!--(*count))
pmu->pmu_enable(pmu);
}
+EXPORT_SYMBOL_GPL(perf_pmu_enable);
static DEFINE_PER_CPU(struct list_head, rotation_list);
@@ -6085,6 +6087,7 @@ free_pdc:
free_percpu(pmu->pmu_disable_count);
goto unlock;
}
+EXPORT_SYMBOL_GPL(perf_pmu_register);
void perf_pmu_unregister(struct pmu *pmu)
{
@@ -6106,6 +6109,7 @@ void perf_pmu_unregister(struct pmu *pmu)
put_device(pmu->dev);
free_pmu_context(pmu);
}
+EXPORT_SYMBOL_GPL(perf_pmu_unregister);
struct pmu *perf_init_event(struct perf_event *event)
{
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-01 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-01 19:58 [PATCH] perf: Exporting perf PMU functions Stephen George
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®