<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 3, 2013 at 6:24 PM, Alexander Monakov <span dir="ltr"><<a href="mailto:amonakov@ispras.ru" target="_blank">amonakov@ispras.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<div class="im"><br>
On Thu, May 2, 2013 at 3:13 AM, Rajib Nath <<a href="mailto:rknath@ucsd.edu">rknath@ucsd.edu</a>> wrote:<br>
> We have changed the init.rc file to preload egltrace.so before zygote<br>
<br>
</div>You didn't really need to do that.<br>
<div class="im"><br>
> adb shell am start -a android.intent.action.MAIN -n<br>
> com.imangi.templerun2/com.unity3d.player.UnityPlayerNativeActivity<br>
<br>
</div>Can you explain how to obtain proper "am start" incantations for arbitrary apps?<br>
<div class="im"><br>
> The app gets started. However we always get a empty tracefile.<br>
<br>
</div>The problem here is that Unity3D loads OpenGL libraries dynamically<br>
via dlopen, so the egltrace.so interposer needs to interpose dlopen.<br>
The attached patch should fix it for you.<br>
<br>
Jose, can you have a look at the patch and consider for inclusion?<br>
I've decided to keep the _dlopen name as is to minimize noise in the<br>
patch. Thanks.<br>
<span class="HOEnZb"><font color="#888888"><br>
Alexander<br>
</font></span><br>_______________________________________________<br>
apitrace mailing list<br>
<a href="mailto:apitrace@lists.freedesktop.org">apitrace@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/apitrace" target="_blank">http://lists.freedesktop.org/mailman/listinfo/apitrace</a><br>
<br></blockquote></div><br></div><div class="gmail_extra" style>Pushed, with cosmetic changes. Thanks.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Jose</div></div>