Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753818AbZK3HRb (ORCPT ); Mon, 30 Nov 2009 02:17:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753752AbZK3HRa (ORCPT ); Mon, 30 Nov 2009 02:17:30 -0500 Received: from mail-gx0-f212.google.com ([209.85.217.212]:61349 "EHLO mail-gx0-f212.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750884AbZK3HR3 (ORCPT ); Mon, 30 Nov 2009 02:17:29 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=vBeAOmJocGnZRyFQIPuf5ckQTsgrOXkrjLR5sgJIXHz01RLRJLLHsf7FcmgfLMFMkh lDeCPtn0GrpaG/MtEagJ0+CDQh3v+qk0ox6dbrjV0a177sMeoFG9dnHpiu1YsnzcVm1h hzf3Mx2GxJhAZbsY3u2/1RXfQez1lykbT7xU4= Subject: Re: [RFC][PATCH 0/7] perf trace: general-purpose scripting support, v2 From: Tom Zanussi To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, fweisbec@gmail.com, rostedt@goodmis.org, anton@samba.org, hch@infradead.org In-Reply-To: <20091128091430.GA22737@elte.hu> References: <1259133352-23685-1-git-send-email-tzanussi@gmail.com> <20091128091430.GA22737@elte.hu> Content-Type: text/plain Date: Mon, 30 Nov 2009 01:17:32 -0600 Message-Id: <1259565452.7639.29.camel@tropicana> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3608 Lines: 74 On Sat, 2009-11-28 at 10:14 +0100, Ingo Molnar wrote: > * Tom Zanussi wrote: > > > Hi, > > > > Here's a belated update to v1 of the trace stream scripting support > > patches I posted last month; I had meant to get this out sooner but > > got too busy with other things... > > Excellent progress! > > I wanted to try it so i took the patches and applied them with some > conflicts (they interacted with some other recent changes in perf), but > the Perl engine wouldnt build on Fedora 11 - see the errors attached > below. > > I've pushed the merge out to this temporary branch: > > git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git tmp.perf/scripting > > Mind having a look at it? > Sure, I'll post a patch that fixes this for me on Fedora shortly - the reason for the warnings is that the debugging versions of the Perl macros used in trace-event-perl.c get pulled in in Fedora (I did 'yum install perl-ExtUtils-Embed' to get the libperl support), and the debugging code generated by them shadows a global variable. Since the code should work in the debugging case regardless, and since I don't have control over the code in the macros, I don't see much choice in this case but to ignore the warning. I'll also post a few other fixes for things I noticed when fixing this. Tom > Thanks, > > Ingo > > CC util/trace-event-perl.o > cc1: warnings being treated as errors > util/trace-event-perl.c: In function 'define_symbolic_value': > util/trace-event-perl.c:70: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c:85: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c: In function 'define_symbolic_field': > util/trace-event-perl.c:102: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c:115: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c: In function 'define_flag_value': > util/trace-event-perl.c:128: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c:143: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c: In function 'define_flag_field': > util/trace-event-perl.c:161: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c:175: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c: In function 'perl_process_event': > util/trace-event-perl.c:301: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > util/trace-event-perl.c:350: error: declaration of 'my_perl' shadows a global declaration > util/trace-event-perl.c:48: error: shadowed declaration is here > make: *** [util/trace-event-perl.o] Error 1 -- 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/