diff options
| author | Ian Rogers <[email protected]> | 2025-03-19 05:07:33 +0000 |
|---|---|---|
| committer | Namhyung Kim <[email protected]> | 2025-03-21 05:58:02 +0000 |
| commit | afffec6f032926f70fc9f43f5d07cdfa09a0a184 (patch) | |
| tree | 1fb478d7a3cb75845ec6b57ae62aaa5d760b056a /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | perf syscalltbl: Remove struct syscalltbl (diff) | |
| download | kernel-afffec6f032926f70fc9f43f5d07cdfa09a0a184.tar.gz kernel-afffec6f032926f70fc9f43f5d07cdfa09a0a184.zip | |
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 <[email protected]>
Reviewed-by: Namhyung Kim <[email protected]>
Acked-by: Arnaldo Carvalho de Melo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
