perf tests vmlinux-kallsyms: Use map__for_each_symbol() instead of open coded equivalent
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 25 Apr 2018 15:32:25 +0000 (12:32 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Apr 2018 16:47:12 +0000 (13:47 -0300)
commitd05b861e6da27ccb0d1b882f240890b0ed40adff
tree4de668ddfc0e258eab801a33d7e2ab3f5e7bc9c9
parent3cd666b5017cfc9cc258fe8a2d410397f42856bf
perf tests vmlinux-kallsyms: Use map__for_each_symbol() instead of open coded equivalent

We had this much shorter map__for_each_symbol() helper for ages, use it
and kill one more map_type use outside the code, in the tools.

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