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] [day] [month] [year] [list]
Date:   Tue, 23 Jan 2018 15:24:50 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     ufo19890607 <ufo19890607@...il.com>
Cc:     peterz@...radead.org, mingo@...hat.com,
        alexander.shishkin@...ux.intel.com, jolsa@...nel.org,
        dsahern@...il.com, namhyung@...nel.org, milian.wolff@...b.com,
        arnaldo.melo@...il.com, yuzhoujian@...ichuxing.com,
        adrian.hunter@...el.com, wangnan0@...wei.com,
        linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
        acme@...hat.com
Subject: Re: [PATCH 1/1] perf stat: Add support to print counts for fixed
 times

On Wed, Jan 17, 2018 at 01:37:25PM +0100, ufo19890607 wrote:
> From: yuzhoujian <yuzhoujian@...ichuxing.com>
> 
> Introduce a new option to print counts for fixed number of times
> and update perf-stat documentation accordingly.
> 
> Show below is the output of the new option for perf stat.
> 
> 	$perf stat -I 1000 --times-print 2 -e cycles -a
>         #           time             counts unit events
>              1.002827089         93,884,870      cycles
>              2.004231506         56,573,446      cycles

you can do that with following command:

[jolsa@...va perf]$ sudo ./perf stat -I 1000 -e cycles -a sleep 2
#           time             counts unit events
     1.000160132        437,471,026      cycles                                                      
     2.000367121        729,415,520      cycles                                                      
     2.000857390          1,407,820      cycles                                                      


jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ