Commit 90035d3c authored by Ben Gainey's avatar Ben Gainey Committed by Namhyung Kim
Browse files

tools/perf: Allow inherit + PERF_SAMPLE_READ when opening events



The "perf record" tool will now default to this new mode if the user
specifies a sampling group when not in system-wide mode, and when
"--no-inherit" is not specified.

This change updates evsel to allow the combination of inherit
and PERF_SAMPLE_READ.

A fallback is implemented for kernel versions where this feature is not
supported.

Signed-off-by: default avatarBen Gainey <ben.gainey@arm.com>
Cc: james.clark@arm.com
Link: https://lore.kernel.org/r/20241001121505.1009685-3-ben.gainey@arm.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 80c281fc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment