summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-evlist.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2015-01-10 11:33:48 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-01-16 21:49:28 +0100
commit7949ba1fa249caa7e611abb8d92f40b0a46c8617 (patch)
tree51b3a6b4ff09b3b45c318174d69ef15ae5c5614b /tools/perf/builtin-evlist.c
parentperf/x86/intel: Fix bug for "cycles:p" and "cycles:pp" on SLM (diff)
downloadlinux-7949ba1fa249caa7e611abb8d92f40b0a46c8617.tar.xz
linux-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 <namhyung@kernel.org> Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1420886028-15135-4-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-evlist.c')
0 files changed, 0 insertions, 0 deletions