diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2017-12-11 14:47:49 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-12-27 12:15:52 -0300 |
commit | 4e8fbc1c975c667c61a3073da81b338b9bf61c37 (patch) | |
tree | e4a27eb5ee86c43a49e898ac8416487f5c68a6e5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 3285debaf5992f9729ba33e3f31eff5253d29dc4 (diff) |
perf env: Adopt perf_env__arch() from the annotate code
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]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions