From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758929AbYA3DYv (ORCPT ); Tue, 29 Jan 2008 22:24:51 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755739AbYA3DTV (ORCPT ); Tue, 29 Jan 2008 22:19:21 -0500 Received: from ms-smtp-05.nyroc.rr.com ([24.24.2.59]:36103 "EHLO ms-smtp-05.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753769AbYA3DSw (ORCPT ); Tue, 29 Jan 2008 22:18:52 -0500 Message-Id: <20080130031840.503123953@goodmis.org> References: <20080130031521.258552785@goodmis.org> User-Agent: quilt/0.46-1 Date: Tue, 29 Jan 2008 22:15:24 -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/22 -v7] 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-25 21:46:50.000000000 -0500 +++ linux-mcount.git/lib/smp_processor_id.c 2008-01-25 21:47:03.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(); --