diff options
author | Steven Moreland <smoreland@google.com> | 2022-02-08 22:50:40 +0000 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2022-02-09 01:35:55 +0000 |
commit | cc565dc44e5b0fe527b1bff3d67f174167d20b08 (patch) | |
tree | d60a2f05f87414d8b827fd6cfe36cf2402de1243 | |
parent | d12d361a58bf97fc555ea47c8098907105fb068c (diff) | |
download | native-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.cpp | 2 |
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; } |