mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Martin <dave.martin@linaro.org>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: linux-kernel@vger.kernel.org, Dave Martin <dave.martin@linaro.org>
Subject: [PATCH 0/1] perf symbols: ignore mapping symbols on ARM
Date: Mon,  9 Aug 2010 12:21:17 +0100	[thread overview]
Message-ID: <1281352878-8735-1-git-send-email-dave.martin@linaro.org> (raw)

Applies to linux-2.6-tip/master or acme/perf-core

ARM ELF files use symbols with special names $a, $t, $d to
identify regions of ARM code, Thumb code and data within code
sections.  This can cause confusing output from the perf tools,
especially for partially stripped binaries, or binaries
containing user-added zero-sized symbols (which may occur in
hand-written assembler which hasn't been fully annotated with
.size directives).

This patch filters out these symbols at load time.

Addressing architecture-specific cases in this way could get
quite messy-- if one architecture-specific hack is needed in
the symbol loading loop, more might be needed over time.
Adding a generic per-architecture symbol filtering hook might
help to mitigate this if more cases need to be supported.

Switching to libbfd as a generic image-handling backend for all
architectures might be a better long-term solution, since
libelf seems to be essentially a low-level parsing library only
at this stage, and doesn't deal with all the architecture
specifics.  There's a generic bfd_is_target_special_symbol()
function which is used by binutils to filter out architecture-
specific symbols which are not "normal" symbols, which could
help us for this case.

Dave Martin (1):
  perf symbols: ignore mapping symbols on ARM

 tools/perf/util/symbol.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)


             reply	other threads:[~2010-08-09 11:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-09 11:21 Dave Martin [this message]
2010-08-09 11:21 ` [PATCH 1/1] " Dave Martin
2010-08-09 14:53   ` Arnaldo Carvalho de Melo
2010-08-11  7:41   ` [tip:perf/core] perf symbols: Ignore " tip-bot for Dave Martin

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=1281352878-8735-1-git-send-email-dave.martin@linaro.org \
    --to=dave.martin@linaro.org \
    --cc=acme@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®