Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1695106
| From | Neil Leeder <nleeder@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] perf: qcom_l2: fix column exclusion check |
| Date | 2017-07-24 23:20 +0200 |
| Message-ID | <u6SVH-227-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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.
Signed-off-by: Neil Leeder <nleeder@codeaurora.org>
---
drivers/perf/qcom_l2_pmu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/perf/qcom_l2_pmu.c b/drivers/perf/qcom_l2_pmu.c
index c259848..b242cce 100644
--- a/drivers/perf/qcom_l2_pmu.c
+++ b/drivers/perf/qcom_l2_pmu.c
@@ -546,6 +546,7 @@ static int l2_cache_event_init(struct perf_event *event)
}
if ((event != event->group_leader) &&
+ !is_software_event(event->group_leader) &&
(L2_EVT_GROUP(event->group_leader->attr.config) ==
L2_EVT_GROUP(event->attr.config))) {
dev_dbg_ratelimited(&l2cache_pmu->pdev->dev,
@@ -558,6 +559,7 @@ static int l2_cache_event_init(struct perf_event *event)
list_for_each_entry(sibling, &event->group_leader->sibling_list,
group_entry) {
if ((sibling != event) &&
+ !is_software_event(sibling) &&
(L2_EVT_GROUP(sibling->attr.config) ==
L2_EVT_GROUP(event->attr.config))) {
dev_dbg_ratelimited(&l2cache_pmu->pdev->dev,
--
Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project.
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] perf: qcom_l2: fix column exclusion check Neil Leeder <nleeder@codeaurora.org> - 2017-07-24 23:20 +0200
Re: [PATCH] perf: qcom_l2: fix column exclusion check Mark Rutland <mark.rutland@arm.com> - 2017-07-25 19:10 +0200
Re: [PATCH] perf: qcom_l2: fix column exclusion check "Leeder, Neil" <nleeder@codeaurora.org> - 2017-07-25 21:50 +0200
Re: [PATCH] perf: qcom_l2: fix column exclusion check Will Deacon <will.deacon@arm.com> - 2017-07-26 10:30 +0200
csiph-web