perf env: Introduce perf_env__arch_strerrno()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 Dec 2023 17:52:00 +0000 (14:52 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Dec 2023 19:42:09 +0000 (16:42 -0300)
commit54373b5d53c1f6aa6164ee5bea4761abb16b351c
treef17d35ff7c16fc370ccb299a530ae5fd0699c36a
parent556bed5c6d4167f9ffb5c8648cdd3c8e39aefec7
perf env: Introduce perf_env__arch_strerrno()

That will cache the arch specific function translating error numbers to
strings.

Reviewed-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/lkml/20231201203046.486596-2-acme@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
tools/perf/util/env.c
tools/perf/util/env.h