Commit 2e4f319f authored by Jiantao Xiao's avatar Jiantao Xiao
Browse files

Revert "perf: pmu: fix set wrong filter mode for running events issue"

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I87YZU


CVE: NA

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

This reverts commit f612eb2f.

This patch is rolled back by the kernel community due to incomplete
consideration of abnormal scenarios. Need to be revert.

Signed-off-by: default avatarJiantao Xiao <xiaojiantao1@h-partners.com>
parent 22cb1432
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1008,13 +1008,12 @@ static bool
hns3_pmu_is_enabled_port_tc_mode(struct perf_event *event,
				 struct hns3_pmu_event_attr *pmu_event)
{
	u16 bdf = hns3_pmu_get_bdf(event);
	u8 tc_id = hns3_pmu_get_tc(event);

	if (!(pmu_event->filter_support & HNS3_PMU_FILTER_SUPPORT_PORT_TC))
		return false;

	return (tc_id != HNS3_PMU_FILTER_ALL_TC) && (!bdf);
	return tc_id != HNS3_PMU_FILTER_ALL_TC;
}

static bool