aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/i915_trace.h93
1 files changed, 58 insertions, 35 deletions
diff --git a/drivers/gpu/drm/i915/i915_trace.h b/drivers/gpu/drm/i915/i915_trace.h
index 408827bf5d96..77ee5e53eb32 100644
--- a/drivers/gpu/drm/i915/i915_trace.h
+++ b/drivers/gpu/drm/i915/i915_trace.h
@@ -679,45 +679,68 @@ DEFINE_EVENT(i915_request, i915_request_execute,
679 TP_ARGS(rq) 679 TP_ARGS(rq)
680); 680);
681 681
682DECLARE_EVENT_CLASS(i915_request_hw, 682TRACE_EVENT(i915_request_in,
683 TP_PROTO(struct i915_request *rq, unsigned int port), 683 TP_PROTO(struct i915_request *rq, unsigned int port),
684 TP_ARGS(rq, port), 684 TP_ARGS(rq, port),
685 685
686 TP_STRUCT__entry( 686 TP_STRUCT__entry(
687 __field(u32, dev) 687 __field(u32, dev)
688 __field(u32, hw_id) 688 __field(u32, hw_id)
689 __field(u32, ring) 689 __field(u32, ring)
690 __field(u32, ctx) 690 __field(u32, ctx)
691 __field(u32, seqno) 691 __field(u32, seqno)
692 __field(u32, global_seqno) 692 __field(u32, global_seqno)
693 __field(u32, port) 693 __field(u32, port)
694 ), 694 __field(u32, prio)
695 695 ),
696 TP_fast_assign(
697 __entry->dev = rq->i915->drm.primary->index;
698 __entry->hw_id = rq->ctx->hw_id;
699 __entry->ring = rq->engine->id;
700 __entry->ctx = rq->fence.context;
701 __entry->seqno = rq->fence.seqno;
702 __entry->global_seqno = rq->global_seqno;
703 __entry->port = port;
704 ),
705
706 TP_printk("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, global=%u, port=%u",
707 __entry->dev, __entry->hw_id, __entry->ring,
708 __entry->ctx, __entry->seqno,
709 __entry->global_seqno, __entry->port)
710);
711 696
712DEFINE_EVENT(i915_request_hw, i915_request_in, 697 TP_fast_assign(
713 TP_PROTO(struct i915_request *rq, unsigned int port), 698 __entry->dev = rq->i915->drm.primary->index;
714 TP_ARGS(rq, port) 699 __entry->hw_id = rq->ctx->hw_id;
700 __entry->ring = rq->engine->id;
701 __entry->ctx = rq->fence.context;
702 __entry->seqno = rq->fence.seqno;
703 __entry->global_seqno = rq->global_seqno;
704 __entry->prio = rq->sched.attr.priority;
705 __entry->port = port;
706 ),
707
708 TP_printk("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, prio=%u, global=%u, port=%u",
709 __entry->dev, __entry->hw_id, __entry->ring, __entry->ctx,
710 __entry->seqno, __entry->prio, __entry->global_seqno,
711 __entry->port)
715); 712);
716 713
717DEFINE_EVENT(i915_request, i915_request_out, 714TRACE_EVENT(i915_request_out,
718 TP_PROTO(struct i915_request *rq), 715 TP_PROTO(struct i915_request *rq),
719 TP_ARGS(rq) 716 TP_ARGS(rq),
717
718 TP_STRUCT__entry(
719 __field(u32, dev)
720 __field(u32, hw_id)
721 __field(u32, ring)
722 __field(u32, ctx)
723 __field(u32, seqno)
724 __field(u32, global_seqno)
725 __field(u32, completed)
726 ),
727
728 TP_fast_assign(
729 __entry->dev = rq->i915->drm.primary->index;
730 __entry->hw_id = rq->ctx->hw_id;
731 __entry->ring = rq->engine->id;
732 __entry->ctx = rq->fence.context;
733 __entry->seqno = rq->fence.seqno;
734 __entry->global_seqno = rq->global_seqno;
735 __entry->completed = i915_request_completed(rq);
736 ),
737
738 TP_printk("dev=%u, hw_id=%u, ring=%u, ctx=%u, seqno=%u, global=%u, completed?=%u",
739 __entry->dev, __entry->hw_id, __entry->ring,
740 __entry->ctx, __entry->seqno,
741 __entry->global_seqno, __entry->completed)
720); 742);
743
721#else 744#else
722#if !defined(TRACE_HEADER_MULTI_READ) 745#if !defined(TRACE_HEADER_MULTI_READ)
723static inline void 746static inline void