Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754739AbYA3N0K (ORCPT ); Wed, 30 Jan 2008 08:26:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751492AbYA3NZ4 (ORCPT ); Wed, 30 Jan 2008 08:25:56 -0500 Received: from lizzard.sbs.de ([194.138.37.39]:18404 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751281AbYA3NZ4 (ORCPT ); Wed, 30 Jan 2008 08:25:56 -0500 Message-ID: <47A079BD.8020106@siemens.com> Date: Wed, 30 Jan 2008 14:21:01 +0100 From: Jan Kiszka User-Agent: Thunderbird 2.0.0.9 (X11/20070801) MIME-Version: 1.0 To: Steven Rostedt CC: LKML , Ingo Molnar , Linus Torvalds , Andrew Morton , Peter Zijlstra , Christoph Hellwig , Mathieu Desnoyers , Gregory Haskins , Arnaldo Carvalho de Melo , Thomas Gleixner , Tim Bird , Sam Ravnborg , "Frank Ch. Eigler" , John Stultz , Arjan van de Ven , Steven Rostedt Subject: Re: [PATCH 02/22 -v7] Add basic support for gcc profiler instrumentation References: <20080130031521.258552785@goodmis.org> <20080130031840.337019504@goodmis.org> In-Reply-To: <20080130031840.337019504@goodmis.org> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 35 Steven Rostedt wrote: > --- linux-mcount.git.orig/arch/x86/kernel/entry_32.S 2008-01-29 16:59:15.000000000 -0500 > +++ linux-mcount.git/arch/x86/kernel/entry_32.S 2008-01-29 17:26:18.000000000 -0500 > @@ -75,6 +75,31 @@ DF_MASK = 0x00000400 > NT_MASK = 0x00004000 > VM_MASK = 0x00020000 > > +#ifdef CONFIG_MCOUNT > +.globl mcount > +mcount: > + /* unlikely(mcount_enabled) */ > + cmpl $0, mcount_enabled > + jnz trace > + ret (and the corresponding 64-bit version) Is the impact of this change on the (already expensive) mcount_enabled case negligible? I worried about use cases where we want to gain some (relative) worst-case numbers via these instrumentations. In my personal priority scheme, CONFIG_MCOUNT=y && !mcount_enabled comes after mcount_enabled. Jan -- Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center Embedded Linux -- 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/