]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b52cc74ea6cecb660af36265707410a96903e4f
tree56f609d2bf489d5467c7ab17b2ce6cd174386070
parent5346883b76961f1b9026155d337efe021ffb594b
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