git: drm cleanup 16/x: Add names to internal ioctl debug traces.

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Fri May 20 01:39:57 PDT 2016


commit 7387c767ea1565c36e324d30e6f75dc0a63431fd
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed May 18 18:24:30 2016 +0300

    drm cleanup 16/x: Add names to internal ioctl debug traces.
    
    With this it prints same output as linux, just 3 years later.
    Aimed at drm_debug=0x600 mode.
    Easier on the eyes and saves time:
    
     -[drm:drm_ioctl] pid=904, cmd=0xc03064b7, nr=0xb7, dev 0xffffffe1d6299720, auth=1
     -[drm:drm_ioctl] pid=904, cmd=0x80086409, nr=0x09, dev 0xffffffe1d6299720, auth=1
     -[drm:drm_ioctl] pid=904, cmd=0x2000641f, nr=0x1f, dev 0xffffffe1d6299720, auth=1
     -[drm:drm_ioctl] ret = 22
     -[drm:drm_ioctl] pid=904, cmd=0x80086409, nr=0x09, dev 0xffffffe1d6299720, auth=1
     -[drm:drm_ioctl] pid=904, cmd=0x80086409, nr=0x09, dev 0xffffffe1d6299720, auth=1
     -[drm:drm_ioctl] pid=904, cmd=0xc010646c, nr=0x2c, dev 0xffffffe1d6299720, auth=1
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, DRM_IOCTL_MODE_SETPLANE
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, DRM_IOCTL_GEM_CLOSE
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, DRM_IOCTL_DROP_MASTER
     +[drm:drm_ioctl] ret = 22
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, DRM_IOCTL_GEM_CLOSE
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, DRM_IOCTL_GEM_CLOSE
     +[drm:drm_ioctl] pid=904, dev=0xffffffe1d6299720, auth=1, I915_GEM_WAIT

Summary of changes:
 sys/dev/drm/drm_ioctl.c        | 18 ++++++++++++------
 sys/dev/drm/include/drm/drmP.h | 11 +++++++++--
 2 files changed, 21 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7387c767ea1565c36e324d30e6f75dc0a63431fd


-- 
DragonFly BSD source repository


More information about the Commits mailing list