]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a386a84fe028b16b5d61f587406e40def6311a5
tree802d8e661a20c6d59867703140865dfd98d5db9c
parent8e382ac4c05212a25dadc6d959dfc6b08ba62a7c
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