[PATCH] perf: Exporting perf PMU functions

From: Stephen George
Date: Thu Sep 01 2011 - 16:00:21 EST


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@xxxxxxxxxxxxx>
---
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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/