perf callchain: Check return value of split_add_child()
authorNamhyung Kim <namhyung@kernel.org>
Tue, 16 Feb 2016 14:08:23 +0000 (23:08 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Feb 2016 22:14:36 +0000 (19:14 -0300)
commitf2bb4c5af4fe16d8b1e4ae371e1ceaa817380a88
tree4e81ae51fa21afc247e0c4ab375f790c3149c36a
parent2d713b809d89a3d10c6a85162bf7cce0468e45d9
perf callchain: Check return value of split_add_child()

Now create_child() and add_child() return errors so check and pass it
to the caller.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1455631723-17345-6-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/callchain.c