]> git.baikalelectronics.ru Git - kernel.git/commit
perf stat: Do not clean event's private stats
authorJiri Olsa <jolsa@kernel.org>
Wed, 20 Jan 2016 11:56:34 +0000 (12:56 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Jan 2016 14:15:11 +0000 (11:15 -0300)
commite6aef5c0d472003d9125d054c7e704f9a7e01c78
treec4677b70f845365c3eb00a5e13bf5c72aae1ff2f
parent26b95a6ad67f0149f4635be7e1309894459a18d8
perf stat: Do not clean event's private stats

Mel reported stddev reporting was broken due to following commit:

512fe06e7a3a ("perf stat: Introduce read_counters function")

This commit merged interval and overall counters reading into single
read_counters function.

The old interval code cleaned the stddev data for some reason (it's
never displayed in interval mode) and the mentioned commit kept on
cleaning the stddev data in merged function, which resulted in the
stddev not being displayed.

Removing the wrong stddev data cleanup init_stats call.

Reported-and-Tested-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: stable@vger.kernel.org # v4.2+
Fixes: 512fe06e7a3a ("perf stat: Introduce read_counters function")
Link: http://lkml.kernel.org/r/1453290995-18485-4-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/stat.c