[Intel-gfx] [PATCH 11/11] drm/i915: show contexts in debugfs

Ben Widawsky ben at bwidawsk.net
Tue Feb 14 22:09:18 CET 2012


Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_debugfs.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index ae73288..7a0170c 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1355,6 +1355,7 @@ static int i915_context_status(struct seq_file *m, void *unused)
 	struct drm_info_node *node = (struct drm_info_node *) m->private;
 	struct drm_device *dev = node->minor->dev;
 	drm_i915_private_t *dev_priv = dev->dev_private;
+	struct drm_i915_gem_context *context;
 	int ret;
 
 	ret = mutex_lock_interruptible(&dev->mode_config.mutex);
@@ -1373,6 +1374,11 @@ static int i915_context_status(struct seq_file *m, void *unused)
 		seq_printf(m, "\n");
 	}
 
+	list_for_each_entry(context, &dev_priv->context_list, context_link) {
+		seq_printf(m, "logical context %d ", context->id);
+		describe_obj(m, context->obj);
+		seq_printf(m, "\n");
+	}
 	mutex_unlock(&dev->mode_config.mutex);
 
 	return 0;
-- 
1.7.9




More information about the Intel-gfx mailing list