Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752766AbbBKLkP (ORCPT ); Wed, 11 Feb 2015 06:40:15 -0500 Received: from casper.infradead.org ([85.118.1.10]:37805 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752153AbbBKLkN (ORCPT ); Wed, 11 Feb 2015 06:40:13 -0500 Date: Wed, 11 Feb 2015 12:39:46 +0100 From: Peter Zijlstra To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, acme@redhat.com, mingo@elte.hu, ak@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, cel@us.ibm.com, sukadev@linux.vnet.ibm.com, sonnyrao@chromium.org, johnmccutchan@google.com Subject: Re: [PATCH 0/4] perf: add support for profiling jitted code Message-ID: <20150211113946.GT23123@twins.programming.kicks-ass.net> References: <1423611765-18200-1-git-send-email-eranian@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423611765-18200-1-git-send-email-eranian@google.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 941 Lines: 20 On Wed, Feb 11, 2015 at 12:42:41AM +0100, Stephane Eranian wrote: > To enable synchronization of the runtime MMAPs with those recorded by > the kernel on behalf of the perf tool, the runtime needs to timestamp > any record in the dump file using the same time source. The current > patch series is relying on Sonny Rao's posix-clock patch series > posted on LKML in 2013. The link to the patches is: > https://lkml.org/lkml/2013/12/6/1044 > At least for x86 you could use something like this: lkml.kernel.org/r/aa2dd2e4f1e9f2225758be5ba00f14d6909a8ce1.1423180257.git.shli@fb.com We can re-create the perf_clock() from the tsc with the mult, shift and offset provided in the perf userpage. -- 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/