From: Jiri Olsa <jolsa@redhat.com>
To: Namhyung Kim <namhyung.kim@lge.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/5] perf tools: Split out util/symbol-elf.c
Date: Tue, 22 May 2012 10:35:27 +0200 [thread overview]
Message-ID: <20120522083527.GA2901@m.brq.redhat.com> (raw)
In-Reply-To: <871umd2fno.fsf@sejong.aot.lge.com>
On Tue, May 22, 2012 at 10:00:43AM +0900, Namhyung Kim wrote:
> Hi, Jiri
>
> On Mon, 21 May 2012 13:45:31 +0200, Jiri Olsa wrote:
> > hi,
> > this one needs rebase to current code, I got some conflicts
> >
>
> Will do.
>
>
> > On Mon, May 14, 2012 at 04:10:22PM +0900, Namhyung Kim wrote:
> >> Factor out the dependency of ELF handling into separate
> >> symbol-elf.c file. It is a preparation of building a
> >> minimalistic version perf tools which doesn't depend on
> >> the elfutils.
> >>
> >> Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
> >> ---
> >> tools/perf/Makefile | 1 +
> >> tools/perf/util/symbol-elf.c | 691 +++++++++++++++++++++++++++++++++++++++++
> >> tools/perf/util/symbol.c | 704 +-----------------------------------------
> >> tools/perf/util/symbol.h | 15 +
> >> 4 files changed, 715 insertions(+), 696 deletions(-)
> >> create mode 100644 tools/perf/util/symbol-elf.c
> >>
> >> diff --git a/tools/perf/Makefile b/tools/perf/Makefile
> >> index e98e14c88532..7198c6cbc006 100644
> >> --- a/tools/perf/Makefile
> >> +++ b/tools/perf/Makefile
> >> @@ -334,6 +334,7 @@ LIB_OBJS += $(OUTPUT)util/usage.o
> >> LIB_OBJS += $(OUTPUT)util/wrapper.o
> >> LIB_OBJS += $(OUTPUT)util/sigchain.o
> >> LIB_OBJS += $(OUTPUT)util/symbol.o
> >> +LIB_OBJS += $(OUTPUT)util/symbol-elf.o
> >
> > I think I'd like more generic elf interface compiled with either libelf
> > or our stuff.. also separated from "other perf related" symbol handling
> >
> > looks like we need to be able to parse out build ID and symbols from
> > symtab or dyntab:
> >
> > perf_elf__get_buildid(file, buf, len)
> >
> > perf_elf__get_symbols(file, ..., callback, )
> > - calling callback func for each symbol found,
> > the call would then do the perf symbol related stuff
> >
> > I understand that means much more changes.. so probably what you have now
> > is a good start and we can do that later.. just with above goal in mind
> >
>
> So you mean we need to have our own libelf or such? I'm not sure it's
I meant having above interface implemented either via libelf or your
minimal implementation.. just little more general than the current one
jirka
> the way to go. I just wanted to have a working 'perf record' on my board
> :). But I'd like to hear how others think.
>
> Thanks for the comment,
> Namhyung
next prev parent reply other threads:[~2012-05-22 8:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-14 7:10 [RFC 0/5] perf tools: Minimalistic build without libelf dependency Namhyung Kim
2012-05-14 7:10 ` [PATCH 1/5] perf symbols: Introduce symbol__elf_init() Namhyung Kim
2012-05-14 7:10 ` [PATCH 2/5] perf symbols: Do not use ELF's symbol binding constants Namhyung Kim
2012-05-14 7:10 ` [PATCH 3/5] perf tools: Split out util/symbol-elf.c Namhyung Kim
2012-05-21 11:45 ` Jiri Olsa
2012-05-22 1:00 ` Namhyung Kim
2012-05-22 8:35 ` Jiri Olsa [this message]
2012-05-14 7:10 ` [PATCH 4/5] perf tools: Support minimal build Namhyung Kim
2012-05-14 7:10 ` [PATCH 5/5] perf symbols: Implement poor man's ELF parser Namhyung Kim
2012-05-21 11:47 ` Jiri Olsa
2012-05-22 1:08 ` Namhyung Kim
2012-05-22 7:52 ` Peter Zijlstra
2012-05-22 10:26 ` Namhyung Kim
2012-05-22 10:44 ` Peter Zijlstra
2012-05-14 9:22 ` [RFC 0/5] perf tools: Minimalistic build without libelf dependency Ingo Molnar
2012-05-15 0:40 ` Namhyung Kim
2012-05-21 6:00 ` Namhyung Kim
2012-05-21 15:03 ` David Ahern
2012-05-22 0:20 ` Namhyung Kim
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=20120522083527.GA2901@m.brq.redhat.com \
--to=jolsa@redhat.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@ghostprotocols.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung.kim@lge.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.