lkml.org 
[lkml]   [2012]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: perf record: can I specify multiple events and use different sample-after value
From
On Wed, Feb 22, 2012 at 1:01 AM, Namhyung Kim <namhyung.kim@lge.com> wrote:
> 2012-02-22 10:59 AM, Yuanfang Chen wrote:
>>
>> Hi all,
>>
>
> Hi,
>
>
>
>> 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.
>
> BTW, it seems you were using old version of perf (and kernel too, maybe).
> I have no idea if your perf wouldn't support the option. :)

You are right. my perf version is 3.0.0, just updated to 3.3.0-rc4.
--show-total-period works now.

>
> The "-l" option was meaningful only if you specified events more than the
> actual number of counters in the PMU.

So -l is for multiplexing?

>
>
>
>> Another question is that how can I specify multiple events and use
>> different sample-after value for each of them? like perf record -c
>> 10000,2000000,2000000 -e r2d4,r03c,r0c0
>>
>
> It's not possible now. You should run a number of instances of perf for
> that purpose AFAIK.
>
>
> Thanks,
> Namhyung


\
 
 \ /
  Last update: 2012-02-22 20:01    [W:0.065 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site