drm/sched: Add the drm_client_id to the drm_sched_run/exec_job events
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 26 May 2025 12:54:48 +0000 (14:54 +0200)
committerPhilipp Stanner <phasta@kernel.org>
Wed, 28 May 2025 14:16:12 +0000 (16:16 +0200)
commitfbf11ce526266f8cdd2afe1f94229049d17927dc
tree14ab5aeca6f1aa540d3edbe47dcef1efd8dd6de0
parent76d97c870f291e690037c3e82ab67d343702b14c
drm/sched: Add the drm_client_id to the drm_sched_run/exec_job events

For processes with multiple drm_file instances, the drm_client_id is
the only way to map jobs back to their unique owner.

It's even more useful if drm client_name is set, because now a tool
can map jobs to the client name instead of only having access to
the process name.

Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Link: https://lore.kernel.org/r/20250526125505.2360-7-pierre-eric.pelloux-prayer@amd.com
drivers/gpu/drm/scheduler/gpu_scheduler_trace.h