aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/events/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/events/core.c')
-rw-r--r--kernel/events/core.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c
index 7f2fbb8b5069..8812d8e35f5b 100644
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
@@ -8508,6 +8508,18 @@ void __init perf_event_init(void)
8508 != 1024); 8508 != 1024);
8509} 8509}
8510 8510
8511ssize_t perf_event_sysfs_show(struct device *dev, struct device_attribute *attr,
8512 char *page)
8513{
8514 struct perf_pmu_events_attr *pmu_attr =
8515 container_of(attr, struct perf_pmu_events_attr, attr);
8516
8517 if (pmu_attr->event_str)
8518 return sprintf(page, "%s\n", pmu_attr->event_str);
8519
8520 return 0;
8521}
8522
8511static int __init perf_event_sysfs_init(void) 8523static int __init perf_event_sysfs_init(void)
8512{ 8524{
8513 struct pmu *pmu; 8525 struct pmu *pmu;