aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2016-05-05 16:04:03 -0700
committerArnaldo Carvalho de Melo <[email protected]>2016-05-16 23:11:13 -0300
commite3b03b6c1a4f3b4564be08809f58584592621a0a (patch)
tree6b2fed2e169c8750ef1d447ac9fc7824ea76c9d5 /tools/perf/util/trace-event-scripting.c
parent3f56e687a138481894a1088d5aa7d41951bdb020 (diff)
perf stat: Avoid fractional digits for integer scales
When the scaling factor is a full integer don't display fractional digits. This avoids unnecessary .00 output for topdown metrics with scale factors. v2: Remove redundant check. Signed-off-by: Andi Kleen <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] [ Rename 'round' to 'stat_round' as 'round' is defined in math.h, included by this patch, and this breaks the build on ubuntu 12.04 ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions