Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp68385ybv; Wed, 5 Feb 2020 01:16:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzKVGf8t6fQrCEktuRcPY74HkRfaAslJFSjwBUKHqE+lfeoGBT98x9L3NrJKzQUC98RujlU X-Received: by 2002:aca:afd8:: with SMTP id y207mr2095647oie.96.1580894212766; Wed, 05 Feb 2020 01:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580894212; cv=none; d=google.com; s=arc-20160816; b=XiySVlUgkXT0L0Oe00q7/CaBXmSLcpjKG4OtU15uom8LjXTJJiEXv+giRYX0wpi1qx eHv3aaxFqj4609FeC+TBepiZGT1JVKoTqGfUJwS5OiYXNiEouYMoURdGmezzTB1nGdAp IBN1oSlhPOZh4efe0QZBcegtZFOloT95zDk+msSwxq6W/HxcgvJT5lkHwivs0ZU+m65B hm5cAJB6acFKL8JV5OI0TVCpCmrzMOeBTyBcVN6hD83M15JNrPKiq/kOwpeIpFcQ3xFI gztUZ+uYodKMDd2rUMxo5uxIoPv6PHKbBzwvDtGZgvaEUcye4VtNKlZ64pati6BIeAK/ KM6Q== 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; bh=l7xGgoJDs0Pzh9IRAPHYRLzoLn9u2MQnVqEFXy3Pajg=; b=Z6IsqmDL0JL0Jx4bvYj1Av2a+dqiSb1HgosLQEq0M+O3qZYq3NEnHBudbS5b+DWAaX hTQ2o6x3sJnU7T0akry2Njb2GCTmNRZSIqVYIFu846OTHUsIZla/tgXIflhnmTBF7H9I Plc6To/dch82jBA6pOK9nY2ZrWQjOdXwDdWBmkl3PNbTrqE/hOMFg3z1FV1+tHrzbZvP TjKWVmBr4TvokLniovYyY5SsSNaeBEs3q2o8P4lYd4JgNYKPmzJkdnFT2Z21Nz+TWuwR Gt7yjj7clkMCnIOSW4qnbPItZj7cLRSy0A7tq+j4p/edKV5fUclYBoIdRTkVxD+7HEEp 2Wqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si13115819otq.115.2020.02.05.01.16.40; Wed, 05 Feb 2020 01:16:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgBEJOW (ORCPT + 99 others); Wed, 5 Feb 2020 04:14:22 -0500 Received: from mout-p-201.mailbox.org ([80.241.56.171]:33026 "EHLO mout-p-201.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727068AbgBEJOW (ORCPT ); Wed, 5 Feb 2020 04:14:22 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 48CG8r10mSzQl9f; Wed, 5 Feb 2020 10:14:20 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id cC-7nC6GS1d3; Wed, 5 Feb 2020 10:14:16 +0100 (CET) Date: Wed, 5 Feb 2020 10:14:14 +0100 From: Hagen Paul Pfeifer To: Andi Kleen Cc: linux-kernel@vger.kernel.org, Adrian Hunter , Jiri Olsa , Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf script: introduce deltatime option Message-ID: <20200205091414.GB495987@virgo> References: <20200204173709.489161-1-hagen@jauu.net> <20200204231628.GF302770@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204231628.GF302770@tassilo.jf.intel.com> X-Key-Id: 98350C22 X-Key-Fingerprint: 490F 557B 6C48 6D7E 5706 2EA2 4A22 8D45 9835 0C22 X-GPG-Key: gpg --recv-keys --keyserver wwwkeys.eu.pgp.net 98350C22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andi Kleen | 2020-02-04 15:16:28 [-0800]: >> $ perf script --deltatime > >It's already implemented as --reltime Nope ;-) $ perf script --ns --reltime sleep 49148 [000] 0.000000000: probe_libc:sbrk: (7f279d9144f0) sleep 49148 [000] 0.000009153: probe_libc:sbrk: (7f279d9144f0) sh 49151 [002] 0.099454082: probe_libc:sbrk: (7f9f1c6374f0) sh 49151 [002] 0.099468538: probe_libc:sbrk: (7f9f1c6374f0) curl 49153 [003] 0.114459574: probe_libc:sbrk: (7f9bb2dfb4f0) curl 49153 [003] 0.114474449: probe_libc:sbrk: (7f9bb2dfb4f0) [...] $ perf script --ns --deltatime sleep 49148 [000] 0.000000000: probe_libc:sbrk: (7f279d9144f0) sleep 49148 [000] 0.000009153: probe_libc:sbrk: (7f279d9144f0) sh 49151 [002] 0.099444929: probe_libc:sbrk: (7f9f1c6374f0) sh 49151 [002] 0.000014456: probe_libc:sbrk: (7f9f1c6374f0) curl 49153 [003] 0.014991036: probe_libc:sbrk: (7f9bb2dfb4f0) curl 49153 [003] 0.000014875: probe_libc:sbrk: (7f9bb2dfb4f0) [...] reltime is relative to the *first event* in the record - deltatime is relative to the *previous* event. Hagen