perf tools: Make find_vdso_map() more modular

In preparation for checking that the vectors page on the ARM
architecture, refactor the find_vdso_map() function to accept finding an
arbitrary string and create a dedicated helper function for that under
util/find-map.c and update the filename to find-map.c and all references
to it: perf-read-vdso.c and util/vdso.c.

Signed-off-by: Florian Fainelli <>
Acked-by: Jiri Olsa <>
Cc: Alexander Shishkin <>
Cc: Chris Healy <>
Cc: Greg Kroah-Hartman <>
Cc: Kim Phillips <>
Cc: Lucas Stach <>
Cc: Namhyung Kim <>
Cc: Peter Zijlstra <>
Cc: Ravi Bangoria <>
Cc: Russell King <>
Cc: Thomas Gleixner <>
Cc: Thomas Richter <>
Signed-off-by: Arnaldo Carvalho de Melo <>
4 files changed