Skip to content

Commit c5b4393

Browse files
amd-sukhatriChristianKoenigAMD
authored andcommitted
drm/file: add client id to drm_file_error
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 <[email protected]> Reviewed-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian König <[email protected]>
1 parent c5ae936 commit c5b4393

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/gpu/drm/drm_file.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,8 +1017,10 @@ void drm_file_err(struct drm_file *file_priv, const char *fmt, ...)
10171017
pid = rcu_dereference(file_priv->pid);
10181018
task = pid_task(pid, PIDTYPE_TGID);
10191019

1020-
drm_err(dev, "comm: %s pid: %d client: %s ... %pV", task ? task->comm : "Unset",
1021-
task ? task->pid : 0, file_priv->client_name ?: "Unset", &vaf);
1020+
drm_err(dev, "comm: %s pid: %d client-id:%llu client: %s ... %pV",
1021+
task ? task->comm : "Unset",
1022+
task ? task->pid : 0, file_priv->client_id,
1023+
file_priv->client_name ?: "Unset", &vaf);
10221024

10231025
va_end(args);
10241026
rcu_read_unlock();

0 commit comments

Comments
 (0)