diff options
| author | Frederic Weisbecker <[email protected]> | 2009-07-01 19:02:10 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-07-01 20:37:24 +0000 |
| commit | a92bef0f216bbf3d05c0c0709ea02e267f2b920e (patch) | |
| tree | e10737dada321c315588c1726f75ff2d87fecc39 /tools/perf/builtin-annotate.c | |
| parent | perf_counter: Ignore the nmi call frames in the x86-64 backtraces (diff) | |
| download | kernel-a92bef0f216bbf3d05c0c0709ea02e267f2b920e.tar.gz kernel-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 <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Anton Blanchard <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
