diff options
| author | Namhyung Kim <[email protected]> | 2015-01-10 10:33:48 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2015-01-16 20:49:28 +0000 |
| commit | 7949ba1fa249caa7e611abb8d92f40b0a46c8617 (patch) | |
| tree | 51b3a6b4ff09b3b45c318174d69ef15ae5c5614b /tools/perf/builtin-annotate.c | |
| parent | perf/x86/intel: Fix bug for "cycles:p" and "cycles:pp" on SLM (diff) | |
| download | kernel-7949ba1fa249caa7e611abb8d92f40b0a46c8617.tar.gz kernel-7949ba1fa249caa7e611abb8d92f40b0a46c8617.zip | |
perf probe: Propagate error code when write(2) failed
When it failed to write probe commands to the probe_event file in
debugfs, it needs to propagate the error code properly. Current code
blindly uses the return value of the write(2) so it always uses
-1 (-EPERM) and it might confuse users.
Signed-off-by: Namhyung Kim <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
