diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-11-19 19:55:56 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-19 20:47:17 +0300 |
commit | d5eed904bb6010b429b82c47e7cdb6a32f0c1343 (patch) | |
tree | 2d9da285a0c9a67acc2ed6c2fa647986b4bdd896 /tools/perf/util/header.h | |
parent | 4dc0a04bb18fe9b80cefa08694f46a3a19ebfe50 (diff) | |
download | linux-d5eed904bb6010b429b82c47e7cdb6a32f0c1343.tar.xz |
perf tools: Eliminate some more die() uses in library functions
This time in perf_header__adds_write, propagating the do_write
error returns.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1258649757-17554-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/header.h b/tools/perf/util/header.h index dc8fedb066ab..d1dbe2b79c42 100644 --- a/tools/perf/util/header.h +++ b/tools/perf/util/header.h @@ -59,7 +59,7 @@ struct perf_header *perf_header__new(void); void perf_header__delete(struct perf_header *self); int perf_header__read(struct perf_header *self, int fd); -void perf_header__write(struct perf_header *self, int fd, bool at_exit); +int perf_header__write(struct perf_header *self, int fd, bool at_exit); int perf_header__add_attr(struct perf_header *self, struct perf_header_attr *attr); |