提交 fd292e08 编写于 作者: Q Qi Liu 提交者: Zhong Jinghua

perf pmu: Add alias match method to fit pmu_name of HiSilicon DDRC

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

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

pmu_name of DDRC PMU on Hip09 platform is set as "hisi_sllcX_ddrcY_Z",
current match method of pmu_name cannot fit DDRC pmu, so modify the method.
Signed-off-by: NQi Liu <liuqi115@huawei.com>
Signed-off-by: NJunhao He <hejunhao3@huawei.com>
上级 475d8788
......@@ -739,7 +739,7 @@ static bool perf_pmu__valid_suffix(const char *pmu_name, char *tok)
/* Ensure we end in a number */
while (1) {
if (!isdigit(*p))
if (!isdigit(*p) && (*p != '_'))
return false;
if (*(++p) == 0)
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册