[PATCH v9 03/10] drm/sched: add device name to the drm_sched_process_job event
Danilo Krummrich
dakr at kernel.org
Mon May 19 15:34:05 UTC 2025
On Thu, Apr 24, 2025 at 10:38:15AM +0200, Pierre-Eric Pelloux-Prayer wrote:
> diff --git a/drivers/gpu/drm/scheduler/gpu_scheduler_trace.h b/drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
> index f56e77e7f6d0..713df3516a17 100644
> --- a/drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
> +++ b/drivers/gpu/drm/scheduler/gpu_scheduler_trace.h
> @@ -42,6 +42,7 @@ DECLARE_EVENT_CLASS(drm_sched_job,
> __field(uint64_t, id)
> __field(u32, job_count)
> __field(int, hw_job_count)
> + __string(dev, dev_name(sched_job->sched->dev))
Using the sched_job->sched pointer here and in other trace events implies that
the trace event must not be called before the sched_job->sched has been set,
i.e. in drm_sched_job_arm().
Please document this for the corresponding trace events.
More information about the dri-devel
mailing list