OSDN Git Service

drm/i915: Make engine state pretty-printer header configurable
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Dec 2017 01:23:00 +0000 (01:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Dec 2017 18:48:34 +0000 (18:48 +0000)
commit0db18b17c8bca02638dcdc55dd458e04e18947b1
treebc373dfa75db2a9fcba202f8effb3d97951e9710
parente8a70cab253cf4c54855ffc2b1997e501f03e2a4
drm/i915: Make engine state pretty-printer header configurable

Pass in a format string (and args) to specify the header to be emitted
along with the engine state when pretty-printing. This allows the header
to be emitted inside the drm_printer stream, so sharing the same prefix
and output characteristics (e.g. debug level and filtering).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171208012303.25504-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.h
drivers/gpu/drm/i915/selftests/intel_hangcheck.c