Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757900AbZJLTDr (ORCPT ); Mon, 12 Oct 2009 15:03:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756934AbZJLTDq (ORCPT ); Mon, 12 Oct 2009 15:03:46 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:49163 "EHLO mail-ew0-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755883AbZJLTDp (ORCPT ); Mon, 12 Oct 2009 15:03:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=fi5GvMc7c2fsQwV03O4GTgJ5YxYPWVHiCBOb5OD/cq9ZGHT78sELcVe40ft6huScw1 gpuF/4Zjbqt3gK3zBI+GUTue8NwDS8q1rELstsdnf0deKK49HJJAC3HRiKsUVPTM+1mV zCbpJ6J/7xO3ISKayJfMMijLoSnHoleI90dwk= Date: Mon, 12 Oct 2009 21:03:04 +0200 From: Frederic Weisbecker To: Masami Hiramatsu Cc: Steven Rostedt , Ingo Molnar , lkml , systemtap , DLE , Thomas Gleixner , Arnaldo Carvalho de Melo , Mike Galbraith , Paul Mackerras , Peter Zijlstra , Christoph Hellwig , Ananth N Mavinakayanahalli , Jim Keniston , "Frank Ch. Eigler" Subject: Re: [PATCH tracing/kprobes v3 6/7] perf: Add perf probe subcommand for kprobe-event setup helper Message-ID: <20091012190303.GA4748@nowhere> References: <20091007222733.1684.32035.stgit@dhcp-100-2-132.bos.redhat.com> <20091007222822.1684.3251.stgit@dhcp-100-2-132.bos.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091007222822.1684.3251.stgit@dhcp-100-2-132.bos.redhat.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1856 Lines: 42 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 and , 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 $ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/