This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH tracing/kprobes v3 6/7] perf: Add perf probe subcommand for kprobe-event setup helper
- From: Frederic Weisbecker <fweisbec at gmail dot com>
- To: Masami Hiramatsu <mhiramat at redhat dot com>
- Cc: Steven Rostedt <rostedt at goodmis dot org>, Ingo Molnar <mingo at elte dot hu>, lkml <linux-kernel at vger dot kernel dot org>, systemtap <systemtap at sources dot redhat dot com>, DLE <dle-develop at lists dot sourceforge dot net>, Thomas Gleixner <tglx at linutronix dot de>, Arnaldo Carvalho de Melo <acme at redhat dot com>, Mike Galbraith <efault at gmx dot de>, Paul Mackerras <paulus at samba dot org>, Peter Zijlstra <a dot p dot zijlstra at chello dot nl>, Christoph Hellwig <hch at infradead dot org>, Ananth N Mavinakayanahalli <ananth at in dot ibm dot com>, Jim Keniston <jkenisto at us dot ibm dot com>, "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Mon, 12 Oct 2009 21:03:04 +0200
- Subject: Re: [PATCH tracing/kprobes v3 6/7] perf: Add perf probe subcommand for kprobe-event setup helper
- References: <20091007222733.1684.32035.stgit@dhcp-100-2-132.bos.redhat.com> <20091007222822.1684.3251.stgit@dhcp-100-2-132.bos.redhat.com>
On Wed, Oct 07, 2009 at 06:28:23PM -0400, Masami Hiramatsu wrote:
> Add perf probe subcommand for kprobe-event setup helper to perf command.
> This allows user to define kprobe events by C expressions (C line numbers,
> C function names, and C local variables).
>
My libdwarf.h and dwarf.h are available through <libdwarf.h> and
<dwarf.h>, these are in /usr/include
But even by fixing the include path in the makefile and probe-finder.h,
I get the following build error:
util/probe-finder.c: In function âdie_get_entrypcâ:
util/probe-finder.c:222: erreur: âDwarf_Rangesâ undeclared (first use in this function)
util/probe-finder.c:222: erreur: (Each undeclared identifier is reported only once
util/probe-finder.c:222: erreur: for each function it appears in.)
util/probe-finder.c:222: erreur: ârangesâ undeclared (first use in this function)
cc1: warnings being treated as errors
util/probe-finder.c:223: erreur: ISO C90 forbids mixed declarations and code
util/probe-finder.c:247: erreur: implicit declaration of function âdwarf_get_rangesâ
util/probe-finder.c:247: erreur: nested extern declaration of âdwarf_get_rangesâ
util/probe-finder.c:251: erreur: implicit declaration of function âdwarf_ranges_deallocâ
util/probe-finder.c:251: erreur: nested extern declaration of âdwarf_ranges_deallocâ
make: *** [util/probe-finder.o] Erreur 1
I remember we talked about that before, but I don't remember well why it happened.
This is because of a libdwarf version or something, right?
Which one should I pick? Mine is:
libdwarf.h
$Revision: #9 $ $Date: 2008/01/17 $