mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu: print the bo_list in the CS trace point as well
Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <aleander.deucher@amd.com>
This commit is contained in:
parent
ec74407ac0
commit
e30590e6e3
|
@ -30,19 +30,21 @@ TRACE_EVENT(amdgpu_cs,
|
||||||
TP_PROTO(struct amdgpu_cs_parser *p, int i),
|
TP_PROTO(struct amdgpu_cs_parser *p, int i),
|
||||||
TP_ARGS(p, i),
|
TP_ARGS(p, i),
|
||||||
TP_STRUCT__entry(
|
TP_STRUCT__entry(
|
||||||
|
__field(struct amdgpu_bo_list *, bo_list)
|
||||||
__field(u32, ring)
|
__field(u32, ring)
|
||||||
__field(u32, dw)
|
__field(u32, dw)
|
||||||
__field(u32, fences)
|
__field(u32, fences)
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
|
__entry->bo_list = p->bo_list;
|
||||||
__entry->ring = p->ibs[i].ring->idx;
|
__entry->ring = p->ibs[i].ring->idx;
|
||||||
__entry->dw = p->ibs[i].length_dw;
|
__entry->dw = p->ibs[i].length_dw;
|
||||||
__entry->fences = amdgpu_fence_count_emitted(
|
__entry->fences = amdgpu_fence_count_emitted(
|
||||||
p->ibs[i].ring);
|
p->ibs[i].ring);
|
||||||
),
|
),
|
||||||
TP_printk("ring=%u, dw=%u, fences=%u",
|
TP_printk("bo_list=%p, ring=%u, dw=%u, fences=%u",
|
||||||
__entry->ring, __entry->dw,
|
__entry->bo_list, __entry->ring, __entry->dw,
|
||||||
__entry->fences)
|
__entry->fences)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue