Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754304AbZDTJf2 (ORCPT ); Mon, 20 Apr 2009 05:35:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753555AbZDTJfQ (ORCPT ); Mon, 20 Apr 2009 05:35:16 -0400 Received: from ftp.linux-mips.org ([213.58.128.207]:51067 "EHLO ftp.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753525AbZDTJfP (ORCPT ); Mon, 20 Apr 2009 05:35:15 -0400 Date: Mon, 20 Apr 2009 10:01:55 +0200 From: Ralf Baechle To: Wu Zhangjin Cc: Zhang Le , linux-kernel@vger.kernel.org, Nicholas Mc Guire , Ingo Molnar , Thomas Gleixner , zhangfx@lemote.com, loongson-dev@googlegroups.com, yanh@lemote.com, linux-mips@linux-mips.org, linux-rt-users@vger.kernel.org Subject: Re: "RT_PREEMPT for loongson" is updated to patch-2.6.29.1-rt8 Message-ID: <20090420080155.GA11621@linux-mips.org> References: <1240193547.25532.52.camel@falcon> <20090420050419.GA22520@adriano.hkcable.com.hk> <1240211926.8884.27.camel@falcon> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1240211926.8884.27.camel@falcon> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1388 Lines: 31 On Mon, Apr 20, 2009 at 03:18:46PM +0800, Wu Zhangjin wrote: > On Mon, 2009-04-20 at 13:04 +0800, Zhang Le wrote: > to Ralf, > > I have divided ftrace to several commits in the above git tree, hope you > can check it, thx :-) > > in addition to the static/dynamic/graph function tracer & system call > tracer implementation, a mips specific ring_buffer_time_stamp > (kernel/trace/ring_buffer.c) is also implemented to get 1us precision > time, this is very important to make ftrace available in mips, > otherwise, we can only get 1ms precision time for the original > ring_buffer_time_stamp is based on sched_clock(jiffies based). > > perhaps we can implement a more precise sched_clock directly, just as > x86 does(native_sched_clock, tsc based), but in mips, there is only a > 32bit timer count which will quickly overflow, so it will need an extra > overflow protection, which may influence the other parts of the kernel. My git clone is still running to I'm commenting only on the patches you posted earlier. #ifdef-MIPS'ing things into the generic kernel code definately won't be an acceptable way to get ?s resolution. Ralf -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/