Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1800351ybb; Thu, 26 Mar 2020 07:34:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvkxIknL85XArfnqs5/lVSkc5GCqBF4pDPtqDXOg3pV7fS3e6dhi8S1BgfRiR4HQoYZWekU X-Received: by 2002:a9d:6d09:: with SMTP id o9mr2770226otp.34.1585233293385; Thu, 26 Mar 2020 07:34:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585233293; cv=none; d=google.com; s=arc-20160816; b=ClI76YX5DS1foNw5jpD8HKoQuckzBzrh5UHP2X/Mn/tI5ZU6Xz+ys40VbbCpVMap0H rY1k6aoOH6nljIJuypDDUB+dxbYsBNLCiJjDFE4h6JHmlcMo4jNS+mFIe6eEvvYwAdKj 26xPXAyQ/YHyjTHvTQzGCheOAzQ4h+i5rTnncYedL7GjMLi9KC47HABZsijDOG7V3EQH dMe76Fy+IPFnIuTQEBoefgbxAOGCYOBrVf6RwAIF9V9bcuwdQl8SS5OZ43sUJ56sd0uy W6Xr10H9UVI7cHZ+LqfpMU247oPyGbkAHH2knet4EePHmsAu/udzOez9/Qfricj69pPo 4VCw== 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:date:from :dkim-signature; bh=PDJcCICWbBvg13CmIRICUUgkZIihePfG6AfLGVtczXE=; b=WtVBC4NVvJtXksopr7gpOJwq8rG1Z7TusowdV0QkKF+iVl3F893n5uvjWHRPAfdo9U LZQEcbec0fd6htOtdfg/UyX/nf5cDzXquQeUq7wVz2c0Et5r7YyVuyQXW4o4J/9rV7FC hwoFOLVmX4UKJ3op0nlurVnIgjgTSOFT5ahsjIFfKE9nSOlE474K0yUUTuWCCatmEBXq wP8+9bwMZZvTTzGrNNMS4IQcl6tMWQNXWKJyKeUDXBYHqJx/T6X7kKupr3sfjcKeBkjl 0BI/tbJflXyFWRHXO0kIxvs/yEGMF3U8U/KwKcAwmfvshyHOi34ueYvgiX1jIQvoIovj lezA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="V/tsxhNl"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k25si973104oik.162.2020.03.26.07.34.39; Thu, 26 Mar 2020 07:34:53 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="V/tsxhNl"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727854AbgCZOeA (ORCPT + 99 others); Thu, 26 Mar 2020 10:34:00 -0400 Received: from mail-qk1-f180.google.com ([209.85.222.180]:37902 "EHLO mail-qk1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbgCZOd7 (ORCPT ); Thu, 26 Mar 2020 10:33:59 -0400 Received: by mail-qk1-f180.google.com with SMTP id h14so6607673qke.5 for ; Thu, 26 Mar 2020 07:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PDJcCICWbBvg13CmIRICUUgkZIihePfG6AfLGVtczXE=; b=V/tsxhNlgL1zE+ydPp6RYZSukW4QFUAyXDiouNnu1aT33E7W36MZpVDIAcVBiqNIGb kkxRCjrgowoDk3T0PwhGJ6qWxYFO/Vn2sY41C4iyl31Saq9d4xMp1lt2UeA0M+cYDfU0 2Cob6N0r7EvNUltd2OvftrjsrV+YH048FkYxaO/TEH9QSZO3Gswy5SEuuPMoyrZoNhiR WwPF7HXzPcqxNZj3SN94kR2B1jingXnfPhAcGRsvhuxP8j/05UBLWHi6tuciSmQ6jKhg sq83Ctr2Xs04WDBEgkMksEFwNkJkZR5ICUP2AAGIQlUv4Xycj2dTkE1bq5e9sROwYdGc KzBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PDJcCICWbBvg13CmIRICUUgkZIihePfG6AfLGVtczXE=; b=a3Qms6pE8KIA5y0K6H9Ogf5Hik7irILQHTJ1ZWbDQvRmEeyJfFOs46BC5Xm9gnDRVA s1wquh+xbsfYBlvs7hPEMi0AipyBuzDLEsutU4p+Gy5J1CYzzBEVPF7dCHqiu/NsNDws n/5xINUyG3mio/RnuueN4jbC0VF0c9NVnUIWZJQTHA6tgvLQ56+nvolNT3a1STGXBWsm mP2706pIqdqWpZA042hbVD92PR2FklEq7dO6aWepcKkpPHRfp/04IZPLMmOjYm75emga 639JnHB7a6dmrOUINsvqeqULGA7mTG7aunIXsG93g7rc0NHDJw9Z3IQE2Renx6zORoj2 rgcQ== X-Gm-Message-State: ANhLgQ1IwAxW5TVZywxUQPVMzDlu8amMzUHP8Tmutxxy7MdkNbLA9oAC bmctfXs9jDzueycktg/HFOY= X-Received: by 2002:ae9:eb0b:: with SMTP id b11mr8213333qkg.75.1585233238542; Thu, 26 Mar 2020 07:33:58 -0700 (PDT) Received: from quaco.ghostprotocols.net ([179.97.37.151]) by smtp.gmail.com with ESMTPSA id x89sm1672947qtd.43.2020.03.26.07.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Mar 2020 07:33:57 -0700 (PDT) From: Arnaldo Carvalho de Melo X-Google-Original-From: Arnaldo Carvalho de Melo Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 62CD840061; Thu, 26 Mar 2020 11:33:55 -0300 (-03) Date: Thu, 26 Mar 2020 11:33:55 -0300 To: Hagen Paul Pfeifer Cc: linux-kernel@vger.kernel.org, Andi Kleen , Adrian Hunter , Jiri Olsa Subject: Re: [PATCH] perf script: introduce deltatime option Message-ID: <20200326143355.GB6411@kernel.org> References: <20200204173709.489161-1-hagen@jauu.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204173709.489161-1-hagen@jauu.net> 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 Tue, Feb 04, 2020 at 06:37:09PM +0100, Hagen Paul Pfeifer escreveu: > For some kind of analysis a deltatime output is more human friendly and reduce > the cognitive load for further analysis. > > The following output demonstrate the new option "deltatime": calculate > the time difference in relation to the previous event. > > $ perf script --deltatime > test 2525 [001] 0.000000: sdt_libev:ev_add: (5635e72a5ebd) > test 2525 [001] 0.000091: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 1.000051: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 > test 2525 [001] 0.000685: sdt_libev:ev_add: (5635e72a5ebd) > test 2525 [001] 0.000048: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 1.000104: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 > test 2525 [001] 0.003895: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 0.996034: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 > test 2525 [001] 0.000058: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 1.000004: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 > test 2525 [001] 0.000064: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 0.999934: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 > test 2525 [001] 0.000056: sdt_libev:epoll_wait_enter: (5635e72a76a9) > test 2525 [001] 0.999930: sdt_libev:epoll_wait_return: (5635e72a772e) arg1=1 You forgot to update the man page, I did it, tested and applied, thanks. - Arnaldo diff --git a/tools/perf/Documentation/perf-script.txt b/tools/perf/Documentation/perf-script.txt index db6a36aac47e..4af255bb0977 100644 --- a/tools/perf/Documentation/perf-script.txt +++ b/tools/perf/Documentation/perf-script.txt @@ -390,6 +390,9 @@ include::itrace.txt[] --reltime:: Print time stamps relative to trace start. +--deltatime:: + Print time stamps relative to previous event. + --per-event-dump:: Create per event files with a "perf.data.EVENT.dump" name instead of printing to stdout, useful, for instance, for generating flamegraphs.