Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752999AbbEDU64 (ORCPT ); Mon, 4 May 2015 16:58:56 -0400 Received: from casper.infradead.org ([85.118.1.10]:36512 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752842AbbEDU6D (ORCPT ); Mon, 4 May 2015 16:58:03 -0400 Date: Mon, 4 May 2015 22:57:48 +0200 From: Peter Zijlstra To: Drew Richardson Cc: Mathieu Desnoyers , Steven Rostedt , Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , John Stultz , Wade Cherry , Pawel Moll Subject: Re: [PATCH] ftrace: Provide trace clock monotonic raw Message-ID: <20150504205748.GB21418@twins.programming.kicks-ass.net> References: <1430750469-16428-1-git-send-email-drew.richardson@arm.com> <199091314.42407.1430752205090.JavaMail.zimbra@efficios.com> <20150504200515.GA24626@dreric01-Precision-T1650> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150504200515.GA24626@dreric01-Precision-T1650> 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: 1033 Lines: 22 On Mon, May 04, 2015 at 01:05:19PM -0700, Drew Richardson wrote: > I'm collecting and merging data from perf, with Android Atrace data > (writes to /sys/kernel/debug/tracing/trace_marker) which ends up in > the ftrace stream and other measurements collected from > userspace. Currently the only clock readable from userspace, supported > by perf and by ftrace is CLOCK_MONOTONIC. However this clock is > affected by the incremental adjustments performed by adjtime(3) and > NTP. Which should not matter at all, right? If both sources are using the same clock (they are) then its trivial to merge them and everything works as expected. > But I'd prefer to use a clock that is advancing at a consistent > rate, hence CLOCK_MONOTONIC_RAW. Right, Mathieu is asking _why_ you prefer that? -- 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/