Re: [RFC v2 dma-buf 0/3] Improve the dma-buf tracking

2019-03-24 Thread Joel Fernandes
On Thu, Mar 21, 2019 at 07:51:32PM -0700, 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 debug

[RFC v2 dma-buf 0/3] Improve the dma-buf tracking

2019-03-24 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, bu