perf machine: Move kernel mmap name into struct machine
commit8c7f1bb37b29f140e08175132f3abb4d5ad229fc
authorJiri Olsa <jolsa@kernel.org>
Thu, 15 Feb 2018 12:26:30 +0000 (15 13:26 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 16 Feb 2018 17:25:57 +0000 (16 14:25 -0300)
tree49903596bb07b75ed158e94b264ea8c79096a74b
parent81f981d7ec43ed93901c12b6521d39b06f1ed3d3
perf machine: Move kernel mmap name into struct machine

It simplifies and centralizes the code. The kernel mmap name is set for
machine type, which we know from the beginning, so there's no reason to
generate it every time we need it.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20180215122635.24029-5-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/build-id.c
tools/perf/util/event.c
tools/perf/util/machine.c
tools/perf/util/machine.h
tools/perf/util/symbol.c