perf env: Remove global perf_env
authorIan Rogers <irogers@google.com>
Thu, 24 Jul 2025 16:32:59 +0000 (09:32 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 25 Jul 2025 17:37:58 +0000 (10:37 -0700)
commit525a599badeeafba88a4fa0f913e5cf87e2d51ec
treeae3c1ff9886f29550397dc89703361284732ea06
parent003a86bce0728ad160bcb7c7566a4d40aee3c235
perf env: Remove global perf_env

The global perf_env was used for the host, but if a perf_env wasn't
easy to come by it was used in a lot of places where potentially
recorded and host data could be confused. Remove the global variable
as now the majority of accesses retrieve the perf_env for the host
from the session.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250724163302.596743-20-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/perf.c
tools/perf/util/bpf-event.c
tools/perf/util/env.c
tools/perf/util/env.h
tools/perf/util/evsel.c
tools/perf/util/session.c