]> git.cworth.org Git - apitrace/commit
egltrace/android: Fix tracing Zygote processes (v2)
authorChad Versace <chad.versace@linux.intel.com>
Thu, 6 Jun 2013 22:26:13 +0000 (15:26 -0700)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 11 Jun 2013 19:16:13 +0000 (20:16 +0100)
commit9ca97158a7297fbdcf86635adf81feb2a3385055
treea0d26424aedf11e408cffbc3ba9730c18fdec47e
parent4fcb5ddb5affc56f43ce055071cee3f826e50904
egltrace/android: Fix tracing Zygote processes (v2)

Fixes egltrace.so on Android 4.2 x86.

Do not call trimDirectory() on the proc_name of Zygote processes, because
a Zyogote process name never contains a path separator. The proc_name of
a Zygote process is the application's package name (such as
com.exampe.myapp) because ActivityManager rewrites argv[0].

There exists an undiagnosed problem with trimDirectory, but I have been
unsuccessful diagnosing it. On the other hand, the call to trimDirectory
isn't needed and its removal fixes the bug's symptoms.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
wrappers/trace.cpp