perf machine: Explicitly pass in host perf_env
authorIan Rogers <irogers@google.com>
Thu, 24 Jul 2025 16:32:56 +0000 (09:32 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 25 Jul 2025 17:37:57 +0000 (10:37 -0700)
commite481066388fe8003916461a54bf0ecffc02505a8
treecb2e7115cde919a56cabc72ec6e8a3bb7e9fe700
parentaa91baa09b2a3c38deff05b83410ce86833258d5
perf machine: Explicitly pass in host perf_env

When creating a machine for the host explicitly pass in a scoped
perf_env. This removes a use of the global perf_env.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250724163302.596743-17-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
12 files changed:
tools/perf/builtin-buildid-list.c
tools/perf/builtin-kallsyms.c
tools/perf/builtin-trace.c
tools/perf/tests/code-reading.c
tools/perf/tests/dlfilter-test.c
tools/perf/tests/dwarf-unwind.c
tools/perf/tests/mmap-thread-lookup.c
tools/perf/tests/symbols.c
tools/perf/util/debug.c
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/probe-event.c