提交 0c815620 编写于 作者: J Junhao He 提交者: Zhou Juan

hwtracing: hisi_ptt: Keep to advertise PERF_PMU_CAP_EXCLUSIVE

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7F2F2
CVE: NA

--------------------------------

Keep to advertise PERF_PMU_CAP_EXCLUSIVE. Such pmus can only have one
event scheduled at a time, and the perf tool will report device busy.
Signed-off-by: NJunhao He <hejunhao3@huawei.com>
上级 9492f177
...@@ -1215,7 +1215,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt) ...@@ -1215,7 +1215,7 @@ static int hisi_ptt_register_pmu(struct hisi_ptt *hisi_ptt)
hisi_ptt->hisi_ptt_pmu = (struct pmu) { hisi_ptt->hisi_ptt_pmu = (struct pmu) {
.module = THIS_MODULE, .module = THIS_MODULE,
.capabilities = PERF_PMU_CAP_NO_EXCLUDE, .capabilities = PERF_PMU_CAP_NO_EXCLUDE | PERF_PMU_CAP_EXCLUSIVE,
.task_ctx_nr = perf_sw_context, .task_ctx_nr = perf_sw_context,
.attr_groups = hisi_ptt_pmu_groups, .attr_groups = hisi_ptt_pmu_groups,
.event_init = hisi_ptt_pmu_event_init, .event_init = hisi_ptt_pmu_event_init,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册