diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-16 16:30:26 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-17 01:19:52 -0500 |
commit | dc79c0fc08a94b857aed446bfb47cdfde529400c (patch) | |
tree | a68f563cf3e4a047e1948d0735de9b5991166e4d /tools/perf/util/header.h | |
parent | c34984b2bbc77596c97c333539bffc90d2033178 (diff) |
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>
Diffstat (limited to 'tools/perf/util/header.h')
-rw-r--r-- | tools/perf/util/header.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index f1b3bf7bdfc1..0cbd4c9e982c 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h | |||
@@ -64,9 +64,7 @@ void perf_header__add_attr(struct perf_header *self, | |||
64 | void perf_header__push_event(u64 id, const char *name); | 64 | void perf_header__push_event(u64 id, const char *name); |
65 | char *perf_header__find_event(u64 id); | 65 | char *perf_header__find_event(u64 id); |
66 | 66 | ||
67 | 67 | struct perf_header_attr *perf_header_attr__new(struct perf_event_attr *attr); | |
68 | struct perf_header_attr * | ||
69 | perf_header_attr__new(struct perf_event_attr *attr); | ||
70 | void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); | 68 | void perf_header_attr__add_id(struct perf_header_attr *self, u64 id); |
71 | 69 | ||
72 | u64 perf_header__sample_type(struct perf_header *header); | 70 | u64 perf_header__sample_type(struct perf_header *header); |