dma-buf: introduce dma-buf trace
authorhyesoo.yu <hyesoo.yu@samsung.com>
Fri, 29 Jun 2018 00:56:53 +0000 (09:56 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:01 +0000 (20:23 +0300)
commit213f7ad076747266760197745aa16c6aab706c2c
tree30c5b43317832fab1fa8140459baf63541a7a894
parenta4cecf00db31778e2ed98649af660acbe8934cbc
dma-buf: introduce dma-buf trace

We introduce the concept to get information about
what process has allocated and used the dmabuf.

The reference is registered and released by the user.
This information is supported by debugfs with pss.

The temporary reference is always registered
by allocation to indicate the user to request allocation,
and this reference is deleted when user requests
a reference explicitly.

The reference ensure to be released when the buffer
is removed or the user process of handle is exited.

Change-Id: I4c147ad91058cf04b81f51753cbefcc420ec8389
Signed-off-by: hyesoo.yu <hyesoo.yu@samsung.com>
drivers/dma-buf/Kconfig
drivers/dma-buf/Makefile
drivers/dma-buf/dma-buf-trace.c [new file with mode: 0644]
drivers/dma-buf/dma-buf-trace.h [new file with mode: 0644]
drivers/dma-buf/dma-buf.c
include/uapi/linux/dma-buf.h