]> git.baikalelectronics.ru Git - kernel.git/commit
perf probe: Fix to show correct error string
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Tue, 4 Oct 2011 10:45:04 +0000 (19:45 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 10 Oct 2011 19:13:23 +0000 (15:13 -0400)
commit99aae7618617e83f835b53c96ffd540aa5b85a43
tree8a1f3397210cc2e8ebb223f7a2bd1fec642a6246
parent15001a8d715d2bdda2faffe0cd17343d36f2a699
perf probe: Fix to show correct error string

Fix perf probe to show correct error string when it
fails to delete an event. The write(2) returns -1
if failed, and errno stores real error number.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: stable@kernel.org
Link: http://lkml.kernel.org/r/20111004104504.14591.41266.stgit@fedora15
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/perf/util/probe-event.c