summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2021-07-20 18:10:19 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-27 19:21:46 +0300
commitc07d5c9226980ca5ae21c6a2714baa95be2ce164 (patch)
treebfcb874bc3a1a7cf05b0ea0e443af86040452e43 /README
parent48e8a7b5a551f956002b60d2095bdfb58db96e59 (diff)
downloadlinux-c07d5c9226980ca5ae21c6a2714baa95be2ce164.tar.xz
perf pmu: Fix alias matching
Commit c47a5599eda324ba ("perf tools: Fix pattern matching for same substring in different PMU type"), may have fixed some alias matching, but has broken some others. Firstly it cannot handle the simple scenario of PMU name in form pmu_name{digits} - it can only handle pmu_name_{digits}. Secondly it cannot handle more complex matching in the case where we have multiple tokens. In this scenario, the code failed to realise that we may examine multiple substrings in the PMU name. Fix in two ways: - Change perf_pmu__valid_suffix() to accept a PMU name without '_' in the suffix - Only pay attention to perf_pmu__valid_suffix() for the final token Also add const qualifiers as necessary to avoid casting. Fixes: c47a5599eda324ba ("perf tools: Fix pattern matching for same substring in different PMU type") Signed-off-by: John Garry <john.garry@huawei.com> Tested-by: Jin Yao <yao.jin@linux.intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/1626793819-79090-1-git-send-email-john.garry@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions