From: Peter Zijlstra Date: Fri, 4 Sep 2009 15:03:13 +0000 (+0200) Subject: perf stat: Use stddev_mean in stead of stddev X-Git-Tag: v2.6.32-rc1~720^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63d40deb2e7c64ed55943d49f078e09fc4b64b54;p=pandora-kernel.git perf stat: Use stddev_mean in stead of stddev When we're computing the mean by sampling the distribution, then the std dev of the mean is related to the std dev of the sample set by: stddev_mean = std_dev / sqrt(N) Which is exactly what we want. This results in the error on the mean decreasing with increasing number of samples. Also fix the scaled == -1, aka not counted case. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed