diff options
| author | Ian Rogers <irogers@google.com> | 2025-10-05 11:24:05 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-10-15 23:59:10 +0900 |
| commit | 7c0135e4d7394832b562896241bc6dc943120f18 (patch) | |
| tree | e18ad2e2480debc37fb7494acb7e12fd12bc576e /tools/perf/scripts/python | |
| parent | b7b76f607a15f16031001687e733046b5f6f5d86 (diff) | |
| download | linux-7c0135e4d7394832b562896241bc6dc943120f18.tar.gz linux-7c0135e4d7394832b562896241bc6dc943120f18.zip | |
perf perf_api_probe: Avoid scanning all PMUs, try software PMU first
Scan the software PMU first rather than last as it is the least likely
to fail the probe. Specifying the software PMU by name was enabled by
commit 9957d8c801fe ("perf jevents: Add common software event
json"). For hardware events, add core PMU names when getting events to
probe so that not all PMUs are scanned. For example, when legacy
events support wildcards and for the event "cycles:u" on x86, we want
to only scan the "cpu" PMU and not all uncore PMUs for the event too.
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
