drm/i915: Enable irq to trace batch buffer completion.

If we trigger a tracepoint for batch buffer submission, it is a reasonable
assumption that we wish to also trace the batch buffer completion. So in
order to capture the completion events, we need to enable irqs... However,
we cannot rely on the completion event to disable the irq later, so we
defer the irq disable to the retire request.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2009-09-24 05:26:06 +01:00
parent 8f0dc5bf17
commit 9d34e5db07
5 changed files with 21 additions and 1 deletions

View File

@ -165,6 +165,7 @@ TRACE_EVENT(i915_gem_request_submit,
TP_fast_assign(
__entry->dev = dev->primary->index;
__entry->seqno = seqno;
i915_trace_irq_get(dev, seqno);
),
TP_printk("dev=%u, seqno=%u", __entry->dev, __entry->seqno)