Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756658Ab1CAWfX (ORCPT ); Tue, 1 Mar 2011 17:35:23 -0500 Received: from sj-iport-3.cisco.com ([171.71.176.72]:4017 "EHLO sj-iport-3.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756526Ab1CAWfV (ORCPT ); Tue, 1 Mar 2011 17:35:21 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAJ4DbU2rR7H+/2dsb2JhbACEKKIpdKIIiwWQeoEng0R2BIUShw2DQA X-IronPort-AV: E=Sophos;i="4.62,249,1297036800"; d="scan'208";a="272444164" Message-ID: <4D6D74B8.4010607@cisco.com> Date: Tue, 01 Mar 2011 15:35:36 -0700 From: David Ahern User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Peter Zijlstra CC: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, acme@ghostprotocols.net, mingo@elte.hu, fweisbec@gmail.com, paulus@samba.org, tglx@linutronix.de Subject: Re: [PATCH 3/6] perf record: add time-of-day option References: <1298865151-23656-1-git-send-email-daahern@cisco.com> <1298865151-23656-4-git-send-email-daahern@cisco.com> <1298989751.5226.863.camel@laptop> <4D6D0438.2090901@cisco.com> <1298993714.5226.871.camel@laptop> <4D6D13C6.5020807@cisco.com> <1298995250.5226.882.camel@laptop> <4D6D1A4C.1090009@cisco.com> <1298997435.5226.890.camel@laptop> <4D6D22A7.6000000@cisco.com> <1299018489.5226.940.camel@laptop> In-Reply-To: <1299018489.5226.940.camel@laptop> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1287 Lines: 41 On 03/01/2011 03:28 PM, Peter Zijlstra wrote: >> And for some silly reason I sense a time trap here (pun intended) ..... >> >> So your pushback is: >> 1. throw out the realtime-clock event patch, > > Well, no, you need continues samples to keep in sync, so having this is > required [*]. > >> 2. add a new CLOCK_TRACING type to clock_gettime with VDSO hook, > > Right, that is something we need anyway at some point in time. > >> 3. and use a synthesized event from userspace for snapshotting >> perf_clock to time-of-day -- similar to what I have now, but one that >> will guarantee a time-of-day to perf_clock correlation (versus the >> current one which hopes that perf_clock is the monotonic clock). > > I guess you could do that if we have full userspace tracing support, but > it wouldn't need synthesized events, it would need a pure userspace > event stream. I still don't see how this solves the need to trigger the initial sample into the event stream. David > > Thing is, I really dislike the ioctl() trigger > > > -- 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/