summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-02-17 17:31:18 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-03-23 16:46:51 +0100
commitbc84f464862489e687c98dea1a8ff20dc4413f93 (patch)
tree4b9b11a9c897750695ceda0fc91c25a6c552098d /tools/perf/util/evsel.c
parentperf tools: Remove is_kmodule_extension function (diff)
downloadlinux-bc84f464862489e687c98dea1a8ff20dc4413f93.tar.xz
linux-bc84f464862489e687c98dea1a8ff20dc4413f93.zip
perf tools: Try to lookup kernel module map before creating one
Currently we assume machine__new_module is called only once for each module so we create its map&dso unconditionally. However it's possible that it's called multiple times for same module. Like for perf record: 1) via machine__create_module during machine init 2) via kernel MMAP event processing Trying to lookup kernel module map before creating one. 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-kx76xfqpnrpho5hdaapbqm09@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.c')
0 files changed, 0 insertions, 0 deletions