OSDN Git Service

drm/i915: Show i915_gem_context owner in debugfs
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 13:53:39 +0000 (14:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 May 2016 14:29:27 +0000 (15:29 +0100)
commitd28b99ab8c812a582469f04a698081d495e4bd8f
treecc02ca845673706409a6cd5a28ef7a900074811e
parentc6aab9161a0343e63f44043cf22b6d67a3250143
drm/i915: Show i915_gem_context owner in debugfs

Print the context's owner (via the pid under file_priv) under debugfs.
In doing so, we must be careful that the filp is not accessed after it
is freed (notified via i915_gem_context_close).

v2: Mark the file_priv as closed.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1464098023-3294-6-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_gem_context.c