perf probe: Add error checks to offline probe post-processing
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 11 Jan 2017 06:00:47 +0000 (15:00 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Jan 2017 18:35:25 +0000 (15:35 -0300)
commit3e96dac7c956089d3f23aca98c4dfca57b6aaf8a
tree56f609d2bf489d5467c7ab17b2ce6cd174386070
parentd2d4edbebe07ddb77980656abe7b9bc7a9e0cdf7
perf probe: Add error checks to offline probe post-processing

Add error check codes on post processing and improve it for offline
probe events as:

 - post processing fails if no matched symbol found in map(-ENOENT)
   or strdup() failed(-ENOMEM).

 - Even if the symbol name is the same, it updates symbol address
   and offset.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/148411443738.9978.4617979132625405545.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c