]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/i915/tracepoints: Tidy request event class
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 21 Feb 2017 09:13:43 +0000 (09:13 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 21 Feb 2017 13:17:42 +0000 (13:17 +0000)
At the moment only the global seqno is logged which is not set
until the request is ready for submission.

Add the per-contex seqno and the context hardware id which are
both interesting data points.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_trace.h

index 7a547cdfc381baea55e4d11c68ffb00e5a584e25..4454872d487f50e39c73ac9fad39ba1117f99642 100644 (file)
@@ -451,18 +451,23 @@ DECLARE_EVENT_CLASS(i915_gem_request,
 
            TP_STRUCT__entry(
                             __field(u32, dev)
+                            __field(u32, ctx)
                             __field(u32, ring)
                             __field(u32, seqno)
+                            __field(u32, global)
                             ),
 
            TP_fast_assign(
                           __entry->dev = req->i915->drm.primary->index;
+                          __entry->ctx = req->ctx->hw_id;
                           __entry->ring = req->engine->id;
-                          __entry->seqno = req->global_seqno;
+                          __entry->seqno = req->fence.seqno;
+                          __entry->global = req->global_seqno;
                           ),
 
-           TP_printk("dev=%u, ring=%u, seqno=%u",
-                     __entry->dev, __entry->ring, __entry->seqno)
+           TP_printk("dev=%u, ring=%u, ctx=%u, seqno=%u, global=%u",
+                     __entry->dev, __entry->ring, __entry->ctx, __entry->seqno,
+                     __entry->global)
 );
 
 DEFINE_EVENT(i915_gem_request, i915_gem_request_add,