From: Peter Zijlstra Date: Fri, 4 Sep 2009 13:36:12 +0000 (+0200) Subject: perf stat: Change noise calculation to use stddev X-Git-Tag: v2.6.32-rc1~720^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=506d4bc8d5dab20d84624aa07cdc6dcd77915d52;p=pandora-kernel.git perf stat: Change noise calculation to use stddev The current noise computation does: \Sum abs(n_i - avg(n)) * N^-1.5 Which is (afaik) not a regular noise function, and needs the complete sample set available to post-process. Change this to use a regular stddev computation which can be done by keeping a two sums: stddev = sqrt( 1/N (\Sum n_i^2) - avg(n)^2 ) For which we only need to keep \Sum n_i and \Sum n_i^2. Signed-off-by: Peter Zijlstra Cc: LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed