drm/xe/trace: improve xe_sched_msg trace
authorMatthew Auld <matthew.auld@intel.com>
Fri, 22 Nov 2024 16:19:15 +0000 (16:19 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 26 Nov 2024 09:36:54 +0000 (09:36 +0000)
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@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241122161914.321263-4-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_trace.h

index de68297..d5281de 100644 (file)
@@ -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)
 );