lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAJh9x3prNK+mB7ZACPr_8Gr4nMw5rG45nWwuF__P1=9cB+UN1A@mail.gmail.com>
Date:	Wed, 22 Feb 2012 14:03:27 -0500
From:	Yuanfang Chen <cyfmxc@...il.com>
To:	Namhyung Kim <namhyung@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: perf record: can I specify multiple events and use different
 sample-after value

On Wed, Feb 22, 2012 at 6:40 AM, Namhyung Kim <namhyung@...il.com> wrote:
> Namhyung Kim <namhyung.kim@....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.
>>
>
> 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.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ