[lkml]   [2014]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/2] perf, tools, stat: Initialize statistics correctly
On Tue, Mar 25, 2014 at 10:31:38AM -0700, Andi Kleen wrote:
> From: Andi Kleen <>
> 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 <>

Acked-by: Jiri Olsa <>


 \ /
  Last update: 2014-04-09 16:01    [W:0.080 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site