ProcessState: thread name includes driver
Disambiguate /dev/binder and /dev/vndbinder thread names.
Bug: email thread
Test: ps -AT (and see important parts in comm)
Change-Id: I898eeb091dba08bb37ffbf8cd9c03f3a21a53c90
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 269b086..1821729 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -368,7 +368,7 @@
int32_t s = android_atomic_add(1, &mThreadPoolSeq);
pid_t pid = getpid();
String8 name;
- name.appendFormat("Binder:%d_%X", pid, s);
+ name.appendFormat("%d_%X:%s", pid, s, mDriverName.c_str());
return name;
}