perf tools: Don't die in perf_header_attr__new()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Nov 2009 21:30:26 +0000 (19:30 -0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Nov 2009 06:19:52 +0000 (07:19 +0100)
commitdc79c0fc08a94b857aed446bfb47cdfde529400c
treea68f563cf3e4a047e1948d0735de9b5991166e4d
parentc34984b2bbc77596c97c333539bffc90d2033178
perf tools: Don't die in perf_header_attr__new()

We really should propagate such kinds of errors so that users of
these library functions decide what to do in such cases instead
of exiting in random places like now.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <1258407027-384-1-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/util/header.c
tools/perf/util/header.h