summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/perf/power4-pmu.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2014-07-23 13:12:37 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-07-28 06:30:47 +0200
commit8abd818fc76705065f3699a753ad2df594dafe86 (patch)
tree637f4dd5007249d03f8ce82b7ccf582646a1736c /arch/powerpc/perf/power4-pmu.c
parentpowerpc/perf: Clear all MMCR settings before calling compute_mmcr() (diff)
downloadlinux-8abd818fc76705065f3699a753ad2df594dafe86.tar.xz
linux-8abd818fc76705065f3699a753ad2df594dafe86.zip
powerpc/perf: Pass the struct perf_events down to compute_mmcr()
To support per-event exclude settings on Power8 we need access to the struct perf_events in compute_mmcr(). Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/perf/power4-pmu.c')
-rw-r--r--arch/powerpc/perf/power4-pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/perf/power4-pmu.c b/arch/powerpc/perf/power4-pmu.c
index 9103a1de864d..ce6072fa481b 100644
--- a/arch/powerpc/perf/power4-pmu.c
+++ b/arch/powerpc/perf/power4-pmu.c
@@ -356,7 +356,7 @@ static int p4_get_alternatives(u64 event, unsigned int flags, u64 alt[])
}
static int p4_compute_mmcr(u64 event[], int n_ev,
- unsigned int hwc[], unsigned long mmcr[])
+ unsigned int hwc[], unsigned long mmcr[], struct perf_event *pevents[])
{
unsigned long mmcr0 = 0, mmcr1 = 0, mmcra = 0;
unsigned int pmc, unit, byte, psel, lower;