]> Git Repo - linux.git/commit
perf_counter: powerpc: use u64 for event codes internally
authorPaul Mackerras <[email protected]>
Thu, 14 May 2009 03:29:14 +0000 (13:29 +1000)
committerIngo Molnar <[email protected]>
Fri, 15 May 2009 14:38:55 +0000 (16:38 +0200)
commitef923214a4816c289e4af2d67a9ebb1a31e4ac61
treebf850f4f53a4f8391b6b9c0335e58364668586d9
parent2e569d36729c8105ae066a9b105068305442cc77
perf_counter: powerpc: use u64 for event codes internally

Although the perf_counter API allows 63-bit raw event codes,
internally in the powerpc back-end we had been using 32-bit
event codes.  This expands them to 64 bits so that we can add
bits for specifying threshold start/stop events and instruction
sampling modes later.

This also corrects the return value of can_go_on_limited_pmc;
we were returning an event code rather than just a 0/1 value in
some circumstances. That didn't particularly matter while event
codes were 32-bit, but now that event codes are 64-bit it
might, so this fixes it.

[ Impact: extend PowerPC perfcounter interfaces from u32 to u64 ]

Signed-off-by: Paul Mackerras <[email protected]>
Acked-by: Peter Zijlstra <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
arch/powerpc/include/asm/perf_counter.h
arch/powerpc/kernel/perf_counter.c
arch/powerpc/kernel/power4-pmu.c
arch/powerpc/kernel/power5+-pmu.c
arch/powerpc/kernel/power5-pmu.c
arch/powerpc/kernel/power6-pmu.c
arch/powerpc/kernel/ppc970-pmu.c
This page took 0.073113 seconds and 4 git commands to generate.