Re: [PATCH v5 0/3] Improve the dma-buf tracking

2019-06-14 Thread Sumit Semwal
Hi Chenbo, On Fri, 14 Jun 2019 at 04:04, Chenbo Feng wrote: > > Currently, all dma-bufs share the same anonymous inode. While we can count > how many dma-buf fds or mappings a process has, we can't get the size of > the backing buffers or tell if two entries point to the same dma-buf. And > in

[PATCH v5 0/3] Improve the dma-buf tracking

2019-06-13 Thread Chenbo Feng
Currently, all dma-bufs share the same anonymous inode. While we can count how many dma-buf fds or mappings a process has, we can't get the size of the backing buffers or tell if two entries point to the same dma-buf. And in debugfs, we can get a per-buffer breakdown of size and reference count,