[PATCH v6 1/2] perf/x86: Export events_sysfs_show()

From: Huang Rui
Date: Thu Mar 03 2016 - 03:17:07 EST


This interface will be used in modular perf drivers.

Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
---
arch/x86/kernel/cpu/perf_event.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index 1b443db..47f673c 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -1601,6 +1601,7 @@ ssize_t events_sysfs_show(struct device *dev, struct device_attribute *attr,

return x86_pmu.events_sysfs_show(page, config);
}
+EXPORT_SYMBOL_GPL(events_sysfs_show);

EVENT_ATTR(cpu-cycles, CPU_CYCLES );
EVENT_ATTR(instructions, INSTRUCTIONS );
--
1.9.1