perf machine: No need to check if kernel module maps pre-exist
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 14 Nov 2019 15:28:41 +0000 (12:28 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 18 Nov 2019 16:01:50 +0000 (13:01 -0300)
commita94ab91a54c63b9101715b03171219279cc0ee26
tree4edeba4abe5e07f88082dab4e834f208f7b90b87
parent6e0a9b3dfaaf93476b34825e53c4ec065267081e
perf machine: No need to check if kernel module maps pre-exist

We'only populating maps for kernel modules either from perf.data file
PERF_RECORD_MMAP records or when parsing /proc/modules, so there is no
need to first look if we already have those module maps in the list,
that would mean the kernel has duplicate entries.

So ditch one use of looking up maps by name.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-gnzjg2hhuz6jnrw91m35059y@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/symbol.c