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: <20160216200256.GI17690@kernel.org>
Date:	Tue, 16 Feb 2016 17:02:56 -0300
From:	Arnaldo Carvalho de Melo <acme@...nel.org>
To:	Andi Kleen <andi@...stfloor.org>
Cc:	jolsa@...nel.org, eranian@...gle.com, mingo@...nel.org,
	linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
Subject: Re: [PATCH 3/8] perf, tools, stat: Move noise/running printing into
 printout

Em Sat, Jan 30, 2016 at 09:06:51AM -0800, Andi Kleen escreveu:
> From: Andi Kleen <ak@...ux.intel.com>
> 
> Move the running/noise printing into printout to avoid
> duplicated code in the callers.
> 
> v2: Merged with other patches. Remove unnecessary hunk.
> Readd hunk that ended in earlier patch.
> v3: Fix noise/running output in CSV mode
> v4: Merge with later patch that also moves not supported printing.
> Acked-by: Jiri Olsa <jolsa@...nel.org>

So, the description makes it look like this is just elliminating code
duplication, but then, before we had:

  [acme@...et linux]$ perf.old stat -I 500 -e instructions,cycles sleep 1
  #           time             counts unit events
       0.500164711            548,376      instructions              #    0.72  insn per cycle                                            
       0.500164711            756,872      cycles                                                      
       1.000405470      <not counted>      instructions             
       1.000405470      <not counted>      cycles                   
       1.000690913            156,623      instructions              #    0.48  insn per cycle                                            
       1.000690913            226,630      cycles                                                      
  [acme@...et linux]$

And now we have instead:

  [acme@...et linux]$ perf stat -I 500 -e instructions,cycles sleep 1
  #           time             counts unit events
       0.500173751            555,962      instructions              #    0.77  insn per cycle                                            
       0.500173751            722,964      cycles                                                      
       1.000382613                  0      instructions              #    0.00  insn per cycle                                            
       1.000382613                  0      cycles                                                      
       1.001157068            154,765      instructions              #    0.49  insn per cycle                                            
       1.001157068            223,609      cycles                                                      
  [acme@...et linux]$ 

So there is a change in behaviour.

- Arnaldo

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ