From: Namhyung Kim Date: Sat, 10 Jan 2015 10:33:48 +0000 (+0900) Subject: perf probe: Propagate error code when write(2) failed X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~264^2^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7949ba1fa249caa7e611abb8d92f40b0a46c8617;p=pandora-kernel.git 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 Acked-by: Masami Hiramatsu Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Masami Hiramatsu Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1420886028-15135-4-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed