summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/perf_event.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2013-01-24 16:10:25 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-26 16:50:23 -0300
commit1a6461b12872e9622c231928e1620504d741cc79 (patch)
treeebf093761ebd3a98caf71013a14601ff7b51fe1e /arch/x86/kernel/cpu/perf_event.h
parent328ccdace8855289ad114b70ee1464ba5e3f6436 (diff)
downloadop-kernel-dev-1a6461b12872e9622c231928e1620504d741cc79.zip
op-kernel-dev-1a6461b12872e9622c231928e1620504d741cc79.tar.gz
perf/x86: Support CPU specific sysfs events
Add a way for the CPU initialization code to register additional events, and merge them into the events attribute directory. Used in the next patch. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Stephane Eranian <eranian@google.com> Cc: peterz@infradead.org Cc: acme@redhat.com Cc: jolsa@redhat.com Cc: namhyung.kim@lge.com Link: http://lkml.kernel.org/r/1359040242-8269-2-git-send-email-eranian@google.com [ small cleanups ] Signed-off-by: Ingo Molnar <mingo@kernel.org> [ merge_attr returns a **, not just * ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event.h')
-rw-r--r--arch/x86/kernel/cpu/perf_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event.h b/arch/x86/kernel/cpu/perf_event.h
index 7f5c75c..95152c1 100644
--- a/arch/x86/kernel/cpu/perf_event.h
+++ b/arch/x86/kernel/cpu/perf_event.h
@@ -357,6 +357,7 @@ struct x86_pmu {
struct attribute **format_attrs;
ssize_t (*events_sysfs_show)(char *page, u64 config);
+ struct attribute **cpu_events;
/*
* CPU Hotplug hooks
OpenPOWER on IntegriCloud