]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit430b44d26994d2f52e187917e5b6c12358a884b6
tree078bfe88e5c3fbe397c9ca0d4d8ab2e0ff63979d
parent67969b2c0e6d47de9892a2c4bd7f8ff402aa92cf
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