perf pmu: Rename name matching for no suffix or wildcard variants
authorIan Rogers <irogers@google.com>
Sat, 1 Feb 2025 07:43:18 +0000 (23:43 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 5 Feb 2025 05:28:46 +0000 (21:28 -0800)
commit63e287131cf0c59b026053d6d63fe271604ffa7e
treef6584b337444a10e43d55ec2bf9e9f0f1ddcf3ee
parent57e13264dcea670d5f42a067562f02aa923219e2
perf pmu: Rename name matching for no suffix or wildcard variants

Wildcard PMU naming will match a name like pmu_1 to a PMU name like
pmu_10 but not to a PMU name like pmu_2 as the suffix forms part of
the match. No suffix matching will match pmu_10 to either pmu_1 or
pmu_2. Add or rename matching functions on PMU to make it clearer what
kind of matching is being performed.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20250201074320.746259-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/pmu-events/empty-pmu-events.c
tools/perf/pmu-events/jevents.py
tools/perf/tests/pmu.c
tools/perf/util/parse-events.c
tools/perf/util/pmu.c
tools/perf/util/pmu.h