@@ -691,6 +691,8 @@ DECLARE_EVENT_CLASS(i915_request_hw,
__field(u32, seqno)
__field(u32, global_seqno)
__field(u32, port)
+ __field(u32, prio)
+ __field(u32, completed)
),
TP_fast_assign(
@@ -701,12 +703,15 @@ DECLARE_EVENT_CLASS(i915_request_hw,
__entry->seqno = rq->fence.seqno;
__entry->global_seqno = rq->global_seqno;
__entry->port = port;
+ __entry->prio = rq->sched.attr.priority;
+ __entry->completed = i915_request_completed(rq);
),
- TP_printk("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, global=%u, port=%u",
+ TP_printk("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, prio=%u, global=%u, port=%u, completed?=%d",
__entry->dev, __entry->hw_id, __entry->ring,
- __entry->ctx, __entry->seqno,
- __entry->global_seqno, __entry->port)
+ __entry->ctx, __entry->seqno, __entry->prio,
+ __entry->global_seqno, __entry->port,
+ __entry->completed)
);
DEFINE_EVENT(i915_request_hw, i915_request_in,
@@ -714,9 +719,9 @@ DEFINE_EVENT(i915_request_hw, i915_request_in,
TP_ARGS(rq, port)
);
-DEFINE_EVENT(i915_request, i915_request_out,
- TP_PROTO(struct i915_request *rq),
- TP_ARGS(rq)
+DEFINE_EVENT(i915_request_hw, i915_request_out,
+ TP_PROTO(struct i915_request *rq, unsigned int port),
+ TP_ARGS(rq, port)
);
#else
#if !defined(TRACE_HEADER_MULTI_READ)
@@ -736,7 +741,7 @@ trace_i915_request_in(struct i915_request *rq, unsigned int port)
}
static inline void
-trace_i915_request_out(struct i915_request *rq)
+trace_i915_request_out(struct i915_request *rq, unsigned int port)
{
}
#endif
@@ -762,7 +762,7 @@ static void guc_submission_tasklet(unsigned long data)
rq = port_request(port);
while (rq && i915_request_completed(rq)) {
- trace_i915_request_out(rq);
+ trace_i915_request_out(rq, 0);
i915_request_put(rq);
port = execlists_port_complete(execlists, port);
@@ -402,7 +402,7 @@ execlists_context_schedule_out(struct i915_request *rq, unsigned long status)
{
intel_engine_context_out(rq->engine);
execlists_context_status_change(rq, status);
- trace_i915_request_out(rq);
+ trace_i915_request_out(rq, 0);
}
static void