]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf evsel: Improvements to __evsel__match
authorIan Rogers <irogers@google.com>
Sun, 5 Oct 2025 18:24:23 +0000 (11:24 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 15 Oct 2025 14:59:11 +0000 (23:59 +0900)
commit787bd5781785472ef9296ce66d6f917a19a422a4
tree39568f7ab81d090223e055dc4eea601a4008126f
parent5bf6291113d2aaa559455a04ecc2c5e6396d05a0
perf evsel: Improvements to __evsel__match

Ensure both the perf_event_attr and alternate_hw_config are checked in
the match. Don't mask the config if the perf_event_attr isn't a
HARDWARE or HW_CACHE event. Add common early exit cases.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c