Commit f612eb2f authored by Hao Chen's avatar Hao Chen Committed by Jiantao Xiao
Browse files

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

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


CVE: NA

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

For a special scenario, command use function-queue level event parameter,
but 'config' parameter use events which doesn't support func-queue mode.

When set filter mode in hns3 pmu driver code, it will not hit func-queue
branch and hit port-tc branch, it's not up to expectations.

It shouldn't match any branches but return -ENOENT.

So, add judgement of bdf parameter to fix it.

Fixes: 66637ab1 ("drivers/perf: hisi: add driver for HNS3 PMU")
Signed-off-by: default avatarHao Chen <chenhao418@huawei.com>
parent 77566d2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment