mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
drm/xe/multi_queue: Add trace event for the multi queue timestamp
Add a trace event for multi queue timestamp capture. Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Link: https://patch.msgid.link/20260507162016.3888309-22-umesh.nerlige.ramappa@intel.com
This commit is contained in:
parent
bccf190ea7
commit
1f30396de0
|
|
@ -2712,6 +2712,8 @@ static u64 xe_lrc_update_multi_queue_timestamp(struct xe_lrc *lrc, u64 *old_ts)
|
|||
*old_ts = lrc->queue_timestamp;
|
||||
lrc->queue_timestamp = xe_lrc_multi_queue_timestamp(lrc);
|
||||
|
||||
trace_xe_lrc_update_queue_timestamp(lrc, *old_ts);
|
||||
|
||||
return lrc->queue_timestamp;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@
|
|||
#include <linux/tracepoint.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "xe_exec_queue_types.h"
|
||||
#include "xe_gt_types.h"
|
||||
#include "xe_lrc.h"
|
||||
#include "xe_lrc_types.h"
|
||||
|
|
@ -42,6 +43,32 @@ TRACE_EVENT(xe_lrc_update_timestamp,
|
|||
__get_str(device_id))
|
||||
);
|
||||
|
||||
TRACE_EVENT(xe_lrc_update_queue_timestamp,
|
||||
TP_PROTO(struct xe_lrc *lrc, uint64_t old),
|
||||
TP_ARGS(lrc, old),
|
||||
TP_STRUCT__entry(
|
||||
__field(struct xe_lrc *, lrc)
|
||||
__field(struct xe_lrc *, primary_lrc)
|
||||
__field(u64, old)
|
||||
__field(u64, new)
|
||||
__string(name, lrc->fence_ctx.name)
|
||||
__string(device_id, __dev_name_lrc(lrc))
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->lrc = lrc;
|
||||
__entry->primary_lrc = lrc->multi_queue.primary_lrc;
|
||||
__entry->old = old;
|
||||
__entry->new = lrc->queue_timestamp;
|
||||
__assign_str(name);
|
||||
__assign_str(device_id);
|
||||
),
|
||||
TP_printk("lrc=%p primary_lrc=%p lrc->name=%s old=%llu new=%llu device_id:%s",
|
||||
__entry->lrc, __entry->primary_lrc, __get_str(name),
|
||||
__entry->old, __entry->new,
|
||||
__get_str(device_id))
|
||||
);
|
||||
|
||||
#endif
|
||||
|
||||
/* This part must be outside protection */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user