From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757820Ab3BFSRr (ORCPT ); Wed, 6 Feb 2013 13:17:47 -0500 Received: from service87.mimecast.com ([91.220.42.44]:52766 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089Ab3BFSRo convert rfc822-to-8bit (ORCPT ); Wed, 6 Feb 2013 13:17:44 -0500 Message-ID: <1360174662.4045.34.camel@hornet> Subject: Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples From: Pawel Moll To: Stephane Eranian Cc: Peter Zijlstra , LKML , "mingo@elte.hu" , Paul Mackerras , Anton Blanchard , Will Deacon , "ak@linux.intel.com" , Pekka Enberg , Steven Rostedt , Robert Richter , tglx , John Stultz Date: Wed, 06 Feb 2013 18:17:42 +0000 In-Reply-To: References: <1350408232.2336.42.camel@laptop> <1359728280.8360.15.camel@hornet> X-Mailer: Evolution 3.6.2-0ubuntu0.1 Mime-Version: 1.0 X-OriginalArrivalTime: 06 Feb 2013 18:17:42.0803 (UTC) FILETIME=[41552E30:01CE0496] X-MC-Unique: 113020618174300201 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 On Tue, 2013-02-05 at 22:13 +0000, Stephane Eranian wrote: > The app requesting the timestamp may not necessarily have an active > perf session. And by that I mean, it may not be self-monitoring. But it > could be monitored by an external tool such as perf, without necessary > knowing it. Fair enough - I guess eg. JIT engine could generate a timestamped information about generated symbols which could be then merged with a stream recorded by the perf tool by yet another tool. > The timestamp is global or at least per-cpu. It is not tied to a particular > active event. I know that the implementation does it now, but is it actually specified as such? I could imagine a situation where perf_clock() returns time elapsed since the "current" sys_perf_event_open()... (not that I'd like it ;-) Paweł