perf trace: Fix an exit code of trace__symbols_init
authorAndrei Vagin <avagin@openvz.org>
Wed, 8 Nov 2017 00:22:46 +0000 (16:22 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Nov 2017 17:49:52 +0000 (14:49 -0300)
commitcbd5c1787bab4643e5959522275b46de94eba5ac
treefda72fb60a9c85ee3ae12f58ca54d2cb78be9aa9
parentd0565132605f454179699a1b8a3276fc0f8cc87b
perf trace: Fix an exit code of trace__symbols_init

Currently if trace_event__register_resolver() fails, we return -errno,
but we can't be sure that errno isn't zero in this case.

Signed-off-by: Andrei Vagin <avagin@openvz.org>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Vasily Averin <vvs@virtuozzo.com>
Link: http://lkml.kernel.org/r/20171108002246.8924-2-avagin@openvz.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c