All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Arnav <arnav.gupta06@live.in>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: sampling and reading
Date: Tue, 04 Nov 2014 13:08:04 -0800	[thread overview]
Message-ID: <87ioiuk72j.fsf@tassilo.jf.intel.com> (raw)
In-Reply-To: <loom.20141104T212325-617@post.gmane.org> (Arnav's message of "Tue, 4 Nov 2014 20:27:08 +0000 (UTC)")

Arnav <arnav.gupta06@live.in> writes:

> 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.

Use perf script instead of perf report.

-Andi
-- 
ak@linux.intel.com -- Speaking for myself only

  reply	other threads:[~2014-11-04 21:08 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 [this message]
2014-11-05  2:41 ` Namhyung Kim

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=87ioiuk72j.fsf@tassilo.jf.intel.com \
    --to=andi@firstfloor.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.