From: Andi Kleen <andi@firstfloor.org>
To: Jose <jose.sgarcia.aldonza@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: IPC sampling
Date: Fri, 03 Jun 2016 07:43:06 -0700 [thread overview]
Message-ID: <87oa7imiyt.fsf@tassilo.jf.intel.com> (raw)
In-Reply-To: <loom.20160603T134548-395@post.gmane.org> (Jose's message of "Fri, 3 Jun 2016 11:54:57 +0000 (UTC)")
Jose <jose.sgarcia.aldonza@gmail.com> writes:
>
> My problem now is that I don't know how to obtain "cycles" and
> "instructions" from perf.data file. I have tried several options using "perf
> report" and "perf script" but I don't achieve it.
perf record -e '{instructions,cycles}:S' ...
perf script
This means sample on cycles, but always read instructions too during the sample.
Then match up the values with the same time stamp from perf script and
calculate ipc, or use a perf script interpreted script to do so.
-Andi
--
ak@linux.intel.com -- Speaking for myself only
next prev parent reply other threads:[~2016-06-03 14:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-03 11:54 IPC sampling Jose
2016-06-03 14:43 ` Andi Kleen [this message]
2016-06-03 15:23 ` Jose
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=87oa7imiyt.fsf@tassilo.jf.intel.com \
--to=andi@firstfloor.org \
--cc=jose.sgarcia.aldonza@gmail.com \
--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.