mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
drm/xe/trace: improve xe_sched_msg trace
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
This commit is contained in:
parent
f7e1fe4593
commit
6364a06c5e
|
|
@ -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)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user