perf disassemble: Move check for kallsyms + !kcore
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Aug 2016 17:56:13 +0000 (14:56 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Aug 2016 18:37:33 +0000 (15:37 -0300)
commitc12944f7faa7f76441d83c1413f13e8bc70162b2
treec960970da851befa15ac59bb07d0f2ee629e69ea
parent29659ab4e7d02c08d8f2d08db0b0f708bd8b6771
perf disassemble: Move check for kallsyms + !kcore

We don't need to do all that filename logic to then just have to test
something unrelated and bail out, move it to the start of the function.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-lk1v4srtsktonnyp6t1o0uhx@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c