diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2010-09-07 18:32:22 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-09 20:46:34 +0200 |
commit | 1b9a644fece117cfa5474a2388d6b89d1baf8ddf (patch) | |
tree | c89be6de269578501a365f7526a81fb64cb6ba93 /include/linux/perf_event.h | |
parent | 89a1e18731959e9953fae15ddc1a983eb15a4f19 (diff) | |
download | kernel_samsung_aries-1b9a644fece117cfa5474a2388d6b89d1baf8ddf.zip kernel_samsung_aries-1b9a644fece117cfa5474a2388d6b89d1baf8ddf.tar.gz kernel_samsung_aries-1b9a644fece117cfa5474a2388d6b89d1baf8ddf.tar.bz2 |
perf: Optimize context ops
Assuming we don't mix events of different pmus onto a single context
(with the exeption of software events inside a hardware group) we can
now assume that all events on a particular context belong to the same
pmu, hence we can disable the pmu for the entire context operations.
This reduces the amount of hardware writes.
The exception for swevents comes from the fact that the sw pmu disable
is a nop.
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')
0 files changed, 0 insertions, 0 deletions