]> Git Repo - linux.git/commit
perf pmu: Refactor perf_pmu__match()
authorIan Rogers <[email protected]>
Tue, 16 Apr 2024 06:15:20 +0000 (23:15 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Sat, 27 Apr 2024 01:07:20 +0000 (22:07 -0300)
commitf91fa2ae63604e6fe9eed9ac05eb9ed3b23701cc
treeb4b15e0c3765aafe6f5f80191cba366085345b82
parent90b2c210a54e657ea8fcba3d724dba180c716edc
perf pmu: Refactor perf_pmu__match()

Move all implementation to pmu code. Don't allocate a fnmatch wildcard
pattern, matching ignoring the suffix already handles this, and only
use fnmatch if the given PMU name has a '*' in it.

Signed-off-by: Ian Rogers <[email protected]>
Reviewed-by: Kan Liang <[email protected]>
Tested-by: Atish Patra <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Beeman Strong <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: James Clark <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/parse-events.c
tools/perf/util/pmu.c
tools/perf/util/pmu.h
This page took 0.058344 seconds and 4 git commands to generate.