perf tools: Don't die() in perf_header__new()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Nov 2009 03:18:11 +0000 (01:18 -0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Nov 2009 06:19:56 +0000 (07:19 +0100)
commita9a70bbce7ab0bf3b1cba3ac662c4d502da6305c
treed2215ac394e9f9320d059a139a405f012abcd708
parent5875412152ce67fb5087157b86ab6597f91d23e8
perf tools: Don't die() in perf_header__new()

Propagate the errors instead, the users are the ones to decide
what to do if a library call fails.

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: <1258427892-16312-3-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-record.c
tools/perf/util/header.c