All of lore.kernel.org
 help / color / mirror / Atom feed
From: Namhyung Kim <namhyung@kernel.org>
To: Arnav <arnav.gupta06@live.in>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: sampling and reading
Date: Wed, 05 Nov 2014 11:41:43 +0900	[thread overview]
Message-ID: <87ppd2xtaw.fsf@sejong.aot.lge.com> (raw)
In-Reply-To: <loom.20141104T212325-617@post.gmane.org> (Arnav's message of "Tue, 4 Nov 2014 20:27:08 +0000 (UTC)")

Hi Arnav,

On Tue, 4 Nov 2014 20:27:08 +0000 (UTC), Arnav wrote:
> i am working on a project where i need to find program counters for every 100M 
> instructions.
>
> i have used the  following command to record the event
>
> perf record -e instructions -c 100000000 ./filename
>
> now, since counters are counted every 100M instructions, i read file using 
> 'perf report'. But i get results in some percentage form and not in numerical 
> numbers format.
>
> i wish to read the file and gather the perforamance counter statistics. 
> Plz suggest how to get the desired results.

How about using

  perf report --show-total-period

?

Thanks,
Namhyung

      parent reply	other threads:[~2014-11-05  2:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 20:27 sampling and reading Arnav
2014-11-04 21:08 ` Andi Kleen
2014-11-05  2:41 ` Namhyung Kim [this message]

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=87ppd2xtaw.fsf@sejong.aot.lge.com \
    --to=namhyung@kernel.org \
    --cc=arnav.gupta06@live.in \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.