diff options
author | Ian Rogers <irogers@google.com> | 2025-01-31 23:43:16 -0800 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-02-04 21:28:25 -0800 |
commit | 340c345e587ef61e15f02483b1e72e5fa168f6ad (patch) | |
tree | 0b02fbd3ebb1b2c4097e262075f946bb7147eb56 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 888751e4d0e948d0364eee6fb47e21f090b2b5e4 (diff) |
perf evsel: Reduce scanning core PMUs in is_hybrid
evsel__is_hybrid returns true if there are multiple core PMUs and the
evsel is for a core PMU. Determining the number of core PMUs can
require loading/scanning PMUs. There's no point doing the scanning if
evsel for the is_hybrid test isn't core so reorder the tests to reduce
PMU scanning.
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-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions