diff options
| author | Andi Kleen <[email protected]> | 2015-07-27 23:24:51 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-07-28 15:05:04 +0000 |
| commit | 5497628576a3c5f3dbab224fa5a5d027f43d8b50 (patch) | |
| tree | 0f685d26efea9d14f74815e9cf2a4e7b80becdd1 /tools/perf/scripts/python/syscall-counts.py | |
| parent | perf: Fix running time accounting (diff) | |
| download | kernel-5497628576a3c5f3dbab224fa5a5d027f43d8b50.tar.gz kernel-5497628576a3c5f3dbab224fa5a5d027f43d8b50.zip | |
perf stat: Fix transaction lenght metrics
The transaction length metrics in perf stat -T broke recently.
It would not match the metric correctly and always print K/sec.
This was caused by a incorrect update of the cycles_in_tx statistics.
Update the correct variable.
Also the check for zero division was reversed, which resulted in K/sec
being printed for no transactions. Fix this also up.
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
