mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
And use it in the libunwind case, with both passing a valid perf_env to extract the arch to be normalized from and passing NULL with the same semantic as in the annotate code: to get it from uname() uts.machine. Now the code to generate per arch errno translation tables (int/string) can use it to decode perf.data files recorded in a different arch than that where 'perf trace' (or any other analysis tool) runs. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Hendrik Brueckner <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Michael Petlan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Wang Nan <[email protected]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
12 lines
239 B
C
12 lines
239 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef ARCH_PERF_COMMON_H
|
|
#define ARCH_PERF_COMMON_H
|
|
|
|
#include "../util/env.h"
|
|
|
|
extern const char *objdump_path;
|
|
|
|
int perf_env__lookup_objdump(struct perf_env *env);
|
|
|
|
#endif /* ARCH_PERF_COMMON_H */
|