perf util: Move block TUI function to ui browsers
authorJin Yao <yao.jin@linux.intel.com>
Mon, 18 Nov 2019 14:08:48 +0000 (22:08 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 19 Nov 2019 22:33:40 +0000 (19:33 -0300)
commit5cb456af99f58378fe90649d6faaab25e379be06
tree52260077cdccdabc8a4679630cc69f3f87505922
parentbb1835a3b86c73aa534ef6430ad40223728dfbc0
perf util: Move block TUI function to ui browsers

It would be nice if we could jump to the assembler/source view (like the
normal perf report) from total cycles view.

This patch moves the block_hists_tui_browse from block-info.c to
ui/browsers/hists.c in order to reuse some browser codes (i.e
do_annotate) for implementing new annotation view.

 v2:
 ---
 Fix the 'make NO_SLANG=1' error. (Change 'int block_hists_tui_browse()'
 to 'static inline int block_hists_tui_browse()')

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jin Yao <yao.jin@intel.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191118140849.20714-1-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/hists.c
tools/perf/util/block-info.c
tools/perf/util/hist.h