[PATCH 1/3] drm/xe/trace: improve xe_sched_msg trace
Lucas De Marchi
lucas.demarchi at intel.com
Fri Nov 22 20:46:11 UTC 2024
On Fri, Nov 22, 2024 at 04:19:15PM +0000, Matthew Auld wrote:
>Also include the gt_id, that way we can ignore duplicate guc_id across
>different GTs when applying some filtering.
>
>Signed-off-by: Matthew Auld <matthew.auld at intel.com>
>Cc: Matthew Brost <matthew.brost at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/xe/xe_trace.h | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_trace.h b/drivers/gpu/drm/xe/xe_trace.h
>index de682978c4bf..d5281de04d54 100644
>--- a/drivers/gpu/drm/xe/xe_trace.h
>+++ b/drivers/gpu/drm/xe/xe_trace.h
>@@ -284,6 +284,7 @@ DECLARE_EVENT_CLASS(xe_sched_msg,
> __string(dev, __dev_name_eq(((struct xe_exec_queue *)msg->private_data)))
> __field(u32, opcode)
> __field(u16, guc_id)
>+ __field(u8, gt_id)
> ),
>
> TP_fast_assign(
>@@ -291,9 +292,11 @@ DECLARE_EVENT_CLASS(xe_sched_msg,
> __entry->opcode = msg->opcode;
> __entry->guc_id =
> ((struct xe_exec_queue *)msg->private_data)->guc->id;
>+ __entry->gt_id =
>+ ((struct xe_exec_queue *)msg->private_data)->gt->info.id;
> ),
>
>- TP_printk("dev=%s, guc_id=%d, opcode=%u", __get_str(dev), __entry->guc_id,
>+ TP_printk("dev=%s, gt=%u guc_id=%d, opcode=%u", __get_str(dev), __entry->gt_id, __entry->guc_id,
> __entry->opcode)
> );
>
>--
>2.47.0
>
More information about the Intel-xe
mailing list