]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf sample: Add evsel to struct perf_sample
authorIan Rogers <irogers@google.com>
Sat, 4 Apr 2026 03:43:03 +0000 (20:43 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 6 Apr 2026 06:12:15 +0000 (23:12 -0700)
commitaeae075a0352eb6ab363fb1910f209eaa296a175
tree7ec35aab15df3d6f60df3a46950f97091894325e
parentad5ceacd48e9ea36bd12e778071561290adb0154
perf sample: Add evsel to struct perf_sample

Add the evsel from evsel__parse_sample into the struct
perf_sample. Sometimes we want to alter the evsel associated with a
sample, such as with off-cpu bpf-output events. In general the evsel
and perf_sample are passed as a pair, but this makes an altered evsel
something of a chore to keep checking for and setting up. Later
patches will remove passing an evsel with the perf_sample and switch
to just using the perf_sample's value.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-inject.c
tools/perf/builtin-script.c
tools/perf/tests/hists_cumulate.c
tools/perf/tests/hists_filter.c
tools/perf/tests/hists_output.c
tools/perf/util/evsel.c
tools/perf/util/sample.c
tools/perf/util/sample.h
tools/perf/util/session.c