Andi Kleen 5497628576 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 <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/1438039491-22091-1-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-07-28 12:05:04 -03:00
..
2013-12-27 15:17:00 -03:00
2015-05-27 12:21:43 -03:00
2015-06-08 10:31:40 -03:00
2015-06-08 10:31:40 -03:00
2015-06-23 18:21:30 -03:00
2015-05-05 18:13:22 -03:00
2015-05-05 18:13:22 -03:00
2014-12-19 13:09:43 +01:00
2014-07-10 00:22:54 +02:00
2014-05-01 21:22:39 +02:00
2014-07-23 11:48:11 -03:00
2014-07-23 11:48:11 -03:00
2014-05-01 21:22:39 +02:00
2015-05-29 12:43:44 -03:00