projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5ae936
)
drm/file: add client id to drm_file_error
author
Sunil Khatri
<sunil.khatri@amd.com>
Fri, 30 May 2025 06:29:29 +0000
(11:59 +0530)
committer
Christian König
<christian.koenig@amd.com>
Thu, 12 Jun 2025 12:33:51 +0000
(14:33 +0200)
Add client id to the drm_file_error api, client id
is a unique id for each drm fd and is quite useful
for debugging.
v2: Swapped client id and client name order [Chrisitan]
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link:
https://lore.kernel.org/r/20250530062929.1954784-1-sunil.khatri@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/drm_file.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_file.c
b/drivers/gpu/drm/drm_file.c
index 246cf845e2c9cbc542811cbbc32d03a006cc30df..818630ba6e0d0436fe307ef7792b0a70ed34dcda 100644
(file)
--- a/
drivers/gpu/drm/drm_file.c
+++ b/
drivers/gpu/drm/drm_file.c
@@
-1017,8
+1017,10
@@
void drm_file_err(struct drm_file *file_priv, const char *fmt, ...)
pid = rcu_dereference(file_priv->pid);
task = pid_task(pid, PIDTYPE_TGID);
- drm_err(dev, "comm: %s pid: %d client: %s ... %pV", task ? task->comm : "Unset",
- task ? task->pid : 0, file_priv->client_name ?: "Unset", &vaf);
+ drm_err(dev, "comm: %s pid: %d client-id:%llu client: %s ... %pV",
+ task ? task->comm : "Unset",
+ task ? task->pid : 0, file_priv->client_id,
+ file_priv->client_name ?: "Unset", &vaf);
va_end(args);
rcu_read_unlock();