public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: Avi Kivity <avi@cloudius-systems.com>
Cc: linux-kernel@vger.kernel.org,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH] perf tools: demangle kernel and kernel module symbols too
Date: Mon, 27 Jan 2014 11:48:12 -0300	[thread overview]
Message-ID: <20140127144812.GB3998@ghostprotocols.net> (raw)
In-Reply-To: <52E669C0.7040002@cloudius-systems.com>

Em Mon, Jan 27, 2014 at 04:14:24PM +0200, Avi Kivity escreveu:
> On 01/22/2014 09:58 PM, Avi Kivity wrote:
> >Some kernels contain C++ code, and thus their symbols need to be demangled.
> >This allows 'perf kvm top' to generate readable output.
> 
> Ping?

Applied, should be on my next pull req to Ingo,

- Arnaldo
 
> >Signed-off-by: Avi Kivity <avi@cloudius-systems.com>
> >---
> >  tools/perf/util/symbol-elf.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/tools/perf/util/symbol-elf.c b/tools/perf/util/symbol-elf.c
> >index 7594567..8f12f0f 100644
> >--- a/tools/perf/util/symbol-elf.c
> >+++ b/tools/perf/util/symbol-elf.c
> >@@ -922,6 +922,7 @@ int dso__load_sym(struct dso *dso, struct map *map,
> >  				  (u64)shdr.sh_offset);
> >  			sym.st_value -= shdr.sh_addr - shdr.sh_offset;
> >  		}
> >+new_symbol:
> >  		/*
> >  		 * We need to figure out if the object was created from C++ sources
> >  		 * DWARF DW_compile_unit has this, but we don't always have access
> >@@ -933,7 +934,6 @@ int dso__load_sym(struct dso *dso, struct map *map,
> >  			if (demangled != NULL)
> >  				elf_name = demangled;
> >  		}
> >-new_symbol:
> >  		f = symbol__new(sym.st_value, sym.st_size,
> >  				GELF_ST_BIND(sym.st_info), elf_name);
> >  		free(demangled);

  reply	other threads:[~2014-01-27 14:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-22 19:58 [PATCH] perf tools: demangle kernel and kernel module symbols too Avi Kivity
2014-01-27 14:14 ` Avi Kivity
2014-01-27 14:48   ` Arnaldo Carvalho de Melo [this message]
2014-02-02  8:54 ` [tip:perf/urgent] perf tools: Demangle " tip-bot for Avi Kivity

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=20140127144812.GB3998@ghostprotocols.net \
    --to=acme@ghostprotocols.net \
    --cc=a.p.zijlstra@chello.nl \
    --cc=avi@cloudius-systems.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=paulus@samba.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