summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2022-02-08 22:50:40 +0000
committerSteven Moreland <smoreland@google.com>2022-02-09 01:35:55 +0000
commitcc565dc44e5b0fe527b1bff3d67f174167d20b08 (patch)
treed60a2f05f87414d8b827fd6cfe36cf2402de1243
parentd12d361a58bf97fc555ea47c8098907105fb068c (diff)
downloadnative-cc565dc44e5b0fe527b1bff3d67f174167d20b08.tar.gz
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
-rw-r--r--libs/binder/ProcessState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 269b0861e1..1821729cfa 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -368,7 +368,7 @@ String8 ProcessState::makeBinderThreadName() {
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;
}