summaryrefslogtreecommitdiff
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-09-06 14:32:03 +0200
committerIngo Molnar <mingo@elte.hu>2010-09-09 20:46:32 +0200
commit108b02cfce04ee90b0a07ee0b104baffd39f5934 (patch)
treee209d5fe01cda90df2cc0241c6247fd934cc5087 /include/linux/perf_event.h
parentb5ab4cd563e7ab49b27957704112a8ecade54e1f (diff)
downloadlinux-3.10-108b02cfce04ee90b0a07ee0b104baffd39f5934.tar.gz
linux-3.10-108b02cfce04ee90b0a07ee0b104baffd39f5934.tar.bz2
linux-3.10-108b02cfce04ee90b0a07ee0b104baffd39f5934.zip
perf: Per-pmu-per-cpu contexts
Allocate per-cpu contexts per pmu. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: paulus <paulus@samba.org> Cc: stephane eranian <eranian@googlemail.com> Cc: Robert Richter <robert.richter@amd.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Lin Ming <ming.m.lin@intel.com> Cc: Yanmin <yanmin_zhang@linux.intel.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index fa04537df55..22155ef3b36 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -570,7 +570,8 @@ struct perf_event;
struct pmu {
struct list_head entry;
- int *pmu_disable_count;
+ int * __percpu pmu_disable_count;
+ struct perf_cpu_context * __percpu pmu_cpu_context;
/*
* Fully disable/enable this PMU, can be used to protect from the PMI
@@ -808,6 +809,7 @@ struct perf_event {
* Used as a container for task events and CPU events as well:
*/
struct perf_event_context {
+ struct pmu *pmu;
/*
* Protect the states of the events in the list,
* nr_active, and the list: