diff options
| author | Namhyung Kim <[email protected]> | 2023-12-12 07:05:45 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-12-14 22:08:48 +0000 |
| commit | c966d23a351a33f8a977fd7efbb6f467132f7383 (patch) | |
| tree | 0e1025b493da6694e8e15f928cc0f650a9f36161 /tools/perf/scripts/python/libxed.py | |
| parent | perf genelf: Set ELF program header addresses properly (diff) | |
| download | kernel-c966d23a351a33f8a977fd7efbb6f467132f7383.tar.gz kernel-c966d23a351a33f8a977fd7efbb6f467132f7383.zip | |
perf unwind-libdw: Handle JIT-generated DSOs properly
Usually DSOs are mapped from the beginning of the file, so the base
address of the DSO can be calculated by map->start - map->pgoff.
However, JIT DSOs which are generated by `perf inject -j`, are mapped
only the code segment. This makes unwind-libdw code confusing and
rejects processing unwinds in the JIT DSOs. It should use the map
start address as base for them to fix the confusion.
Fixes: 1fe627da30331024 ("perf unwind: Take pgoff into account when reporting elf to libdwfl")
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Fangrui Song <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Milian Wolff <[email protected]>
Cc: Pablo Galindo <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
