From: Jose <jose.sgarcia.aldonza@gmail.com>
To: linux-perf-users@vger.kernel.org
Subject: Re: IPC sampling
Date: Fri, 3 Jun 2016 15:23:52 +0000 (UTC) [thread overview]
Message-ID: <loom.20160603T171204-784@post.gmane.org> (raw)
In-Reply-To: 87oa7imiyt.fsf@tassilo.jf.intel.com
Andi Kleen <andi <at> firstfloor.org> writes:
>
> Jose <jose.sgarcia.aldonza <at> 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
>
Good!
Two additional questions:
- If using '{cycles,instructions}:S', is sampling on instructions? Sometimes
I'm interested to sample on number of instructions.
I don't find information about option :S from man pages. Is there a manual
with much more information?
- Could you provide more information (links, an example, ...) on "perf
script interpreted script"
Thanks
Jose
prev parent reply other threads:[~2016-06-03 15:24 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
2016-06-03 15:23 ` Jose [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=loom.20160603T171204-784@post.gmane.org \
--to=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 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).