perf tools: Don't die() in perf_header_attr__add_id()
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-2-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
11deb1f9f6
commit
5875412152
@@ -67,7 +67,7 @@ char *perf_header__find_event(u64 id);
|
||||
struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr);
|
||||
void perf_header_attr__delete(struct perf_header_attr *self);
|
||||
|
||||
void perf_header_attr__add_id(struct perf_header_attr *self, u64 id);
|
||||
int perf_header_attr__add_id(struct perf_header_attr *self, u64 id);
|
||||
|
||||
u64 perf_header__sample_type(struct perf_header *header);
|
||||
struct perf_event_attr *
|
||||
|
Reference in New Issue
Block a user