perf report: Check error during report__collapse_hists()
authorNamhyung Kim <namhyung@kernel.org>
Tue, 16 Feb 2016 14:08:26 +0000 (23:08 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 19 Feb 2016 22:17:50 +0000 (19:17 -0300)
commit5b2ea6f2f6ac81a230e6cc68e1473e796a583f00
treeb0a0ae60b4cbcfcc88191cd8dd866a6cae1ab09a
parentbba58cdfaace2eb96d2b3cabc610d2ba033371c8
perf report: Check error during report__collapse_hists()

If it returns an error, warn user and bail out instead of silently
ignoring it.

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: 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-9-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c