]> Git Repo - linux.git/commit
drm: Track drm_mm allocators and show leaks on shutdown
authorChris Wilson <[email protected]>
Mon, 31 Oct 2016 09:08:06 +0000 (09:08 +0000)
committerDaniel Vetter <[email protected]>
Tue, 8 Nov 2016 09:35:29 +0000 (10:35 +0100)
commit5705670d0463423337c82d00877989e7df8b169d
tree913c2aba5107628f8f90295f8e68ddca0cfbf385
parent55edf41b699bcb31dcf45082d99e91b7e217206e
drm: Track drm_mm allocators and show leaks on shutdown

We can use the kernel's stack tracer and depot to record the allocation
site of every drm_mm user. Then on shutdown, as well as warning that
allocated nodes still reside with the drm_mm range manager, we can
display who allocated them to aide tracking down the leak.

v2: Move Kconfig around so it lies underneath the DRM options submenu.

Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/Kconfig
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h
This page took 0.06304 seconds and 4 git commands to generate.