Android emulator opengl tracing

José Fonseca jose.r.fonseca at gmail.com
Sun Jan 13 13:57:03 PST 2013


I don't know LD_ENVIRONMENT_PATH -- I think you mean LD_LIBRARY_PATH.

Indeed the README recommends LD_LIBRARY_PATH instead of LD_PRELOAD for
Android GPU, but this only applies when tracing the emulator from the
Linux host -- it does not apply to tracing inside the emulator. I hope
this makes sense.

Jose

On Sun, Jan 13, 2013 at 8:59 AM, Jakk Wong <jakk.wong at gmail.com> wrote:
> 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
>
> _______________________________________________
> apitrace mailing list
> apitrace at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/apitrace
>


More information about the apitrace mailing list