From: Steven Rostedt <rostedt@goodmis.org>
To: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: David Ahern <dsahern@gmail.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Borislav Petkov <bp@suse.de>,
Frederic Weisbecker <fweisbec@gmail.com>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Stephane Eranian <eranian@google.com>,
Ingo Molnar <mingo@kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] tools lib traceevent: Allow setting an alternative symbol resolver
Date: Thu, 23 Jul 2015 18:07:30 -0400 [thread overview]
Message-ID: <20150723180730.6eecdce8@gandalf.local.home> (raw)
In-Reply-To: <20150723215836.GG3154@kernel.org>
On Thu, 23 Jul 2015 18:58:36 -0300
Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> Em Thu, Jul 23, 2015 at 06:52:46PM -0300, Arnaldo Carvalho de Melo escreveu:
> > Em Thu, Jul 23, 2015 at 05:35:24PM -0400, Steven Rostedt escreveu:
> > > On Thu, 23 Jul 2015 18:25:36 -0300
> > > Arnaldo Carvalho de Melo <acme@kernel.org> wrote:
> > > > + if (resolver == NULL) {
> > > > + errno = ENOMEM;
> > >
> > > Why set errno, wont a failed malloc set it for us?
> >
> > Humm, I thought about that, I've read malloc's man page and it doesn't
> > mention that... in the return section, but later, in NOTES, it says
> > UNIX98 requires that and glibc does it, so I'm ditching this...
>
> > > Also I wonder if we should add a way to clear the resolver. That is,
> > > you want to use the default resolver?
> >
> > I am adding a reset_function_resolver(pevent);
> >
> > > Not really a necessity, as I don't see any current programs using it,
> > > but it would complete the interface.
>
> One more try:
Third time's a charm, or was this the forth?
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
-- Steve
>
> commit 212a2417baaa89168cbe3112fe7c8efaddee28b8
> Author: Arnaldo Carvalho de Melo <acme@redhat.com>
> Date: Wed Jul 22 12:36:55 2015 -0300
>
> tools lib traceevent: Allow setting an alternative symbol resolver
>
> The perf tools have a symbol resolver that includes solving kernel
> symbols using either kallsyms or ELF symtabs, and it also is using
> libtraceevent to format the trace events fields, including via
> subsystem specific plugins, like the "timer" one.
>
> To solve fields like "timer:hrtimer_start"'s "function", libtraceevent
> needs a way to map from its value to a function name and addr.
>
> This patch provides a way for tools that already have symbol resolving
> facilities to ask libtraceevent to use it when needing to resolve
> kernel symbols.
>
> Acked-by: David Ahern <dsahern@gmail.com>
> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Borislav Petkov <bp@suse.de>
> Cc: Frederic Weisbecker <fweisbec@gmail.com>
> Cc: Jiri Olsa <jolsa@redhat.com>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Stephane Eranian <eranian@google.com>
> Cc: Steven Rostedt <rostedt@goodmis.org>
> Link: http://lkml.kernel.org/n/tip-fdx1fazols17w5py26ia3bwh@git.kernel.org
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
>
next prev parent reply other threads:[~2015-07-23 22:07 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-23 15:04 Arnaldo Carvalho de Melo
2015-07-23 16:21 ` Steven Rostedt
2015-07-23 17:25 ` Arnaldo Carvalho de Melo
2015-07-23 18:10 ` Steven Rostedt
2015-07-23 18:11 ` Steven Rostedt
2015-07-23 18:17 ` Arnaldo Carvalho de Melo
2015-07-23 21:25 ` Arnaldo Carvalho de Melo
2015-07-23 21:35 ` Steven Rostedt
2015-07-23 21:52 ` Arnaldo Carvalho de Melo
2015-07-23 21:58 ` Arnaldo Carvalho de Melo
2015-07-23 22:07 ` Steven Rostedt [this message]
2015-07-24 1:34 ` Arnaldo Carvalho de Melo
2015-07-24 1:46 ` Steven Rostedt
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=20150723180730.6eecdce8@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=bp@suse.de \
--cc=dsahern@gmail.com \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@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®