On 14/12/2021 18:42, Andrew Kilroy wrote:
This patch implements the --topdown option by making use of metrics to
dictate what counters are obtained in order to show the various topdown
columns, e.g. Frontend Bound, Backend Bound, Retiring and Bad
Speculation.
The MetricGroup name is used to identify which set of metrics are to be
shown. For the moment use TopDownL1 and enable for arm64
Signed-off-by: Andrew Kilroy<andrew.kilroy@xxxxxxx>
This works in that it gives results, but does not supply the same output format as for x86 nor has same restrictions in usage (-a commandline required, for example, below).
For my x86 broadwell:
john@localhost:~/linux/tools/perf> sudo ./perf stat --topdown sleep 1
top down event configuration requires system-wide mode (-a)
john@localhost:~/linux/tools/perf> sudo ./perf stat --topdown -a sleep 1
Performance counter stats for 'system wide':
retiring bad speculation frontend bound backend bound
S0-D0-C0 2 29.2% 6.3% 37.4% 27.1%
S0-D0-C1 2 20.4% 6.2% 42.1% 31.3%
0.998007338 seconds time elapsed
john@localhost:~/linux/tools/perf>