diff options
author | Ian Rogers <irogers@google.com> | 2025-03-19 08:07:33 +0300 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-03-21 08:58:02 +0300 |
commit | afffec6f032926f70fc9f43f5d07cdfa09a0a184 (patch) | |
tree | 1fb478d7a3cb75845ec6b57ae62aaa5d760b056a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5c2938fe789c1876a35a1fbc24da3800b33adf26 (diff) | |
download | linux-afffec6f032926f70fc9f43f5d07cdfa09a0a184.tar.xz |
perf dso: Add support for reading the e_machine type for a dso
For ELF file dsos read the e_machine from the ELF header. For kernel
types assume the e_machine matches the perf tool. In other cases
return EM_NONE.
When reading from the ELF header use DSO__SWAP that may need
dso->needs_swap initializing. Factor out dso__swap_init to allow this.
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: https://lore.kernel.org/r/20250319050741.269828-7-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions