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:   Sat, 30 Nov 2019 13:20:08 -0800
From:   Ivan Babrou <ivan@...udflare.com>
To:     linux-kernel <linux-kernel@...r.kernel.org>
Cc:     kernel-team <kernel-team@...udflare.com>,
        Arnaldo Carvalho de Melo <acme@...nel.org>,
        Jiri Olsa <jolsa@...hat.com>
Subject: Misaligned output of perf stat --topdown

Hey,

I'm observing misaligned output of perf stat --topdown:

$ sudo perf stat --topdown --cpu 1 -a find /state > /dev/null

 Performance counter stats for 'system wide':

                                    retiring      bad speculation
 frontend bound        backend bound
S0-D0-C1           1                30.4%                        13.4%
                       38.0%                18.2%

$ sudo perf stat --topdown --cpu 1 -a find /state > /dev/null

 Performance counter stats for 'system wide':

                                    retiring      bad speculation
 frontend bound        backend bound
S0-D0-C1           1                27.5%                 6.5%
               24.1%                        41.9%

$ sudo perf stat --topdown --cpu 1 -a find /state > /dev/null

 Performance counter stats for 'system wide':

                                    retiring      bad speculation
 frontend bound        backend bound
S0-D0-C1           1                29.6%                        12.3%
                       23.7%                        34.4%

It may be hard to notice in narrow plaintext email, so here's a gist:

* https://gist.github.com/bobrik/ea5ddd8eb1629c350c898093f39ac7ee

I think there are two issues:

* Sometimes output is misaligned, which may or may not depend on the
length of the printed value (<10.0% is misaligned, >=10.0% is ok)
* Values are never really aligned to headers (except for maybe the first column)

This is on 5.4.0.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ