aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-09-06 08:32:03 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-09 14:46:32 -0400
commit108b02cfce04ee90b0a07ee0b104baffd39f5934 (patch)
treee209d5fe01cda90df2cc0241c6247fd934cc5087 /include
parentb5ab4cd563e7ab49b27957704112a8ecade54e1f (diff)
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')
-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 fa04537df55b..22155ef3b362 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -570,7 +570,8 @@ struct perf_event;
570struct pmu { 570struct pmu {
571 struct list_head entry; 571 struct list_head entry;
572 572
573 int *pmu_disable_count; 573 int * __percpu pmu_disable_count;
574 struct perf_cpu_context * __percpu pmu_cpu_context;
574 575
575 /* 576 /*
576 * Fully disable/enable this PMU, can be used to protect from the PMI 577 * Fully disable/enable this PMU, can be used to protect from the PMI
@@ -808,6 +809,7 @@ struct perf_event {
808 * Used as a container for task events and CPU events as well: 809 * Used as a container for task events and CPU events as well:
809 */ 810 */
810struct perf_event_context { 811struct perf_event_context {
812 struct pmu *pmu;
811 /* 813 /*
812 * Protect the states of the events in the list, 814 * Protect the states of the events in the list,
813 * nr_active, and the list: 815 * nr_active, and the list: