diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-03-21 08:18:46 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-03-21 17:15:42 +0100 |
commit | 8755d5e202c3ef62e33d75426c2f0005e3f70ca9 (patch) | |
tree | b8ddc1a13229bd4fc47fa48476c5ed910f307e86 /tools/perf/util/trace-event.h | |
parent | perf tools: Get rid of malloc_or_die() in trace-event-info.c (diff) | |
download | linux-8755d5e202c3ef62e33d75426c2f0005e3f70ca9.tar.xz linux-8755d5e202c3ef62e33d75426c2f0005e3f70ca9.zip |
perf tools: Get rid of write_or_die() from trace-event-info.c
Check return value of write and fail if error.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1363850332-25297-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r-- | tools/perf/util/trace-event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h index 28ccde8ba20f..1978c398ad87 100644 --- a/tools/perf/util/trace-event.h +++ b/tools/perf/util/trace-event.h @@ -68,7 +68,7 @@ struct tracing_data { struct tracing_data *tracing_data_get(struct list_head *pattrs, int fd, bool temp); -void tracing_data_put(struct tracing_data *tdata); +int tracing_data_put(struct tracing_data *tdata); struct addr_location; |