perf report: Set browser mode right before setup_browser()
authorSeokho Song <0xdevssh@gmail.com>
Mon, 4 Dec 2017 16:02:44 +0000 (01:02 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 5 Dec 2017 18:43:56 +0000 (15:43 -0300)
commit712d36db5a5c57eb79e962a0f9b85964640e8415
tree98664daf3b6468b96bf4fdce59ee82ec9e7aa5da
parentc343bade301dfe608e86b034cbabed3c0d5a50f5
perf report: Set browser mode right before setup_browser()

There are codes that print messages to the screen between assignment of
the use_browser variable and setup_browser().

But since the GUI browser is not initialized during that period, all
messages fail to show if the user passed the --gtk option to perf as GTK
is not initialized yet.

Reorder the code to assign use_browser variable right before
setup_browser() is called.

Signed-off-by: Seokho Song <0xdevssh@gmail.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: http://lkml.kernel.org/r/20171204160244.6332-1-0xdevssh@gmail.com
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c