From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758618AbYAOUzs (ORCPT ); Tue, 15 Jan 2008 15:55:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757406AbYAOUut (ORCPT ); Tue, 15 Jan 2008 15:50:49 -0500 Received: from ms-smtp-03.nyroc.rr.com ([24.24.2.57]:51778 "EHLO ms-smtp-03.nyroc.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753754AbYAOUuf (ORCPT ); Tue, 15 Jan 2008 15:50:35 -0500 Message-Id: <20080115205021.610690490@goodmis.org> References: <20080115204907.838227723@goodmis.org> User-Agent: quilt/0.46-1 Date: Tue, 15 Jan 2008 15:49:09 -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 , Steven Rostedt Subject: [RFC PATCH 02/30 v3] 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-compile.git/lib/smp_processor_id.c =================================================================== --- linux-compile.git.orig/lib/smp_processor_id.c 2008-01-14 13:14:03.000000000 -0500 +++ linux-compile.git/lib/smp_processor_id.c 2008-01-14 13:14:13.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(); --