Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp934485pxa; Sat, 1 Aug 2020 10:49:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8DdqJRzori6cOR+mZ5pBLlDSulKXm5Hw/XALfGzB5q/1YbuHlNeBpQJhpqiGTiNDMfA/G X-Received: by 2002:a17:906:68e:: with SMTP id u14mr10002410ejb.166.1596304180905; Sat, 01 Aug 2020 10:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596304180; cv=none; d=google.com; s=arc-20160816; b=ovPerpE3iGPppdulkTw7uaZdi8zh9gGaIvX4SndiTrPqokV1MF0VOBYgbV+pExfYSy EvNW4jot9pPkeHL75ypvxF6675CW+tvfBgEpCtFcO41BYhHP2Uf9lHybNVhbtumQWTlC lsS6+Vi3uck7wWEIFerNNE/gy9okxHQqC0keJ33G2d9rpCDtVVbtdGkhGrd8POe3EZrP 9djJEDW+ynGg1MpThMORArYpmNhsjHmng72ljhnCXKhlabOf3v69MBL3Kgog7qgIkH53 U78QpSsH3kMCV1OiNkIEz4Glbj43PmRF4V7w0St71y/10oSCHi37W+tP7GyhDkOLy21l jQtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=5cO2gGAuVzSqWlwykP8n+coFW5PyOsllNMzDbUTJIKI=; b=rv9/m84R6hId/8O6CmRQwTolh533Utu3leyqKwgRTT1ShjW94UhNqrDojPQAdVXV01 RQ8cAfuOWVaBfFMjFxQDdSAVQvRQy2tAV4SD6Elte5MWGvzDvmhxCmLDh8tPnJS047Y7 lrJEcamZvJ5P6riX2bU8iw9v3iUd9zvxRBsJ8xFxswpxwU3RqAPNlwMJtdEcL1K2CCLO w6ownr9b4GKHFRxG2kQ2bb4xo2qSeCEIEqicvTQ0PpyYlmkdd48MOntBn0P8iTNcMeem ZDaMmQ/YINGvdK55Q+DVybj+KCXqgWA2IQyykoz4M/SPHS4AxgM+pYWSKOWXG0s7bloG qn7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LTXgoGlL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x24si6226764ejs.198.2020.08.01.10.49.17; Sat, 01 Aug 2020 10:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LTXgoGlL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726345AbgHARtH (ORCPT + 99 others); Sat, 1 Aug 2020 13:49:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:47814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725803AbgHARtH (ORCPT ); Sat, 1 Aug 2020 13:49:07 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6CD222065E; Sat, 1 Aug 2020 17:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596304146; bh=Zi6dF7CKgLHrTs2UgzhtHjEuDKvkS1n6UeU/yFQ+VsA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LTXgoGlLvUKbXYUaJI9Vrx7+PxazL2bWGHklhZl5UGhRlAwaGSRhUGhQMsV2oksCM srZiIpuhg8jIa4b+9szhOYc6rO93QRl+jS/fqDpVKLvVe+2WZg/mm8+NUoh38SSsFg VVmpb2Yz1J/KFCrCKNt9rz4jlXIBGvp10DqxPhNU= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 88AE540E7E; Sat, 1 Aug 2020 14:49:04 -0300 (-03) Date: Sat, 1 Aug 2020 14:49:04 -0300 From: Arnaldo Carvalho de Melo To: David Ahern Cc: peterz@infradead.org, Andi Kleen , Jiri Olsa , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Michael Petlan , Ian Rogers , =?iso-8859-1?Q?Genevi=E8ve?= Bastien , Wang Nan , Jeremie Galarneau Subject: Re: [PATCH 0/6] perf tools: Add wallclock time conversion support Message-ID: <20200801174904.GA2740416@kernel.org> References: <20200730213950.1503773-1-jolsa@kernel.org> <20200730221423.GH2638@hirez.programming.kicks-ass.net> <20200731074726.GA1485940@krava> <20200731153612.GC1299820@tassilo.jf.intel.com> <20200731180539.GA2674@hirez.programming.kicks-ass.net> <27a4663d-bc71-5f52-5871-23d4061fe575@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27a4663d-bc71-5f52-5871-23d4061fe575@gmail.com> X-Url: http://acmel.wordpress.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Jul 31, 2020 at 06:46:21PM -0600, David Ahern escreveu: > On 7/31/20 12:05 PM, peterz@infradead.org wrote: > > On Fri, Jul 31, 2020 at 08:36:12AM -0700, Andi Kleen wrote: > >>> yep, we have a customer that needs to compare data from multiple servers > >> It's also needed to correlate over different guests on the same machine. > >> This is an important use case. > > Both these cases you want to sync up CLOCK_MONOTONIC, using walltime is > > just utterly misguided. > Every userspace component logs in walltime. You can say that is > misguided, but that is the way it is. The missing piece is the ability > to correlate kernel events to userspace logs. > > What happens if the servers have (per accident or otherwise) different > > DST settings, or someone does a clock_setttime() for giggles. > Yes, someone *could* change the time. Someone *could* start ntpd or > other time server in the middle of a session. While technically such > things can happen, that is not real life in most environments (e.g., > Data center servers). ntpd (or other) is started at boot, and it is just > the little misc adjustments that happen over time. > We could add tracepoints and detect the changes and invalidate the > reference time. We could add tracepoints to track the adjustments and > update the reference time. In my experience over 9+ years using this > tool (out of tree patches) that has never been the problem. > > All you really want is a clock that runs at the same rate but is not > > subject to random jumps and user foibles. > All I want is to compare user logs to a kernel event via timestamps. Can we have both possibilities and leave the decision on which one to use in the hands of those who have a gun to shoot wherever they want, maybe in the foot? - Arnaldo