perf machine: Remove needless map_type from machine__load_vmlinux_path()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2018 15:18:11 +0000 (12:18 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Apr 2018 16:47:11 +0000 (13:47 -0300)
commit1d1a2654fffe1e5a80479ed4b6202467d2d0db46
tree7481062b1199ff98e35c5976a1c21166d47351fb
parent329f0adef39aedb8ac4be279c3394f32b53b1a88
perf machine: Remove needless map_type from machine__load_vmlinux_path()

Since it uses machine__kernel_map() and this function always returns the
MAP__FUNCTION map, it doesn't make sense to call it with MAP__VARIABLE.

And also this is a step in the direction of nuking the MAP__{FUNCTION,VARIABLE}
split.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-0h3eof3kx3kq32ixg5fquf3p@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/vmlinux-kallsyms.c
tools/perf/util/machine.c
tools/perf/util/machine.h