perf tools: Add automatic remapping of Android libraries
authorMichael Lentine <mlentine@google.com>
Tue, 20 May 2014 09:48:50 +0000 (11:48 +0200)
committerJiri Olsa <jolsa@kernel.org>
Wed, 21 May 2014 13:03:25 +0000 (15:03 +0200)
commiteca8183699964579ca8a0b8d116bd1f4da0136f7
tree078bfe88e5c3fbe397c9ca0d4d8ab2e0ff63979d
parent21cfc5e10395eba795c0610cf3cf7f0a4f6f33ff
perf tools: Add automatic remapping of Android libraries

This patch automatically adjusts the path of MMAP records
associated with Android system libraries.

The Android system is organized with system libraries found in
/system/lib and user libraries in /data/app-lib. On the host system
(not running Android), system libraries can be found in the downloaded
NDK directory under ${NDK_ROOT}/platforms/${APP_PLATFORM}/arch-${ARCH}/usr/lib
and the user libraries are installed under libs/${APP_ABI} within
the apk build directory. This patch makes running the reporting
tools possible on the host system using the libraries from the NDK.

Signed-off-by: Michael Lentine <mlentine@google.com>
Reviewed-by: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1400579330-5043-3-git-send-email-eranian@google.com
[ fixed 'space required before the open parenthesis' checkpatch.pl errors ]
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/util/map.c