Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759844AbZJMNUY (ORCPT ); Tue, 13 Oct 2009 09:20:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755906AbZJMNUX (ORCPT ); Tue, 13 Oct 2009 09:20:23 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:33459 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755830AbZJMNUX (ORCPT ); Tue, 13 Oct 2009 09:20:23 -0400 Subject: Re: [tip:timers/tracing] hrtimer: Add tracepoint for hrtimers From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Ingo Molnar Cc: mingo@redhat.com, hpa@zytor.com, mathieu.desnoyers@polymtl.ca, anton@samba.org, linux-kernel@vger.kernel.org, peterz@infradead.org, zhaolei@cn.fujitsu.com, xiaoguangrong@cn.fujitsu.com, fweisbec@gmail.com, tglx@linutronix.de, kosaki.motohiro@jp.fujitsu.com, linux-tip-commits@vger.kernel.org In-Reply-To: <1255439822.7113.1541.camel@gandalf.stny.rr.com> References: <4A7F8B2B.5020908@cn.fujitsu.com> <1255404309.7113.948.camel@gandalf.stny.rr.com> <20091013070853.GA13175@elte.hu> <1255439822.7113.1541.camel@gandalf.stny.rr.com> Content-Type: text/plain Organization: Kihon Technologies Inc. Date: Tue, 13 Oct 2009 09:18:24 -0400 Message-Id: <1255439904.7113.1545.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 27 On Tue, 2009-10-13 at 09:17 -0400, Steven Rostedt wrote: > On Tue, 2009-10-13 at 09:08 +0200, Ingo Molnar wrote: > > * Steven Rostedt wrote: > > > > > > (unsigned long long)(((ktime_t) { .tv64 = REC->expires }).tv64) > > > > > > Is not easy. It's basically implementing a C interpreter :-( > > > > Btw., what i suggested quite some time ago was that we should bind > > tracepoints by emitting C source code stubs, which tools can then build > > and link in, using gcc. > > Yeah, and I thought about that too. But that kills any chance of running > the trace on one box (non x86) and reading it on another (x86). And that > is one of my goals for this. I'd love to see the kernel code for having this also understand ktime_t. -- Steve -- 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/