repro.c: plain Vulkan (VK_EXT_external_memory_dma_buf) imports of named
udmabufs of a memfd, from several threads, each keeping a window of imports
alive; every round counts the kernel's bufinfo entries of its name left after
every import was freed. Options add GPU copies, a busy queue, device
addresses and a lock around imports and frees. It needs only a C compiler and
libvulkan.so.1 (it uses the Vulkan headers where present, else declares the
few types it calls).
kernel-holds.bt: follows the dma-bufs named m2vleak* through the generic
PRIME and dma-buf paths (attach, map, PRIME import, handle add and remove,
GEM handle release, unmap, detach, GEM release, PRIME destroy, udmabuf
release) and prints, for those still alive at exit, which steps they went
through, attachments left, the GEM object's references at its handle's
close, and PRIME cache handles left.