aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-11-17 17:17:37 -0500
committerIngo Molnar <mingo@elte.hu>2010-12-16 05:36:43 -0500
commitabe43400579d5de0078c2d3a760e6598e183f871 (patch)
tree1f6faf8a1ab60f3f9bfb26265c84c2725e6c4aaa /include/linux/perf_event.h
parent2e80a82a49c4c7eca4e35734380f28298ba5db19 (diff)
perf: Sysfs enumeration
Simple sysfs emumeration of the PMUs. Use a "event_source" bus, and add PMU devices using their name. Each PMU device has a type attribute which contrains the value needed for perf_event_attr::type to identify this PMU. This is the minimal stub needed to start using this interface, we'll consider extending the sysfs usage later. Cc: Kay Sievers <kay.sievers@vrfy.org> Cc: Greg KH <gregkh@suse.de> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20101117222056.316982569@chello.nl> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 21206d27466b..dda5b0a3ff60 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -588,6 +588,7 @@ struct perf_event;
588struct pmu { 588struct pmu {
589 struct list_head entry; 589 struct list_head entry;
590 590
591 struct device *dev;
591 char *name; 592 char *name;
592 int type; 593 int type;
593 594