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>] [day] [month] [year] [list]
Date:   Wed, 24 Jan 2018 08:39:18 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     禹舟键 <ufo19890607@...il.com>
Cc:     Peter Zijlstra <peterz@...radead.org>, mingo@...hat.com,
        Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
        Jiri Olsa <jolsa@...nel.org>, David Ahern <dsahern@...il.com>,
        Namhyung Kim <namhyung@...nel.org>,
        Milian Wolff <milian.wolff@...b.com>,
        Arnaldo Carvalho de Melo <arnaldo.melo@...il.com>,
        Wind Yu <yuzhoujian@...ichuxing.com>,
        Adrian Hunter <adrian.hunter@...el.com>,
        Wang Nan <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 24, 2018 at 10:03:08AM +0800, 禹舟键 wrote:
> Hi Jirka
> How can you control the output for perf stat, if the "--interval-print" is
> not 1000, eg. 2000, 3000, 5000.
> 
> root@...e10:/home$ ./perf stat -e cycles -a -I 2000 sleep 3
> #           time             counts unit events
>      2.001361101        695,569,361      cycles
>      3.003249250         57,904,006      cycles
> root@...e10:/home$ ./perf stat -e cycles -a -I 2000 --times-print 3
> #           time             counts unit events
>      2.002784924        128,438,406
> cycles
>      4.004290885         93,128,097
> cycles
>      6.005726281        111,303,359      cycles


[jolsa@...va perf]$ sudo ./perf stat -e cycles -a -I 2000 --times-print 3
#           time             counts unit events
     2.000161257      1,197,889,478      cycles                                                      
     4.000424645      2,905,635,530      cycles                                                      
     6.000589943      1,658,546,001      cycles                                                      
[jolsa@...va perf]$ sudo ./perf stat -e cycles -a -I 2000 sleep 6
#           time             counts unit events
     2.000248489      1,224,257,116      cycles                                                      
     4.000489261      3,171,435,328      cycles                                                      
     6.000766440      4,092,029,501      cycles                                                      
     6.916537222        563,745,072      cycles                                                      

jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ