From 9ca97158a7297fbdcf86635adf81feb2a3385055 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 6 Jun 2013 15:26:13 -0700 Subject: [PATCH] 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 --- wrappers/trace.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/wrappers/trace.cpp b/wrappers/trace.cpp index eb68934..d79b11b 100644 --- a/wrappers/trace.cpp +++ b/wrappers/trace.cpp @@ -98,7 +98,6 @@ isTracingEnabled(void) os::String proc_name; proc_name = getZygoteProcessName(); - proc_name.trimDirectory(); __system_property_get("debug.apitrace.procname", target_proc_name); enabled = !strcmp(target_proc_name, proc_name); -- 2.45.2