perf top: Move UI initialization ahead of sort setup
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Jan 2016 09:24:06 +0000 (10:24 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 3 Feb 2016 15:24:03 +0000 (12:24 -0300)
commit3ee60c3b18bd4bf30ea9b70e7542116bb5c205ba
treefe762774a5899c4fcd25b38274b1ca009aaee323
parent9887804d01abf7a4e03cfd6be0312d0a5c4e4aba
perf top: Move UI initialization ahead of sort setup

The ui initialization changes hpp format callbacks, based on the used
browser. Thus we need this init being processed before setup_sorting.

Replica of a patch by Jiri for 'perf report'.

Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1453109064-1026-9-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c