perf auxtrace: Pass perf_env from session through to mmap read
authorIan Rogers <irogers@google.com>
Thu, 24 Jul 2025 16:32:57 +0000 (09:32 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 25 Jul 2025 17:37:58 +0000 (10:37 -0700)
commit69ac7472d28a21057275a396193f1bdcce6ba962
tree7cfb1a6874ec87a09eb4dc3d03b96c26b227e5af
parente481066388fe8003916461a54bf0ecffc02505a8
perf auxtrace: Pass perf_env from session through to mmap read

 auxtrace_mmap__read and auxtrace_mmap__read_snapshot end up calling
 `evsel__env(NULL)` which returns the global perf_env variable for the
 host. Their only call is in perf record. Rather than use the global
 variable pass through the perf_env for `perf record`.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250724163302.596743-18-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-record.c
tools/perf/util/auxtrace.c
tools/perf/util/auxtrace.h