diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-07-01 21:02:10 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-07-01 22:37:24 +0200 |
commit | a92bef0f216bbf3d05c0c0709ea02e267f2b920e (patch) | |
tree | e10737dada321c315588c1726f75ff2d87fecc39 /tools/perf/builtin-top.c | |
parent | perf_counter: Ignore the nmi call frames in the x86-64 backtraces (diff) | |
download | linux-a92bef0f216bbf3d05c0c0709ea02e267f2b920e.tar.xz linux-a92bef0f216bbf3d05c0c0709ea02e267f2b920e.zip |
perf stat: Handle pipe read failures in perf stat
Building builtin-stat.c reports the following errors:
cc1: warnings being treated as errors
builtin-stat.c: In function ‘run_perf_stat’:
builtin-stat.c:242: erreur: ignoring return value of ‘read’, declared with attribute warn_unused_result
builtin-stat.c:255: erreur: ignoring return value of ‘read’, declared with attribute warn_unused_result
make: *** [builtin-stat.o] Erreur 1
This patch handles the possible pipe read failures.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Anton Blanchard <anton@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1246474930-6088-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-top.c')
0 files changed, 0 insertions, 0 deletions