dma-buf: fence debugging
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 31 Mar 2017 10:00:42 +0000 (11:00 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.com>
Fri, 31 Mar 2017 15:52:22 +0000 (17:52 +0200)
commit5eb2c72c8acc3f84c85f9d504b87f25f78ef0eb0
tree4a3b3cdf9fb08d0b62376e6ffebe65acd209706a
parentb121b051d14cc6e4e799e96e9c06c55989f9e073
dma-buf: fence debugging

Add debugfs output to report shared and exclusive fences on a dma_buf
object.  This produces output such as:

Dma-buf Objects:
size    flags   mode    count   exp_name
08294400        00000000        00000005        00000005        drm
        Exclusive fence: etnaviv 134000.gpu signalled
        Attached Devices:
        gpu-subsystem
Total 1 devices attached

Total 1 objects, 8294400 bytes

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Link: http://patchwork.freedesktop.org/patch/msgid/E1cttMI-00068z-3X@rmk-PC.armlinux.org.uk
drivers/dma-buf/dma-buf.c