Commit 003a86b
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]>1 parent 69ac747 commit 003a86b
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2898 | 2898 | | |
2899 | 2899 | | |
2900 | 2900 | | |
2901 | | - | |
2902 | | - | |
2903 | | - | |
2904 | | - | |
2905 | | - | |
2906 | | - | |
2907 | | - | |
2908 | 2901 | | |
2909 | 2902 | | |
2910 | 2903 | | |
| |||
2990 | 2983 | | |
2991 | 2984 | | |
2992 | 2985 | | |
2993 | | - | |
2994 | | - | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
2995 | 2989 | | |
2996 | 2990 | | |
2997 | 2991 | | |
| |||
0 commit comments