perf probe: Let probe_file__add_event return 0 if succeeded
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 26 Apr 2016 09:03:04 +0000 (18:03 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 16:14:58 +0000 (13:14 -0300)
commit6ed0720a74d90eea51284c07592369d45d56f1f7
tree4ce72676282c9453d466b970d9cf7b0eadba8e50
parente1ce726e1db2522b4848b3acffb7ece12439517c
perf probe: Let probe_file__add_event return 0 if succeeded

Since other methods return 0 if succeeded (or filedesc), let
probe_file__add_event() return 0 instead of the length of written bytes.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
Cc: Hemant Kumar <hemant@linux.vnet.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160426090303.11891.18232.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-file.c