History log of /frameworks/native/libs/binder/ProcessState.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ed1ffe06f3efc791d57ed2709bb5177f3067ece8 14-Apr-2017 Iliyan Malchev <malchev@google.com> binder: allow repeated invocations of initWithDriver

As long as the driver name is the same, calls to
ProcessState::initWithDriver() will succeed, returning the
already-created object.

Test: marlin

Change-Id: I87d5ca2a105becd8d4fa6fa85c00b879360229b3
Signed-off-by: Iliyan Malchev <malchev@google.com>
/frameworks/native/libs/binder/ProcessState.cpp
3206224672d0a86cdede609e83ccc985754fb6ec 10-Apr-2017 Iliyan Malchev <malchev@google.com> binder: add getDriverName()

Ass ProcessState::getDriverName() to retrieve the /dev node that
libbinder is initialized with in this process. This can be used
elsewhere to add debug code that is enabled for only one binder domain
or another.

Test: sailfish

Change-Id: I3ea9f0dcc97204508791bdeb70f790980be278a5
Signed-off-by: Iliyan Malchev <malchev@google.com>
/frameworks/native/libs/binder/ProcessState.cpp
55d871cc09b7493e2b7e5705ea9774fd5f4c626c 21-Mar-2017 Martijn Coenen <maco@google.com> Allow ProcessState to use another binder dev node.

Since we have different binder domains at different
/dev nodes now, processes using libbinder must be able
to select which /dev node they want to use. This is
achieved with a new ProcessState::initWithDriver() API,
which takes the /dev node to talk to as an argument.

Bug: 36052864
Test: system boots without issues
Change-Id: I5b3b13decf254ca0957665c91abac4b287e448c4
/frameworks/native/libs/binder/ProcessState.cpp
d86505e9ac91e0f0bbc381659f70cb1f7cb3176c 08-Mar-2017 Ganesh Mahendran <opensource.ganesh@gmail.com> Merge "libbinder: use sysconf(_SC_PAGESIZE) to get pagesize" am: b638bf8d3f am: f83403fdd2
am: 391becb8a7

Change-Id: I11546e02a736bd6c6ece606831462f7ef85c4ec4
6ac7fb5aca33fca100bdba279847561b32c3f9ac 03-Mar-2017 Ganesh Mahendran <opensource.ganesh@gmail.com> libbinder: use sysconf(_SC_PAGESIZE) to get pagesize

pagesize is not always 4KB, use sysconf(_SC_PAGESIZE) to get
real pagesize.

Change-Id: Ib2c82c3a842257601a5c304da3a1f0b07c6ab8c0
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
/frameworks/native/libs/binder/ProcessState.cpp
67ac00f7689d04bb617cba55b3adefd780391bac 04-Jan-2017 Greg Hartman <ghartman@google.com> Report binder versions on failure

BUG: 34053032
Test: foo
Change-Id: Ida43d037cc6cf70cd5f0e9f678db70d624c99285
/frameworks/native/libs/binder/ProcessState.cpp
23e469f5dcd20614f7fa0e562f5cde5f8cfe16ba 18-Aug-2016 Dmitriy Filchenko <dmitriyf@google.com> Merge "Remove unused include."
am: 5242fb42fb

Change-Id: Id3ccb5f3dfb9d2188b6e570eaaa6ba23438ae392
e3f8eba20e4cc32b409d70656f10a97fff840190 18-Aug-2016 Dmitriy Filchenko <dmitriyf@google.com> Remove unused include.

BUG: 29824203

Change-Id: Ied8ccb8c30632b41f6c6c3d848dc94d7b1e731e0
/frameworks/native/libs/binder/ProcessState.cpp
68a593e7fa07c947fef2c5de53c42e14ed630a8a 28-Apr-2016 Chih-Hung Hsieh <chh@google.com> resolve merge conflicts of 168dc86 to nyc-dev-plus-aosp

Change-Id: I1554cec6ea880a87921f723bc96972cb8e1d3c5c
e2347b7953f70232541bdc1b392230d6231aaeb9 26-Apr-2016 Chih-Hung Hsieh <chh@google.com> Fix google-explicit-constructor warnings.

Bug: 28341362
Change-Id: I0ce850de85e0de6a5472dd142f738856142db9ec
/frameworks/native/libs/binder/ProcessState.cpp
249f373defa993eb9c8358e4d2e0b620f2c10d57 16-Apr-2016 Colin Cross <ccross@android.com> Merge "Log when binder thread pool is starved" into nyc-dev
am: 43dcac7

* commit '43dcac7500833c465c417805adc4693c60c3bb5e':
Log when binder thread pool is starved

Change-Id: I420d31273aec69eab9d8e4faa10001ef48b17aa8
96e8322f4d11af8538d6d0db5f1a11338b8aee9d 15-Apr-2016 Colin Cross <ccross@android.com> Log when binder thread pool is starved

Log when the number of threads executing binder commands is equal to the
maximium size of the thread pool for >100ms.

Bug: 28201939
Change-Id: I892863d8a81c06e362d4ae18ab08485fdec3c0bb
/frameworks/native/libs/binder/ProcessState.cpp
aefcad150649c7974c8a2a8b1c724b6112fd354b 13-Apr-2016 Philip Cuadra <philipcuadra@google.com> Merge "Binder: add pid to thread name for binder threads." into nyc-dev
am: 9b9fc47

* commit '9b9fc47133756806e02bf2d0c8798b98be3ad968':
Binder: add pid to thread name for binder threads.

Change-Id: I2b9137cfbe6db90064d2b0bd61e8f516e182fcd2
a082fa8a6bd4303d5a5921133746f9e2856ab0d4 08-Apr-2016 Philip Cuadra <philipcuadra@google.com> Binder: add pid to thread name for binder threads.

Including the pid in the binder thread name improves attribution of
binder time in systraces.
Change-Id: I40461b6f98c51c6e5f0acc1c24d443d0e7109b69
/frameworks/native/libs/binder/ProcessState.cpp
ff405785386ed8bdee50c4afdc4a4f9a73bcb81e 09-Mar-2016 zhongjie <zhongjie.shi@intel.com> Release resources when repeating dlopen-dlcose.

When the libbinder.so is dlopen and dlclose many
times, we need to delete the pthread_key and
munmap the memory mapping.

Otherwise, it will crash as the leakage causes
the pthread_key or memory mapping surpass their
limit.

Change-Id: Ice64d4ef685c1f665350286f9e5ddf790beac236
Signed-off-by: zhongjie <zhongjie.shi@intel.com>
/frameworks/native/libs/binder/ProcessState.cpp
0fe7ce375ed6c9fcd86b8bb3a836bc37c9740831 24-Dec-2015 Nick Kralevich <nnk@google.com> More O_CLOEXEC

Change-Id: I31991ed089f395174857e86e509b8190ad98f92a
/frameworks/native/libs/binder/ProcessState.cpp
153008efb5a00ed3c18d588ce15f90d2442a9786 09-Jul-2015 Elliott Hughes <enh@google.com> am 9df25446: am 9bad590e: Merge "Binder on Windows? Unlikely."

* commit '9df254460b2dfd3db1132affc9489d0be01def23':
Binder on Windows? Unlikely.
4d2f4bba0d9fb72a7d3340e68ddaea448f2dc36e 09-Jul-2015 Elliott Hughes <enh@google.com> Binder on Windows? Unlikely.

Change-Id: I36c1bee4ed33b9b0d24109a6dbaefa0548dd5aa8
/frameworks/native/libs/binder/ProcessState.cpp
376b822728c582a9deb26ce339deb5204ae4d22e 14-Apr-2015 Wale Ogunwale <ogunwale@google.com> Added IPCThreadState::blockUntilThreadAvailable() method.

Will be used by the system_server watchdog to monitor the
availability of binder threads in the process to handle
incoming IPC requests.

Bug: 19297165
Change-Id: I39175f3869ad14da5620fddb47f454e6e4ee2b25
/frameworks/native/libs/binder/ProcessState.cpp
162ea0e9e8f3c293b7572bfff2671a5af5244032 28-Mar-2014 Narayan Kamath <narayan@google.com> Remove global variables from ProcessState.

These weren't really being used and they make it
very hard to reason about who looks at command line
arguments.

Processes started via app_process (this includes all
zygote forks and the system_server) can get information
about command line arguments from the AndroidRuntime
class, which is available via a call to
AndroidRuntime::getRuntime.

bug: 13647418

Change-Id: I6f92680c3619a68c6d4b0995db4cdc9adc788e36
/frameworks/native/libs/binder/ProcessState.cpp
01502981cddb69b9ab7e4bf8bc66366ae0eb7035 20-Mar-2014 Jesse Hall <jessehall@google.com> Merge "fix valgrind ioctl warning."
6f4f3ab36c5ed1df84eb3a9f7475f0ac42952f58 06-Feb-2014 Colin Cross <ccross@android.com> binder: fix all warnings

Fix warnings related to casting pointers to ints, using %d or %ld to
print size_t/ssize_t, and unused parameters.

Change-Id: I7a13ba83d402952989c1f795cd9e880a95b98d9e
/frameworks/native/libs/binder/ProcessState.cpp
78181df1efee04bb861893714d8b11a24243153f 18-Oct-2012 Jin Wei <wei.a.jin@intel.com> fix valgrind ioctl warning.

Initialize local variable to avoid syscall ioctl warning.

Change-Id: I33a90917856018a8527305bb362948ef03bd734c
Origin-Change-Id: I022ebce40b3774a815639a5af34bc7aeb2489936
Signed-off-by: Jin Wei <wei.a.jin@intel.com>
Signed-off-by: Jian Luo <jian.luo@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 62797
/frameworks/native/libs/binder/ProcessState.cpp
a7b0f04aaf7f04a9617dbbc839b1aaa6f20ca6d6 19-Jun-2013 Todd Poynor <toddpoynor@google.com> defaultServiceManager wait for service manager ready

If the service manager is not ready when we attempt to create a local
proxy, fail and retry.

Change-Id: I7d7300bc07cd70608793479aa3da282d066da7f6
/frameworks/native/libs/binder/ProcessState.cpp
e3e43b384e0603e5883b501cdb169641fab8fea2 08-Mar-2013 Mathias Agopian <mathias@google.com> rename binder services main thread to Binder_*

When a binder service's main thread joins the thread pool
it retains its name (whatever the exec name was), which is
very confusing in systrace.

we now rename that thread just like its friends in the
thread pool.

Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
/frameworks/native/libs/binder/ProcessState.cpp
1b80f793d2328dd94a151411a1cc3a676121ffc7 18-Apr-2012 Mathias Agopian <mathias@google.com> add set thread count

Change-Id: I70f02908d8362a465eb8a2a24356f6989847f7ba
/frameworks/native/libs/binder/ProcessState.cpp
e8db871de7b26bf4fe7ae8d400c4a2c503cfe3a2 17-Apr-2012 Mathias Agopian <mathias@google.com> double checked locking pattern is not safe on SMP

Change-Id: Ie6dd564bdcd45647cb4d62ab259462e3db112576
/frameworks/native/libs/binder/ProcessState.cpp
102d539a4c6e70ec2403bfd2bfef3a3373da15ac 28-Feb-2012 Glenn Kasten <gkasten@google.com> Shorten thread names

prctl(PR_SET_NAME) limits to 15 characters. Before we had names like
"Binder Thread #" and the counter was cut off :-( Also remove redundant
"thread" at end of name; it's always a thread.

Change-Id: I1f99c2730ba0787ed9b59c15914356cddf698e2f
/frameworks/native/libs/binder/ProcessState.cpp
e6f43ddce78d6846af12550ff9193c5c6fe5844b 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/157220

Bug: 5449033
Change-Id: Ic9c19d30693bd56755f55906127cd6bd7126096c
/frameworks/native/libs/binder/ProcessState.cpp
32397c1cd3327905173b36baa6fd1c579bc328ff 06-Jan-2012 Steve Block <steveblock@google.com> Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/157065

Bug: 5449033
Change-Id: I00a4b904f9449e6f93b7fd35eac28640d7929e69
/frameworks/native/libs/binder/ProcessState.cpp
6807e59e0ff943cc6225d46e3c33a8a7eae9b3d7 20-Oct-2011 Steve Block <steveblock@google.com> Rename (IF_)LOGV(_IF) to (IF_)ALOGV(_IF) DO NOT MERGE

See https://android-git.corp.google.com/g/#/c/143865

Bug: 5449033
Change-Id: I0122812ed6ff6f5b59fe4a43ab8bff0577adde0a
/frameworks/native/libs/binder/ProcessState.cpp
c2be743a9c366a17d64c6afb5a299664ddfcd32f 13-Jul-2011 Mike Lockwood <lockwood@android.com> Remove some #ifdef HAVE_ANDROID_OS that were needed for the simulator build

Change-Id: I13d9f251f86c05ae5405f37adbf6b8e9660935ba
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/native/libs/binder/ProcessState.cpp
e16986cae281f118ecd563c384b7f6e5a4b937b5 09-Jul-2011 Jeff Brown <jeffbrown@google.com> Eliminate single-process mode.
Bug: 5010576

Change-Id: Id450dc83efed4897d1e4ff451530fed14457aace
/frameworks/native/libs/binder/ProcessState.cpp
c0c1092183ceb38dd4d70d2732dd3a743fefd567 31-Oct-2009 Rebecca Schultz Zavin <rebecca@android.com> Modify the binder to request 1M - 2 pages instead of 1M. The backing store
in the kernel requires a guard page, so 1M allocations fragment memory very
badly. Subtracting a couple of pages so that they fit in a power of
two allows the kernel to make more efficient use of its virtual address space.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
/frameworks/native/libs/binder/ProcessState.cpp
c5b2c0bf8007562536b822eb060fc54a01f8e08b 20-May-2009 Mathias Agopian <mathias@google.com> move libbinder's header files under includes/binder
/frameworks/native/libs/binder/ProcessState.cpp
208059f67ed2dd9fa025e07fcb6954d3cb61c79e 19-May-2009 Mathias Agopian <mathias@google.com> checkpoint: split libutils into libutils + libbinder
/frameworks/native/libs/binder/ProcessState.cpp