From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761471AbYA3VIN (ORCPT ); Wed, 30 Jan 2008 16:08:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758198AbYA3VFn (ORCPT ); Wed, 30 Jan 2008 16:05:43 -0500 Received: from ms-smtp-05.nyroc.rr.com ([24.24.2.59]:39598 "EHLO ms-smtp-05.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755939AbYA3VFf (ORCPT ); Wed, 30 Jan 2008 16:05:35 -0500 Message-Id: <20080130210525.219220248@goodmis.org> References: <20080130210357.927754294@goodmis.org> User-Agent: quilt/0.46-1 Date: Wed, 30 Jan 2008 16:04:00 -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/23 -v8] 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-30 14:35:51.000000000 -0500 +++ linux-mcount.git/lib/smp_processor_id.c 2008-01-30 14:45:50.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(); --