drm/amdgpu: add cleaner shader trace point

Note when the cleaner shader is executed.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Christian König
2025-02-06 14:26:30 +01:00
committed by Alex Deucher
parent 1bb1314d0b
commit 02ba7543f2
2 changed files with 16 additions and 0 deletions

View File

@@ -474,6 +474,21 @@ TRACE_EVENT(amdgpu_isolation,
__entry->next)
);
TRACE_EVENT(amdgpu_cleaner_shader,
TP_PROTO(struct amdgpu_ring *ring, struct dma_fence *fence),
TP_ARGS(ring, fence),
TP_STRUCT__entry(
__string(ring, ring->name)
__field(u64, seqno)
),
TP_fast_assign(
__assign_str(ring);
__entry->seqno = fence->seqno;
),
TP_printk("ring=%s, seqno=%Lu", __get_str(ring), __entry->seqno)
);
TRACE_EVENT(amdgpu_bo_list_set,
TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
TP_ARGS(list, bo),