perf annotate stdio: Fix --show-total-period
authorTaeung Song <treeze.taeung@gmail.com>
Fri, 21 Jul 2017 14:58:20 +0000 (11:58 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 25 Jul 2017 14:23:36 +0000 (11:23 -0300)
commit585d93c5ffccced26689e34095c0d74ef20a07d6
treee70fed3a8f358364cb58a35f8add42174301eafb
parentecd5f9959d2c9540482977ff1208ea67fbfb8cc9
perf annotate stdio: Fix --show-total-period

We were showing the total number of samples, not the total period as
asked by the user, fix it.

Reported-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Martin Liška <mliska@suse.cz>
Cc: Milian Wolff <milian.wolff@kdab.com>
Link: http://lkml.kernel.org/n/tip-lh2nh89rtqn5x5vbfthw6qml@git.kernel.org
Fixes: 0c4a5bcea460 ("perf annotate: Display total number of samples with --show-total-period")
[ split from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c