aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/header.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-11-16 22:18:10 -0500
committerIngo Molnar <mingo@elte.hu>2009-11-17 01:19:55 -0500
commit5875412152ce67fb5087157b86ab6597f91d23e8 (patch)
tree5a148dcc777433f0d097ffa072b8b1a5b0a5c346 /tools/perf/util/header.h
parent11deb1f9f6ca6318fa9470e024b9f0634df48b4c (diff)
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>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r--tools/perf/util/header.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h
index b0d5cd707a7b..f46a94e09eea 100644
--- a/tools/perf/util/header.h
+++ b/tools/perf/util/header.h
@@ -67,7 +67,7 @@ char *perf_header__find_event(u64 id);
67struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr); 67struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr);
68void perf_header_attr__delete(struct perf_header_attr *self); 68void perf_header_attr__delete(struct perf_header_attr *self);
69 69
70void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); 70int perf_header_attr__add_id(struct perf_header_attr *self, u64 id);
71 71
72u64 perf_header__sample_type(struct perf_header *header); 72u64 perf_header__sample_type(struct perf_header *header);
73struct perf_event_attr * 73struct perf_event_attr *