perf tools: Use kmod_path__parse for machine__new_dso
authorJiri Olsa <jolsa@kernel.org>
Tue, 17 Feb 2015 16:29:57 +0000 (17:29 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 21 Mar 2015 17:58:07 +0000 (14:58 -0300)
commitca33380adf74afb985bf7aab09ec46707a5d2d57
tree802d8e661a20c6d59867703140865dfd98d5db9c
parentda17ea33e5a5d0c5226a37c375575d689f6a741b
perf tools: Use kmod_path__parse for machine__new_dso

Using kmod_path__parse to get the module name and update the dso short
name within machine__new_dso function.

This way it's done only first time when dso is created, unlike the
current way when we update it all the time we process memory map of the
kernel module.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-8gjmt1ggf5ls1xkk7qi2ko4k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c