diff options
author | Colin Ian King <[email protected]> | 2016-08-12 22:44:56 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-08-15 17:06:19 -0300 |
commit | 0325862dc364d8af524bf2db53ef4360ed55b989 (patch) | |
tree | 4c307fc74ea114e1a97b78bb6365a6f61ca51e2f /tools/perf/util/trace-event-scripting.c | |
parent | 50de1a0c54cdbc69a6dbcbc323f53daf95a4050e (diff) |
perf probe: Check for dup and fdopen failures
dup and fdopen can potentially fail, so add some extra
error handling checks rather than assuming they always work.
Signed-off-by: Colin King <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Wang Nan <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Free resources when those functions (now being verified) fail ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions