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]
Date:	Wed, 22 Feb 2012 15:01:16 +0900
From:	Namhyung Kim <namhyung.kim@....com>
To:	linux-kernel@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org
Subject: Re: perf record: can I specify multiple events and use different
 sample-after value

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. :)

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


> 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

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