Re: perf record: can I specify multiple events and use different sample-after value

From: Namhyung Kim
Date: Wed Feb 22 2012 - 06:40:33 EST


Namhyung Kim <namhyung.kim@xxxxxxx> 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.
>

Or else, why not simply run "perf stat"?

Thanks,
Namhyung
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/