summaryrefslogtreecommitdiffstats
path: root/include/drm
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-12-20 10:35:44 +0100
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-12-20 15:30:17 +0100
commit8d44e9e69aacecd522bb2797eb2febc5c6c46558 (patch)
tree6bfeb81401e996cbb2dc431f9fcca7f73f99cb1a /include/drm
parent48c9571c34b153abc1c4f2b431fa74490b671943 (diff)
downloadtalos-op-linux-8d44e9e69aacecd522bb2797eb2febc5c6c46558.tar.gz
talos-op-linux-8d44e9e69aacecd522bb2797eb2febc5c6c46558.zip
drm/framebuffer: Print task that allocated the fb in debug info.
This is is very useful to finding sources of leaked framebufers. The fbcon fb is annotated with [fbcon], to give it a better name than kworker. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171220093545.613-3-maarten.lankhorst@linux.intel.com Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_framebuffer.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
index dccb897951ba..c50502c656e5 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -121,6 +121,12 @@ struct drm_framebuffer {
* @base: base modeset object structure, contains the reference count.
*/
struct drm_mode_object base;
+
+ /**
+ * @comm: Name of the process allocating the fb, used for fb dumping.
+ */
+ char comm[TASK_COMM_LEN];
+
/**
* @format: framebuffer format information
*/
OpenPOWER on IntegriCloud