From: Namhyung Kim <namhyung.kim@lge.com>
To: Yuanfang Chen <cyfmxc@gmail.com>
Cc: Namhyung Kim <namhyung@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: perf record: can I specify multiple events and use different sample-after value
Date: Thu, 23 Feb 2012 16:24:53 +0900 [thread overview]
Message-ID: <4F45E9C5.4020900@lge.com> (raw)
In-Reply-To: <CAJh9x3prNK+mB7ZACPr_8Gr4nMw5rG45nWwuF__P1=9cB+UN1A@mail.gmail.com>
2012-02-23 4:03 AM, Yuanfang Chen wrote:
> On Wed, Feb 22, 2012 at 6:40 AM, Namhyung Kim <namhyung@gmail.com> wrote:
>> Namhyung Kim <namhyung.kim@lge.com> wrote:
>>> 2012-02-22 10:59 AM, Yuanfang Chen wrote:
>>>> I'm trying use perf tool from the linux kernel package to measure
>>>> several raw PMU events. In the manpage of perf-record there is an "-l"
>>>> option (Scale counter values), which is useful for my case because I
>>>> want to know the total counter value, not just sample count. However
>>>> it seems the -l is not recognized, is this expected? How can I get a
>>>> total count?
>>>
>>> "perf report --show-total-period" will be your friend.
>>
>> Or else, why not simply run "perf stat"?
>
> My purpose is to get some PMU counter value during each time interval,
> only perf record can do this. When using perf record -F, I have to add
> up all period value for some event in a some interval to get that
> value. When perf record -c, things get a easier, just (sample count x
> sample after value) will do, only hassle is to get sample count in
> some time interval. However, perf record don't have an option to do
> this.
>
I still don't get it. Why "perf stat -e <events> -p <pid> -- sleep <interval>"
doesn't work for you? It will show you the value, won't it?
Thanks,
Namhyung
next prev parent reply other threads:[~2012-02-23 7:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 1:59 perf record: can I specify multiple events and use different sample-after value Yuanfang Chen
2012-02-22 6:01 ` Namhyung Kim
2012-02-22 11:40 ` Namhyung Kim
2012-02-22 19:03 ` Yuanfang Chen
2012-02-23 7:24 ` Namhyung Kim [this message]
[not found] ` <CAJh9x3o7HLGBWrwBaGgxXS-C9noQbKwh5BP_PAHomOOS6x9SYw@mail.gmail.com>
2012-02-23 18:52 ` Yuanfang Chen
2012-02-23 19:08 ` David Ahern
2012-02-24 22:41 ` Yuanfang Chen
2012-02-27 3:23 ` David Ahern
[not found] ` <CAJh9x3oO+-8Bc4UONG6RTmSeVFcuNHTKH5m2KsizaubmSojYmw@mail.gmail.com>
2012-02-27 13:58 ` Yuanfang Chen
2012-02-27 14:42 ` David Ahern
[not found] ` <CAJh9x3o3M+PWW8k6Ns51pQaMjEtWDmD3s8P0P_6_jro5zh66bA@mail.gmail.com>
2012-02-27 15:05 ` Fwd: " Yuanfang Chen
2012-02-22 18:57 ` Yuanfang Chen
2012-02-23 7:40 ` Namhyung Kim
2012-02-23 18:57 ` Yuanfang Chen
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=4F45E9C5.4020900@lge.com \
--to=namhyung.kim@lge.com \
--cc=cyfmxc@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=namhyung@gmail.com \
/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