From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758337AbZEAXoA (ORCPT ); Fri, 1 May 2009 19:44:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752709AbZEAXnw (ORCPT ); Fri, 1 May 2009 19:43:52 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:60054 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752703AbZEAXnv (ORCPT ); Fri, 1 May 2009 19:43:51 -0400 Date: Fri, 1 May 2009 19:43:50 -0400 (EDT) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Frederic Weisbecker cc: Tim Bird , linux kernel , linux-arm-kernel , Ingo Molnar , =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , Russell King Subject: Re: [PATCH 1/2] ftrace: add notrace to ARM sched_clock routines In-Reply-To: <20090501233744.GF6404@nowhere> Message-ID: References: <49FB77ED.3010800@am.sony.com> <20090501233744.GF6404@nowhere> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2 May 2009, Frederic Weisbecker wrote: > > } > > @@ -203,7 +203,7 @@ static struct clocksource clocksource_32 > > * Returns current time from boot in nsecs. It's OK for this to wrap > > * around for now, as it's just a relative time stamp. > > */ > > -unsigned long long sched_clock(void) > > +unsigned long long notrace sched_clock(void) > > { > > unsigned long long ret; > > > I've looked into all of these functions and they don't seem to call > anything that could be traced. I could have missed something though > but it looks good. I think the issue is that the tracing clock will call these functions, and we will waste time recursing into them. > > Acked-by: Frederic Weisbecker Heck I'll add mine too ;-) Acked-by: Steven Rostedt -- Steve