linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Clevenger <scclevenger@os.amperecomputing.com>
To: james.clark@linaro.org, mike.leach@linaro.org
Cc: suzuki.poulose@arm.com, leo.yan@arm.com,
	ilkka@os.amperecomputing.com, coresight@lists.linaro.org,
	linux-perf-users@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 0/5] arm-cs-trace-disasm.py/perf must accommodate non-zero DSO text offset
Date: Mon, 26 Aug 2024 15:35:57 -0600	[thread overview]
Message-ID: <cover.1724698250.git.scclevenger@os.amperecomputing.com> (raw)
In-Reply-To: <cover.1724707494.git.scclevenger@os.amperecomputing.com>

Changes in V2:
  - 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 (5):
  Add dso__is_pie call to identify ELF PIE
  Add dso__is_pie prototype
  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     | 17 +++++-
 tools/perf/util/map.c                         |  5 +-
 .../scripting-engines/trace-event-python.c    | 13 +++-
 tools/perf/util/symbol-elf.c                  | 60 +++++++++++++++++++
 tools/perf/util/symbol.h                      |  1 +
 5 files changed, 90 insertions(+), 6 deletions(-)

-- 
2.25.1


  parent reply	other threads:[~2024-08-26 21:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1724707494.git.scclevenger@os.amperecomputing.com>
2024-08-26 21:35 ` [PATCH V2 1/5] Add dso__is_pie call to identify ELF PIE Steve Clevenger
2024-08-26 21:35 ` Steve Clevenger [this message]
2024-08-26 21:35   ` [PATCH V2 5/5] Adjust objdump start/end range per map pgoff parameter Steve Clevenger
2024-08-27 20:23     ` Leo Yan
2024-08-28  1:49       ` Steve Clevenger
2024-08-26 21:35   ` [PATCH V2 4/5] Add map pgoff to python dictionary based on MAPPING_TYPE Steve Clevenger
2024-08-26 21:35   ` [PATCH V2 3/5] Force MAPPING_TYPE__IDENTIY for PIE Steve Clevenger
2024-08-27 19:55     ` Leo Yan
2024-08-28  1:41       ` Steve Clevenger
2024-08-26 21:35   ` [PATCH V2 2/5] Add dso__is_pie prototype Steve Clevenger
2024-08-27 19:29     ` Leo Yan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1724698250.git.scclevenger@os.amperecomputing.com \
    --to=scclevenger@os.amperecomputing.com \
    --cc=coresight@lists.linaro.org \
    --cc=ilkka@os.amperecomputing.com \
    --cc=james.clark@linaro.org \
    --cc=leo.yan@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mike.leach@linaro.org \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).