]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf evsel: Improve falling back from cycles
authorIan Rogers <irogers@google.com>
Wed, 18 Mar 2026 23:45:56 +0000 (16:45 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 19 Mar 2026 21:42:45 +0000 (14:42 -0700)
commitd84db579d75fd32ea6dd7814c8cf6b1c8b45ac05
tree71e652482b4404897ae96894834c553e3920f723
parenta90407a5a89a29f3c4af89e55afe4d0489b8a81c
perf evsel: Improve falling back from cycles

Switch to using evsel__match rather than comparing perf_event_attr
values, this is robust on hybrid architectures.
Ensure evsel->pmu matches the evsel->core.attr.
Remove exclude bits that get set in other fallback attempts when
switching the event.
Log the event name with modifiers when switching the event on fallback.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c
tools/perf/util/evsel.h