]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf evsel: Fix missing inherit + sample read check
authorNamhyung Kim <namhyung@kernel.org>
Wed, 9 Oct 2024 06:22:50 +0000 (23:22 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 14 Oct 2024 19:04:31 +0000 (12:04 -0700)
commit1afe05b0cf183035a77fdda1bc633aa5fb9daa43
tree18e7b46a13fa0d74e9e29c1c4daf429dd32f1ab7
parentcd912ab3b65445df7b95bbdd06ac29f823d4df98
perf evsel: Fix missing inherit + sample read check

It should not clear the inherit bit simply because the kernel doesn't
support the sample read with it.  IOW the inherit bit should be kept
when the sample read is not requested for the event.

Fixes: 90035d3cd876cb71 ("tools/perf: Allow inherit + PERF_SAMPLE_READ when opening events")
Acked-by: Ben Gainey <ben.gainey@arm.com>
Link: https://lore.kernel.org/r/20241009062250.730192-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/evsel.c