Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932440AbWIZWLX (ORCPT ); Tue, 26 Sep 2006 18:11:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932444AbWIZWLX (ORCPT ); Tue, 26 Sep 2006 18:11:23 -0400 Received: from gw.goop.org ([64.81.55.164]:20925 "EHLO mail.goop.org") by vger.kernel.org with ESMTP id S932440AbWIZWLW (ORCPT ); Tue, 26 Sep 2006 18:11:22 -0400 Message-ID: <4519A58A.7070302@goop.org> Date: Tue, 26 Sep 2006 15:11:22 -0700 From: Jeremy Fitzhardinge User-Agent: Thunderbird 1.5.0.7 (X11/20060913) MIME-Version: 1.0 To: Mathieu Desnoyers CC: Martin Bligh , "Frank Ch. Eigler" , Masami Hiramatsu , prasanna@in.ibm.com, Andrew Morton , Ingo Molnar , Mathieu Desnoyers , Paul Mundt , linux-kernel , Jes Sorensen , Tom Zanussi , Richard J Moore , Michel Dagenais , Christoph Hellwig , Greg Kroah-Hartman , Thomas Gleixner , William Cohen , ltt-dev@shafik.org, systemtap@sources.redhat.com, Alan Cox , Karim Yaghmour , Pavel Machek , Joe Perches , "Randy.Dunlap" , "Jose R. Santos" Subject: Re: [PATCH] Linux Kernel Markers 0.14 for 2.6.17 References: <20060926220604.GA30396@Krystal> In-Reply-To: <20060926220604.GA30396@Krystal> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 954 Lines: 27 Mathieu Desnoyers wrote: > Hi, > > Constructing on Jeremy Fitzhardinge's comments about gcc optimizations, I > rewrote (once more) the markers mechanism so that the optimized mode does not > jump between two different inline asm. Instead, the optimized version uses a > load immediate (in assembly) that will be used by a test to decide of a branch > (in C). > I should have spelled out my point a bit more. If you've got a flag you're just testing, couldn't you just do: if (__mark_enabled_##name) (*__mark_func)(...); and do without the asms or the section? The section will still be useful for simply labelling the mark sites, but if you want to call something there, you don't need it. J - 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/