projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9569002
)
drm: Print the pid when debug logging an ioctl error.
author
Eric Anholt
<eric@anholt.net>
Tue, 30 Jan 2018 21:56:43 +0000
(13:56 -0800)
committer
Eric Anholt
<eric@anholt.net>
Sat, 10 Feb 2018 22:23:10 +0000
(22:23 +0000)
When we debug print what ioctl we're calling into, we include the pid.
If you have multiple processes rendering simulataneously, the error
return also needs the pid so you can see which of the ioctl calls was
the one to fail.
Signed-off-by: Eric Anholt <eric@anholt.net>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180130215643.11016-1-eric@anholt.net
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_ioctl.c
b/drivers/gpu/drm/drm_ioctl.c
index
b1e96fb
..
af78291
100644
(file)
--- a/
drivers/gpu/drm/drm_ioctl.c
+++ b/
drivers/gpu/drm/drm_ioctl.c
@@
-848,7
+848,7
@@
long drm_ioctl(struct file *filp,
if (kdata != stack_kdata)
kfree(kdata);
if (retcode)
- DRM_DEBUG("
ret = %d\n"
, retcode);
+ DRM_DEBUG("
pid=%d, ret = %d\n", task_pid_nr(current)
, retcode);
return retcode;
}
EXPORT_SYMBOL(drm_ioctl);