提交 f8d56901 编写于 作者: A Andres Rodriguez 提交者: Alex Deucher

drm/amdgpu: make trace format uniform csv name=value

Most of the traces have uniform format except for two of them. Having
all the traces match makes it simple to run awk on the ftrace output.
Reviewed-by: NChristian König <christian.koenig@amd.com>
Signed-off-by: NAndres Rodriguez <andresx7@gmail.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 49abb980
...@@ -142,7 +142,7 @@ TRACE_EVENT(amdgpu_sched_run_job, ...@@ -142,7 +142,7 @@ TRACE_EVENT(amdgpu_sched_run_job,
__entry->ring_name = job->ring->name; __entry->ring_name = job->ring->name;
__entry->num_ibs = job->num_ibs; __entry->num_ibs = job->num_ibs;
), ),
TP_printk("adev=%p, sched_job=%p, first ib=%p, sched fence=%p, ring name:%s, num_ibs:%u", TP_printk("adev=%p, sched_job=%p, first ib=%p, sched fence=%p, ring name=%s, num_ibs=%u",
__entry->adev, __entry->sched_job, __entry->ib, __entry->adev, __entry->sched_job, __entry->ib,
__entry->fence, __entry->ring_name, __entry->num_ibs) __entry->fence, __entry->ring_name, __entry->num_ibs)
); );
...@@ -359,7 +359,7 @@ TRACE_EVENT(amdgpu_ttm_bo_move, ...@@ -359,7 +359,7 @@ TRACE_EVENT(amdgpu_ttm_bo_move,
__entry->new_placement = new_placement; __entry->new_placement = new_placement;
__entry->old_placement = old_placement; __entry->old_placement = old_placement;
), ),
TP_printk("bo=%p from:%d to %d with size = %Ld", TP_printk("bo=%p, from=%d, to=%d, size=%Ld",
__entry->bo, __entry->old_placement, __entry->bo, __entry->old_placement,
__entry->new_placement, __entry->bo_size) __entry->new_placement, __entry->bo_size)
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册