Loading
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 9957d8c8 ("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>