powerpc/perf: Fix handling of L3 events with bank == 1
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Mar 2014 05:00:45 +0000 (16:00 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 23 Mar 2014 22:48:33 +0000 (09:48 +1100)
commite9aaac1ac39f58a897e9b71e153317c8c216cb21
tree6a9bfcbf00da50f00cd1afd2ccf17ef5115c7af9
parentad0a02b834777f2e107bfd2f3fa240cd7335cc59
powerpc/perf: Fix handling of L3 events with bank == 1

Currently we reject events which have the L3 bank == 1, such as
0x000084918F, because the cache field is non-zero.

However that is incorrect, because although the bank is non-zero, the
value we would write into MMCRC is zero, and so we can count the event.

So fix the check to ignore the bank selector when checking whether the
cache selector is non-zero.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/perf/power8-pmu.c
This page took 0.039165 seconds and 5 git commands to generate.