Commit 57d7116c authored by Tvrtko Ursulin's avatar Tvrtko Ursulin

drm/i915/trace: Context field needs to be 64-bit wide

Underlaying field is u64 so the tracepoint needs to be as well.

v2:
 * Re-order binary packet for 64-bit alignment. (Chris Wilson)
Signed-off-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Suggested-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180605134124.25672-1-tvrtko.ursulin@linux.intel.com
parent f24e74a7
...@@ -621,9 +621,9 @@ TRACE_EVENT(i915_request_queue, ...@@ -621,9 +621,9 @@ TRACE_EVENT(i915_request_queue,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(u32, dev) __field(u32, dev)
__field(u32, hw_id) __field(u32, hw_id)
__field(u64, ctx)
__field(u16, class) __field(u16, class)
__field(u16, instance) __field(u16, instance)
__field(u32, ctx)
__field(u32, seqno) __field(u32, seqno)
__field(u32, flags) __field(u32, flags)
), ),
...@@ -638,7 +638,7 @@ TRACE_EVENT(i915_request_queue, ...@@ -638,7 +638,7 @@ TRACE_EVENT(i915_request_queue,
__entry->flags = flags; __entry->flags = flags;
), ),
TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%u, seqno=%u, flags=0x%x", TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, flags=0x%x",
__entry->dev, __entry->class, __entry->instance, __entry->dev, __entry->class, __entry->instance,
__entry->hw_id, __entry->ctx, __entry->seqno, __entry->hw_id, __entry->ctx, __entry->seqno,
__entry->flags) __entry->flags)
...@@ -651,9 +651,9 @@ DECLARE_EVENT_CLASS(i915_request, ...@@ -651,9 +651,9 @@ DECLARE_EVENT_CLASS(i915_request,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(u32, dev) __field(u32, dev)
__field(u32, hw_id) __field(u32, hw_id)
__field(u64, ctx)
__field(u16, class) __field(u16, class)
__field(u16, instance) __field(u16, instance)
__field(u32, ctx)
__field(u32, seqno) __field(u32, seqno)
__field(u32, global) __field(u32, global)
), ),
...@@ -668,7 +668,7 @@ DECLARE_EVENT_CLASS(i915_request, ...@@ -668,7 +668,7 @@ DECLARE_EVENT_CLASS(i915_request,
__entry->global = rq->global_seqno; __entry->global = rq->global_seqno;
), ),
TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%u, seqno=%u, global=%u", TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u",
__entry->dev, __entry->class, __entry->instance, __entry->dev, __entry->class, __entry->instance,
__entry->hw_id, __entry->ctx, __entry->seqno, __entry->hw_id, __entry->ctx, __entry->seqno,
__entry->global) __entry->global)
...@@ -697,9 +697,9 @@ TRACE_EVENT(i915_request_in, ...@@ -697,9 +697,9 @@ TRACE_EVENT(i915_request_in,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(u32, dev) __field(u32, dev)
__field(u32, hw_id) __field(u32, hw_id)
__field(u64, ctx)
__field(u16, class) __field(u16, class)
__field(u16, instance) __field(u16, instance)
__field(u32, ctx)
__field(u32, seqno) __field(u32, seqno)
__field(u32, global_seqno) __field(u32, global_seqno)
__field(u32, port) __field(u32, port)
...@@ -718,7 +718,7 @@ TRACE_EVENT(i915_request_in, ...@@ -718,7 +718,7 @@ TRACE_EVENT(i915_request_in,
__entry->port = port; __entry->port = port;
), ),
TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%u, seqno=%u, prio=%u, global=%u, port=%u", TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, prio=%u, global=%u, port=%u",
__entry->dev, __entry->class, __entry->instance, __entry->dev, __entry->class, __entry->instance,
__entry->hw_id, __entry->ctx, __entry->seqno, __entry->hw_id, __entry->ctx, __entry->seqno,
__entry->prio, __entry->global_seqno, __entry->port) __entry->prio, __entry->global_seqno, __entry->port)
...@@ -731,9 +731,9 @@ TRACE_EVENT(i915_request_out, ...@@ -731,9 +731,9 @@ TRACE_EVENT(i915_request_out,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(u32, dev) __field(u32, dev)
__field(u32, hw_id) __field(u32, hw_id)
__field(u64, ctx)
__field(u16, class) __field(u16, class)
__field(u16, instance) __field(u16, instance)
__field(u32, ctx)
__field(u32, seqno) __field(u32, seqno)
__field(u32, global_seqno) __field(u32, global_seqno)
__field(u32, completed) __field(u32, completed)
...@@ -750,7 +750,7 @@ TRACE_EVENT(i915_request_out, ...@@ -750,7 +750,7 @@ TRACE_EVENT(i915_request_out,
__entry->completed = i915_request_completed(rq); __entry->completed = i915_request_completed(rq);
), ),
TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%u, seqno=%u, global=%u, completed?=%u", TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u, completed?=%u",
__entry->dev, __entry->class, __entry->instance, __entry->dev, __entry->class, __entry->instance,
__entry->hw_id, __entry->ctx, __entry->seqno, __entry->hw_id, __entry->ctx, __entry->seqno,
__entry->global_seqno, __entry->completed) __entry->global_seqno, __entry->completed)
...@@ -817,9 +817,9 @@ TRACE_EVENT(i915_request_wait_begin, ...@@ -817,9 +817,9 @@ TRACE_EVENT(i915_request_wait_begin,
TP_STRUCT__entry( TP_STRUCT__entry(
__field(u32, dev) __field(u32, dev)
__field(u32, hw_id) __field(u32, hw_id)
__field(u64, ctx)
__field(u16, class) __field(u16, class)
__field(u16, instance) __field(u16, instance)
__field(u32, ctx)
__field(u32, seqno) __field(u32, seqno)
__field(u32, global) __field(u32, global)
__field(unsigned int, flags) __field(unsigned int, flags)
...@@ -842,7 +842,7 @@ TRACE_EVENT(i915_request_wait_begin, ...@@ -842,7 +842,7 @@ TRACE_EVENT(i915_request_wait_begin,
__entry->flags = flags; __entry->flags = flags;
), ),
TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%u, seqno=%u, global=%u, blocking=%u, flags=0x%x", TP_printk("dev=%u, engine=%u:%u, hw_id=%u, ctx=%llu, seqno=%u, global=%u, blocking=%u, flags=0x%x",
__entry->dev, __entry->class, __entry->instance, __entry->dev, __entry->class, __entry->instance,
__entry->hw_id, __entry->ctx, __entry->seqno, __entry->hw_id, __entry->ctx, __entry->seqno,
__entry->global, !!(__entry->flags & I915_WAIT_LOCKED), __entry->global, !!(__entry->flags & I915_WAIT_LOCKED),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment