| commit | adff7981ff38d710e1c7ed22847606a7632fefe1 | [log] [tgz] |
|---|---|---|
| author | Namhyung Kim <namhyung@kernel.org> | Sat Jan 10 19:21:11 2015 +0900 |
| committer | Namhyung Kim <namhyung@kernel.org> | Sat Jan 10 19:29:30 2015 +0900 |
| tree | 3392264788cd9396ef663a1c374aa0adf2437f8a | |
| parent | 817ed8d4bcf55243ff9a28ca41847dcea77e113f [diff] |
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. Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org>