diff options
author | Koudai Iwahori <[email protected]> | 2023-08-01 05:10:52 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-08-18 10:18:58 -0700 |
commit | 1677bf76818beeafd4aa524ad1d031d4c760e919 (patch) | |
tree | ec0861c8ffb42d8d51dd76d72cc5132df183ce19 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 29665c1e2ae56fe60dcea1135882af7d6e222ddd (diff) |
scripts/gdb: fix lx-symbols command for arm64 LLVM
lx-symbols assumes that module's .text sections is located at
`module->mem[MOD_TEXT].base` and passes it to add-symbol-file command.
However, .text section follows after .plt section in modules built by LLVM
toolchain for arm64 target. Symbol addresses are skewed in GDB.
Fix this issue by using the address of .text section stored in
`module->sect_attrs`.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Koudai Iwahori <[email protected]>
Cc: Jan Kiszka <[email protected]>
Cc: Kieran Bingham <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions