aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2025-07-24 16:32:58 +0000
committerNamhyung Kim <[email protected]>2025-07-25 17:37:58 +0000
commit003a86bce0728ad160bcb7c7566a4d40aee3c235 (patch)
tree365b05f093bbe12c6f649609551a4df9bfa72e5d /tools/perf/builtin-annotate.c
parentperf auxtrace: Pass perf_env from session through to mmap read (diff)
downloadkernel-003a86bce0728ad160bcb7c7566a4d40aee3c235.tar.gz
kernel-003a86bce0728ad160bcb7c7566a4d40aee3c235.zip
perf trace: Avoid global perf_env with evsel__env
There is no session in perf trace unless in replay mode, so in host mode no session can be associated with the evlist. If the evsel__env call fails resort to the host_env that's part of the trace. Remove errno_to_name as it becomes a called once 1-line function once the argument is turned into a perf_env, just call perf_env__arch_strerrno directly. Signed-off-by: Ian Rogers <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions