linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hagen Paul Pfeifer <hagen@jauu.net>
To: Andi Kleen <ak@linux.intel.com>
Cc: linux-kernel@vger.kernel.org,
	Adrian Hunter <adrian.hunter@intel.com>,
	Jiri Olsa <jolsa@kernel.org>,
	Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: Re: [PATCH] perf script: introduce deltatime option
Date: Wed, 5 Feb 2020 10:14:14 +0100	[thread overview]
Message-ID: <20200205091414.GB495987@virgo> (raw)
In-Reply-To: <20200204231628.GF302770@tassilo.jf.intel.com>

* 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

  reply	other threads:[~2020-02-05  9:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-04 17:37 [PATCH] perf script: introduce deltatime option Hagen Paul Pfeifer
2020-02-04 23:16 ` Andi Kleen
2020-02-05  9:14   ` Hagen Paul Pfeifer [this message]
2020-02-05 17:22     ` Andi Kleen
2020-03-26 14:33 ` Arnaldo Carvalho de Melo
2020-04-04  8:41 ` [tip: perf/urgent] perf script: Introduce --deltatime option tip-bot2 for Hagen Paul Pfeifer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200205091414.GB495987@virgo \
    --to=hagen@jauu.net \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=ak@linux.intel.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).