diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2014-07-23 07:12:37 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-28 00:30:47 -0400 |
commit | 8abd818fc76705065f3699a753ad2df594dafe86 (patch) | |
tree | 637f4dd5007249d03f8ce82b7ccf582646a1736c /arch/powerpc/perf/power8-pmu.c | |
parent | 79a4cb28a07c4e24103d00741a3dc2618532efe6 (diff) |
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/power8-pmu.c')
-rw-r--r-- | arch/powerpc/perf/power8-pmu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/perf/power8-pmu.c b/arch/powerpc/perf/power8-pmu.c index 639cd9156585..19bbddf495dd 100644 --- a/arch/powerpc/perf/power8-pmu.c +++ b/arch/powerpc/perf/power8-pmu.c | |||
@@ -393,7 +393,8 @@ static int power8_get_constraint(u64 event, unsigned long *maskp, unsigned long | |||
393 | } | 393 | } |
394 | 394 | ||
395 | static int power8_compute_mmcr(u64 event[], int n_ev, | 395 | static int power8_compute_mmcr(u64 event[], int n_ev, |
396 | unsigned int hwc[], unsigned long mmcr[]) | 396 | unsigned int hwc[], unsigned long mmcr[], |
397 | struct perf_event *pevents[]) | ||
397 | { | 398 | { |
398 | unsigned long mmcra, mmcr1, unit, combine, psel, cache, val; | 399 | unsigned long mmcra, mmcr1, unit, combine, psel, cache, val; |
399 | unsigned int pmc, pmc_inuse; | 400 | unsigned int pmc, pmc_inuse; |