drm/debugfs: Output client_id in in drm_clients_info
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 26 May 2025 12:54:43 +0000 (14:54 +0200)
committerPhilipp Stanner <phasta@kernel.org>
Wed, 28 May 2025 14:15:56 +0000 (16:15 +0200)
commit18c44fb647beb53d5c9dcd926d733bf931fbfca8
treeb8e8bac72feeba58a79bebfae3554f02998af31e
parent6e76b312a681224881c05835ed5a26e012ce80ea
drm/debugfs: Output client_id in in drm_clients_info

client_id is a unique id used by fdinfo. Having it listed in 'clients'
output means a userspace application can correlate the fields, eg:
given a fdinfo id get the fdinfo name.

Geiven that client_id is a uint64_t, we use a %20llu printf format to
keep the output aligned (20 = digit count of the biggest uint64_t).

Reviewed-by: Christian König <christian.koenig@amd.com>
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-2-pierre-eric.pelloux-prayer@amd.com
drivers/gpu/drm/drm_debugfs.c