From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756675AbYAWQIo (ORCPT ); Wed, 23 Jan 2008 11:08:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755071AbYAWQFG (ORCPT ); Wed, 23 Jan 2008 11:05:06 -0500 Received: from ms-smtp-04.nyroc.rr.com ([24.24.2.58]:61897 "EHLO ms-smtp-04.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754206AbYAWQEz (ORCPT ); Wed, 23 Jan 2008 11:04:55 -0500 Message-Id: <20080123160441.563739421@goodmis.org> References: <20080123160236.969334052@goodmis.org> User-Agent: quilt/0.46-1 Date: Wed, 23 Jan 2008 11:02:39 -0500 From: Steven Rostedt To: LKML Cc: 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" , Jan Kiszka , John Stultz , Arjan van de Ven , Steven Rostedt Subject: [PATCH 03/20 -v5] Annotate core code that should not be traced Content-Disposition: inline; filename=mcount-annotate-generic-code.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mark with "notrace" functions in core code that should not be traced. The "notrace" attribute will prevent gcc from adding a call to mcount on the annotated funtions. Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Steven Rostedt --- lib/smp_processor_id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-mcount.git/lib/smp_processor_id.c =================================================================== --- linux-mcount.git.orig/lib/smp_processor_id.c 2008-01-23 10:26:31.000000000 -0500 +++ linux-mcount.git/lib/smp_processor_id.c 2008-01-23 10:26:39.000000000 -0500 @@ -7,7 +7,7 @@ #include #include -unsigned int debug_smp_processor_id(void) +notrace unsigned int debug_smp_processor_id(void) { unsigned long preempt_count = preempt_count(); int this_cpu = raw_smp_processor_id(); --