summaryrefslogtreecommitdiffstats
path: root/drivers/android/binder_alloc.h
diff options
context:
space:
mode:
authorMartijn Coenen <maco@android.com>2017-11-13 10:06:56 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 16:33:03 +0100
commit8d9a3ab6c17e9473ab31484da382914537e60152 (patch)
tree02c6929f87b150c243e947359ec90ba857a42962 /drivers/android/binder_alloc.h
parent0f5eb1545907edeea7672a9c1652c4231150ff22 (diff)
downloadop-kernel-dev-8d9a3ab6c17e9473ab31484da382914537e60152.zip
op-kernel-dev-8d9a3ab6c17e9473ab31484da382914537e60152.tar.gz
ANDROID: binder: show high watermark of alloc->pages.
Show the high watermark of the index into the alloc->pages array, to facilitate sizing the buffer on a per-process basis. Signed-off-by: Martijn Coenen <maco@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android/binder_alloc.h')
-rw-r--r--drivers/android/binder_alloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/android/binder_alloc.h b/drivers/android/binder_alloc.h
index 2dd33b6..0b14530 100644
--- a/drivers/android/binder_alloc.h
+++ b/drivers/android/binder_alloc.h
@@ -92,6 +92,7 @@ struct binder_lru_page {
* @pages: array of binder_lru_page
* @buffer_size: size of address space specified via mmap
* @pid: pid for associated binder_proc (invariant after init)
+ * @pages_high: high watermark of offset in @pages
*
* Bookkeeping structure for per-proc address space management for binder
* buffers. It is normally initialized during binder_init() and binder_mmap()
@@ -112,6 +113,7 @@ struct binder_alloc {
size_t buffer_size;
uint32_t buffer_free;
int pid;
+ size_t pages_high;
};
#ifdef CONFIG_ANDROID_BINDER_IPC_SELFTEST
OpenPOWER on IntegriCloud