Android emulator opengl tracing
Jakk Wong
jakk.wong at gmail.com
Sun Jan 13 08:59:03 PST 2013
Hi,
I am trying to trace opengl calls similarly as mentioned in this post -
http://lists.freedesktop.org/archives/apitrace/2012-October/000498.html.
Except I am using an android emulator with api level 15 (ice cream
sandwich) and armeabi-v7a image. I am able to change the init.rc file and
rebuild the ramdisk.img but it doesn't seem like I can set the LD_PRELOAD
environment flag since it won't boot whenever I assign a path to it under
service zygote section. I know that there are additional information in the
README about using LD_ENVIRONMENT_PATH instead of LD_PRELOAD for the
android emulator but I am a bit unsure for non-standalone apps whether this
is the correct procedure to follow. If so, I am just wondering what I
should set the TRACE_LIBGL variable to since I couldn't find libGL.so.1 in
the android emulator. I found that there are however other GL related files
in the emulator in /system/lib directory -
/system/lib/libGLESv2.so
/system/lib/libGLESv1_enc.so
/system/lib/libGLESv2_dbg.so
/system/lib/libGLESv2_enc.so
/system/lib/libGLESv1_CM.so
/system/lib/egl/libGLESv1_CM_emulation.so
/system/lib/egl/libGLESv2_emulation.so
/system/lib/egl/libGLES_android.so
Also, if using LD_ENVIRONMENT_PATH is the right step, I was thinking of
first uploading egltrace.so to /data in emulator, symlinking it to create
libGL.so, libGL.so.1 and libGL.so.1.2 (or something equivalent for
android), and then modifying init.rc so that it would have export
LD_ENVIRONMENT_PATH=/data:$LD_ENVIRONMENT_PATH and export
TRACE_LIBGL=</path/to/file/I/should/set> under service zygote section.
Would anyone happen to have any insight regarding this? Any help is greatly
appreciated. Thanks so much!
Best,
Jakk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/apitrace/attachments/20130113/d6cc2585/attachment.html>
More information about the apitrace
mailing list