[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1314907134-5098-1-git-send-email-stephen.george@freescale.com>
Date: Thu, 1 Sep 2011 14:58:54 -0500
From: Stephen George <stephen.george@...escale.com>
To: <linux-kernel@...r.kernel.org>
CC: Stephen George <stephen.george@...escale.com>
Subject: [PATCH] perf: Exporting perf PMU functions
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@...escale.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists