Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932807Ab3DBQF4 (ORCPT ); Tue, 2 Apr 2013 12:05:56 -0400 Received: from service87.mimecast.com ([91.220.42.44]:44042 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760850Ab3DBQFz convert rfc822-to-8bit (ORCPT ); Tue, 2 Apr 2013 12:05:55 -0400 Message-ID: <1364918752.3019.20.camel@hornet> Subject: Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples From: Pawel Moll To: Peter Zijlstra Cc: John Stultz , David Ahern , Stephane Eranian , Thomas Gleixner , LKML , "mingo@elte.hu" , Paul Mackerras , Anton Blanchard , Will Deacon , "ak@linux.intel.com" , Pekka Enberg , Steven Rostedt , Robert Richter Date: Tue, 02 Apr 2013 17:05:52 +0100 In-Reply-To: <1364889256.16858.1.camel@laptop> References: <1350408232.2336.42.camel@laptop> <1359728280.8360.15.camel@hornet> <51118797.9080800@linaro.org> <5123C3AF.8060100@linaro.org> <1361356160.10155.22.camel@laptop> <51285BF1.2090208@linaro.org> <1361801441.4007.40.camel@laptop> <1363291021.3100.144.camel@hornet> <51586315.7080006@gmail.com> <5159D221.70304@linaro.org> <1364889256.16858.1.camel@laptop> X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 X-OriginalArrivalTime: 02 Apr 2013 16:05:53.0130 (UTC) FILETIME=[F3851CA0:01CE2FBB] X-MC-Unique: 113040217055309601 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 22 On Tue, 2013-04-02 at 08:54 +0100, Peter Zijlstra wrote: > On Mon, 2013-04-01 at 11:29 -0700, John Stultz wrote: > > I'm still not sold on the CLOCK_PERF posix clock. The semantics are > > still too hand-wavy and implementation specific. > > How about we define the semantics as: match whatever comes out of perf > (and preferably ftrace by default) stuff? My thought exactly. Maybe if we defined it as "CLOCK_TRACE" and had equivalent "trace_clock()" function used by both perf (instead of perf_clock()) and ftrace the semantics would became clearer? This clock could be then described as "source of timestamps used by Linux trace infrastructure, in particular by ftrace and perf". Paweł -- 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/