diff options
author | David Ahern <dsahern@gmail.com> | 2013-05-25 18:24:48 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-05-28 16:24:04 +0300 |
commit | 45528f7c699a71d2f3096173980aadd43dff6eaa (patch) | |
tree | 88090f64f8729195ad68386d3693be18a8102dd3 /drivers/misc | |
parent | 6ca5f3081f903e2b25e58a061ddad486f846561e (diff) | |
download | op-kernel-dev-45528f7c699a71d2f3096173980aadd43dff6eaa.zip op-kernel-dev-45528f7c699a71d2f3096173980aadd43dff6eaa.tar.gz |
perf stats: Fix divide by 0 in variance
Number of samples needs to be greater 1 to have a variance.
Fixes nan% in perf-kvm-live output.
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com>
Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1369527896-3650-9-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions