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

From: Yuanfang Chen
Date: Fri Feb 24 2012 - 17:41:05 EST


On Thu, Feb 23, 2012 at 2:08 PM, David Ahern <dsahern@xxxxxxxxx> wrote:
> On 2/23/12 11:52 AM, Yuanfang Chen wrote:
>>>
>>>
>>> say my application(not an existing process, so -p<pid> Âdoes not
>>> work.) run for 10 seconds. I want the r03c, r2d4 value during each
>>> second. ÂSo there will be two values for each event in one second.
>>
>>
>> oops, forgot to forward. :-)
>
>
> you are looking for something like this?
> http://www.spinics.net/lists/linux-perf-users/msg00211.html

Exactly !!

I think I'll settle with perf record for now. Still, unlike trace
event, sample count is not meaningful for PMU event. Output of "perf
script" does not include period value. One line of code will do the
work.

lude 17342 750118.202915: raw 0x3c: 86754 ffffffff8115f6b9
__mem_cgroup_commit_char
lude 17342 750118.203025: raw 0x3c: 1027634 ffffffff811344b9
__mem_cgroup_commit_char

86754, 1027634 is the period value. But I'm not sure which is the PMU
value, is it just period value, or period x sample after. If so, what
is the sample after value?

thank you,
yuanfang

>
> David
>
--
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/