mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
drm/xe: Add gt_id to xe_sched_job traces
In order to uniquely identify the jobs, xe_sched_job tracepoints need to have the tuple (gt_id, guc_id). Find a "hole" where the next entry is unaligned and add one more field. Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241107060606.3130885-1-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
parent
f9b982fbb4
commit
faf3cc68b9
|
|
@ -211,6 +211,7 @@ DECLARE_EVENT_CLASS(xe_sched_job,
|
|||
__string(dev, __dev_name_eq(job->q))
|
||||
__field(u32, seqno)
|
||||
__field(u32, lrc_seqno)
|
||||
__field(u8, gt_id)
|
||||
__field(u16, guc_id)
|
||||
__field(u32, guc_state)
|
||||
__field(u32, flags)
|
||||
|
|
@ -223,6 +224,7 @@ DECLARE_EVENT_CLASS(xe_sched_job,
|
|||
__assign_str(dev);
|
||||
__entry->seqno = xe_sched_job_seqno(job);
|
||||
__entry->lrc_seqno = xe_sched_job_lrc_seqno(job);
|
||||
__entry->gt_id = job->q->gt->info.id;
|
||||
__entry->guc_id = job->q->guc->id;
|
||||
__entry->guc_state =
|
||||
atomic_read(&job->q->guc->state);
|
||||
|
|
@ -232,9 +234,9 @@ DECLARE_EVENT_CLASS(xe_sched_job,
|
|||
__entry->batch_addr = (u64)job->ptrs[0].batch_addr;
|
||||
),
|
||||
|
||||
TP_printk("dev=%s, fence=%p, seqno=%u, lrc_seqno=%u, guc_id=%d, batch_addr=0x%012llx, guc_state=0x%x, flags=0x%x, error=%d",
|
||||
TP_printk("dev=%s, fence=%p, seqno=%u, lrc_seqno=%u, gt=%u, guc_id=%d, batch_addr=0x%012llx, guc_state=0x%x, flags=0x%x, error=%d",
|
||||
__get_str(dev), __entry->fence, __entry->seqno,
|
||||
__entry->lrc_seqno, __entry->guc_id,
|
||||
__entry->lrc_seqno, __entry->gt_id, __entry->guc_id,
|
||||
__entry->batch_addr, __entry->guc_state,
|
||||
__entry->flags, __entry->error)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user