Messages in this thread | | | Date | Mon, 19 Jan 2015 10:23:50 +0800 | From | Greg KH <> | Subject | Re: [PATCH 2/2] staging: android: ion: Add pss info for each ion_client |
| |
On Mon, Jan 19, 2015 at 10:00:25AM +0800, Feng Tang wrote: > In real ION buffer usage, many of the ion buffer are shared > by several clients(imported and exported), and current ion > debugfs only provides size of all buffers a client may use. > This patch will considers the sharing and adds a "pss" info > for each ion_client, which will help on profiling the ion > memory usage. > > Actually we can do more aggressively in android world, in > which the "surfaceflinger" is a main proxy to help other > apps to do the ion buffer allocation, and we can consider > this and extract "surfaceflinger" related size out. And > this could be the next step. > > Signed-off-by: Feng Tang <feng.tang@intel.com> > --- > drivers/staging/android/ion/ion.c | 25 +++++++++++++++++-------- > 1 file changed, 17 insertions(+), 8 deletions(-)
I really need others to review and test this with their systems before I can accept it. So I'll have to wait for an ack from John or Colin or someone else...
thanks,
greg k-h
| |