linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3 0/4] arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset
@ 2024-08-28  1:50 Steve Clevenger
  2024-08-28  1:50 ` [PATCH V3 4/4] Adjust objdump start/end range per map pgoff parameter Steve Clevenger
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Steve Clevenger @ 2024-08-28  1:50 UTC (permalink / raw)
  To: james.clark, mike.leach
  Cc: suzuki.poulose, leo.yan, ilkka, coresight, linux-perf-users,
	linux-arm-kernel

Changes in V3:
  - Rebased to linux-perf-tools branch.
  - Squash symbol-elf.c and symbol.h into same commit.
  - In map.c, merge dso__is_pie() call into existing if statement.
  - In arm-cs-trace-disasm.py, remove debug artifacts.

Changes in V2:
  - In dso__is_pie() (symbol-elf.c), Decrease indentation, add null pointer
    checks per Leo Yan review.
  - Updated mailing list distribution

Fedora 37 distributed shared binary and executable mapped files show a
zero text section offset. Starting with the Fedora 38 distribution, the
shared binary and executable mapped files show a non-zero text section
offset for some binaries. The text offset parameter is never passed into
the arm-cs-trace-disasm.py script to allow the script to adjust the
start/end address range passed to objdump. This adjustment is required
to correctly offset into the dso text section. Not doing so results in
an incorrect user instruction trace display for Fedora 38 (and later)
user trace output.

Steve Clevenger (4):
  Add dso__is_pie call to identify ELF PIE
  Force MAPPING_TYPE__IDENTIY for PIE
  Add map pgoff to python dictionary based on MAPPING_TYPE
  Adjust objdump start/end range per map pgoff parameter

 .../scripts/python/arm-cs-trace-disasm.py     |  9 ++-
 tools/perf/util/map.c                         |  4 +-
 .../scripting-engines/trace-event-python.c    | 13 +++-
 tools/perf/util/symbol-elf.c                  | 60 +++++++++++++++++++
 tools/perf/util/symbol.h                      |  1 +
 5 files changed, 79 insertions(+), 8 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-08-28  5:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-28  1:50 [PATCH V3 0/4] arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset Steve Clevenger
2024-08-28  1:50 ` [PATCH V3 4/4] Adjust objdump start/end range per map pgoff parameter Steve Clevenger
2024-08-28  1:50 ` [PATCH V3 3/4] Add map pgoff to python dictionary based on MAPPING_TYPE Steve Clevenger
2024-08-28  5:09   ` Steve Clevenger
2024-08-28  1:50 ` [PATCH V3 2/4] Force MAPPING_TYPE__IDENTIY for PIE Steve Clevenger
2024-08-28  1:50 ` [PATCH V3 1/4] Add dso__is_pie call to identify ELF PIE Steve Clevenger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).