mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
drm/amd/sched: print sched job id in amd_sched_job trace
This makes it easier to correlate amd_sched_job with with other trace points that don't log the job pointer. v2: don't print the sched_job pointer (Andres) Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Andres Rodriguez <andresx7@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
a69c7e0138
commit
eabd76cef9
1 changed files with 5 additions and 4 deletions
|
@ -16,16 +16,16 @@ TRACE_EVENT(amd_sched_job,
|
||||||
TP_ARGS(sched_job),
|
TP_ARGS(sched_job),
|
||||||
TP_STRUCT__entry(
|
TP_STRUCT__entry(
|
||||||
__field(struct amd_sched_entity *, entity)
|
__field(struct amd_sched_entity *, entity)
|
||||||
__field(struct amd_sched_job *, sched_job)
|
|
||||||
__field(struct dma_fence *, fence)
|
__field(struct dma_fence *, fence)
|
||||||
__field(const char *, name)
|
__field(const char *, name)
|
||||||
|
__field(uint64_t, id)
|
||||||
__field(u32, job_count)
|
__field(u32, job_count)
|
||||||
__field(int, hw_job_count)
|
__field(int, hw_job_count)
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
__entry->entity = sched_job->s_entity;
|
__entry->entity = sched_job->s_entity;
|
||||||
__entry->sched_job = sched_job;
|
__entry->id = sched_job->id;
|
||||||
__entry->fence = &sched_job->s_fence->finished;
|
__entry->fence = &sched_job->s_fence->finished;
|
||||||
__entry->name = sched_job->sched->name;
|
__entry->name = sched_job->sched->name;
|
||||||
__entry->job_count = kfifo_len(
|
__entry->job_count = kfifo_len(
|
||||||
|
@ -33,8 +33,9 @@ TRACE_EVENT(amd_sched_job,
|
||||||
__entry->hw_job_count = atomic_read(
|
__entry->hw_job_count = atomic_read(
|
||||||
&sched_job->sched->hw_rq_count);
|
&sched_job->sched->hw_rq_count);
|
||||||
),
|
),
|
||||||
TP_printk("entity=%p, sched job=%p, fence=%p, ring=%s, job count:%u, hw job count:%d",
|
TP_printk("entity=%p, id=%llu, fence=%p, ring=%s, job count:%u, hw job count:%d",
|
||||||
__entry->entity, __entry->sched_job, __entry->fence, __entry->name,
|
__entry->entity, __entry->id,
|
||||||
|
__entry->fence, __entry->name,
|
||||||
__entry->job_count, __entry->hw_job_count)
|
__entry->job_count, __entry->hw_job_count)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue