intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] drm/i915/tracepoints: Tidy request event class
@ 2017-02-21  9:13 Tvrtko Ursulin
  2017-02-21  9:13 ` [PATCH 2/8] drm/i915/tracepoints: Adjust i915_gem_ring_dispatch Tvrtko Ursulin
                   ` (9 more replies)
  0 siblings, 10 replies; 26+ messages in thread
From: Tvrtko Ursulin @ 2017-02-21  9:13 UTC (permalink / raw)
  To: Intel-gfx

From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>

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>
---
 drivers/gpu/drm/i915/i915_trace.h | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
index 7a547cdfc381..4454872d487f 100644
--- a/drivers/gpu/drm/i915/i915_trace.h
+++ b/drivers/gpu/drm/i915/i915_trace.h
@@ -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,
-- 
2.9.3

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2017-02-21 13:22 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-21  9:13 [PATCH 1/8] drm/i915/tracepoints: Tidy request event class Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 2/8] drm/i915/tracepoints: Adjust i915_gem_ring_dispatch Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 3/8] drm/i915/tracepoints: Tidy i915_gem_request_wait_begin Tvrtko Ursulin
2017-02-21  9:50   ` Chris Wilson
2017-02-21 10:10     ` Tvrtko Ursulin
2017-02-21 10:16       ` Chris Wilson
2017-02-21 11:00         ` [PATCH v4 " Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 4/8] drm/i915/tracepoints: Remove unused i915_gem_request_complete Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 5/8] drm/i915/tracepoints: Add request submit and execute tracepoints Tvrtko Ursulin
2017-02-21  9:41   ` Chris Wilson
2017-02-21 10:14     ` Tvrtko Ursulin
2017-02-21 10:23       ` Chris Wilson
2017-02-21 11:01         ` [PATCH v2 " Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 6/8] drm/i915/tracepoints: Rename i915_gem_request_notify Tvrtko Ursulin
2017-02-21  9:43   ` Chris Wilson
2017-02-21  9:13 ` [PATCH 7/8] drm/i915/tracepoints: Add backend level request in and out tracepoints Tvrtko Ursulin
2017-02-21  9:47   ` Chris Wilson
2017-02-21 10:22     ` Tvrtko Ursulin
2017-02-21 10:39       ` Chris Wilson
2017-02-21 11:03         ` [PATCH v4 " Tvrtko Ursulin
2017-02-21  9:13 ` [PATCH 8/8] drm/i915/tracepoints: Add hw_id to context tracepoints Tvrtko Ursulin
2017-02-21  9:51 ` [PATCH 1/8] drm/i915/tracepoints: Tidy request event class Chris Wilson
2017-02-21 12:32   ` Chris Wilson
2017-02-21  9:52 ` ✓ Fi.CI.BAT: success for series starting with [1/8] " Patchwork
2017-02-21 11:52 ` ✓ Fi.CI.BAT: success for series starting with [1/8] drm/i915/tracepoints: Tidy request event class (rev4) Patchwork
2017-02-21 13:22   ` Tvrtko Ursulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).