]> git.baikalelectronics.ru Git - kernel.git/commit
perf report: Get rid of report__inc_stat()
authorNamhyung Kim <namhyung@kernel.org>
Mon, 22 Dec 2014 04:44:09 +0000 (13:44 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Jan 2015 16:24:32 +0000 (13:24 -0300)
commit4a01fdb409e34f995ded6aac219d420dc84fdb46
treee8b6b9f87901c33a1418f54fac043b39ddc57c7b
parentc51d9d92e5f6789c96bb48eb6ca1679f41cf3ba9
perf report: Get rid of report__inc_stat()

The report__inc_stat() function collects the number of hist entries in
the session in order to calculate the max size of the progess bar.

It'd be better if it does it during the addition of hist entries so that
it can be used by other places too.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1419223455-4362-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c
tools/perf/util/hist.c