summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/power7-pmu.c
diff options
context:
space:
mode:
authorPeter Zijlstra2009-06-10 21:34:59 +0200
committerIngo Molnar2009-06-11 02:39:02 +0200
commit9e350de37ac9607012fcf9c5314a28fbddf8f43c (patch)
treed0f311bcf49d887e6d488ea72b2913cb00eaf910 /arch/powerpc/kernel/power7-pmu.c
parentperf_counter: Introduce struct for sample data (diff)
downloadkernel-qcow2-linux-9e350de37ac9607012fcf9c5314a28fbddf8f43c.tar.gz
kernel-qcow2-linux-9e350de37ac9607012fcf9c5314a28fbddf8f43c.tar.xz
kernel-qcow2-linux-9e350de37ac9607012fcf9c5314a28fbddf8f43c.zip
perf_counter: Accurate period data
We currently log hw.sample_period for PERF_SAMPLE_PERIOD, however this is incorrect. When we adjust the period, it will only take effect the next cycle but report it for the current cycle. So when we adjust the period for every cycle, we're always wrong. Solve this by keeping track of the last_period. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/powerpc/kernel/power7-pmu.c')
0 files changed, 0 insertions, 0 deletions