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:Hao Chen <chenhao418@huawei.com>
Loading
Please sign in to comment