perf symbols: kallsyms__delta() needs the kmap, not the map
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Apr 2018 18:47:13 +0000 (15:47 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Apr 2018 18:47:13 +0000 (15:47 -0300)
commit019c6820d540d67608018238d91e57447ca7060f
tree487304bf1e22d77a064cf289fc9a4f8a4ba54958
parent333cc76c9df9ee70f664dc809607e8223f5a629a
perf symbols: kallsyms__delta() needs the kmap, not the map

It was only using the map to obtain its kmap, so do the validation in
its called, __dso__load_kallsyms() and pass the kmap, that will be used
in the following patches in similar simplifications.

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-u6p9hbonlqzpl6o1z9xzxd75@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol.c