diff options
author | Andi Kleen <[email protected]> | 2014-03-25 10:31:38 -0700 |
---|---|---|
committer | Jiri Olsa <[email protected]> | 2014-04-14 12:56:06 +0200 |
commit | 90f6bb6c98ffef42125d7be6d4612505f561fbce (patch) | |
tree | ced6c6aec5b237776dc76df8b63d4c5912a00ebe /tools/perf/util/trace-event-scripting.c | |
parent | 40ba93e3aa001246110320edbe8cf2eb488c1fe7 (diff) |
perf stat: Initialize statistics correctly
perf stat did initialize the stats structure used to compute
stddev etc. incorrectly. It merely zeroes it. But one member
(min) needs to be set to a non zero value. This causes min
to be not computed at all. Call init_stats() correctly.
It doesn't matter for stat currently because it doesn't use
min, but it's still better to do it correctly.
The other users of statistics are already correct.
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions