]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
perf: qcom_l2: fix column exclusion check
authorNeil Leeder <nleeder@codeaurora.org>
Mon, 24 Jul 2017 21:17:02 +0000 (17:17 -0400)
committerWill Deacon <will.deacon@arm.com>
Wed, 26 Jul 2017 08:27:43 +0000 (09:27 +0100)
commit6c17c1c3099d7367e67d51290884846dfeecf7bf
tree837f47c38e3fc99ecef48cac7a3df8067f286f4c
parent288be97cc74e31b7871c75eb11a8dd768dcb535d
perf: qcom_l2: fix column exclusion check

The check for column exclusion did not verify that the event being
checked was an L2 event, and not a software event.
Software events should not be checked for column exclusion.
This resulted in a group with both software and L2 events sometimes
incorrectly rejecting the L2 event for column exclusion and
not counting it.

Add a check for PMU type before applying column exclusion logic.

Fixes: 21bdbb7102edeaeb ("perf: add qcom l2 cache perf events driver")
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/qcom_l2_pmu.c