perf hists browser: Consolidate callchain print functions in TUI
authorNamhyung Kim <namhyung@kernel.org>
Fri, 22 Aug 2014 00:13:21 +0000 (09:13 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 24 Aug 2014 11:11:19 +0000 (08:11 -0300)
commit39ee533fcc7feb5b7938a3973a2bf5ad79bb595b
treedd8436b2fdeacf12dec49cde06f9a9b50bf7c11a
parent2f3f9bcf000b2043a480e7cc0cae582559fb0f13
perf hists browser: Consolidate callchain print functions in TUI

Currently there're two callchain print functions in TUI - one for the
hists browser and another for file dump.  They do almost same job so
it'd be better consolidate the codes.

To do that, provide two callbacks to the generic logic - one for
printing and another for checking whether it should stop.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: 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.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1408666401-594-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c