linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Hollmann <hollmann@in.tum.de>
To: linux-perf-users@vger.kernel.org
Subject: What is the difference between the events task-clock and cpu-clock?
Date: Wed, 22 May 2013 18:21:09 +0200	[thread overview]
Message-ID: <CAGz0_-0wg+k4--2CWdMWiVOY-eEmut1Br2Z4ck21b=1jff7rew@mail.gmail.com> (raw)

Hi,

what's the difference between the two events task-clock and cpu-clock?

I couldn't find any information that tells me the difference.

Why does the event modifier 'u' has no effect on these two software events?

Cheers,
Andreas

Here is the example:

$ time perf stat -e
'{task-clock,task-clock:u,cpu-clock,cpu-clock:u,instructions,instructions:u}'
dd if=/dev/zero of=/dev/null count=10000000
10000000+0 records in
10000000+0 records out
5120000000 bytes (5.1 GB) copied, 2.99018 s, 1.7 GB/s

 Performance counter stats for 'dd if=/dev/zero of=/dev/null count=10000000':

       2989.907827 task-clock                #    0.999 CPUs utilized
       2989.907827 task-clock:u              #    0.999 CPUs utilized
       2989.992015 cpu-clock
       2989.999305 cpu-clock:u
    14,525,479,811 instructions              #    0.00  insns per cycle
     3,130,315,989 instructions:u            #    0.00  insns per cycle

       2.991410383 seconds time elapsed


real    0m3.001s
user    0m0.723s
sys     0m2.270s

             reply	other threads:[~2013-05-22 16:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22 16:21 Andreas Hollmann [this message]
2013-06-06 14:57 ` What is the difference between the events task-clock and cpu-clock? Andreas Hollmann

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='CAGz0_-0wg+k4--2CWdMWiVOY-eEmut1Br2Z4ck21b=1jff7rew@mail.gmail.com' \
    --to=hollmann@in.tum.de \
    --cc=linux-perf-users@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).