[Intel-gfx] dmesg filter

Damien Lespiau damien.lespiau at gmail.com
Thu Nov 1 17:42:46 CET 2012


The goal here is to make dmesg output with the full verbosity a bit easier to
parse by a human. The script will transform:

[drm:drm_ioctl], pid=699, cmd=0x6458, nr=0x58, dev 0xe200, auth=1
[drm:drm_ioctl], pid=699, cmd=0xc010645b, nr=0x5b, dev 0xe200, auth=1
[drm:drm_ioctl], pid=699, cmd=0xc0106461, nr=0x61, dev 0xe200, auth=1
[drm:drm_ioctl], pid=699, cmd=0xc01c64ae, nr=0xae, dev 0xe200, auth=1
[drm:drm_mode_addfb], [FB:32]
[drm:drm_ioctl], pid=699, cmd=0xc0106464, nr=0x64, dev 0xe200, auth=1
[drm:drm_vm_open_locked], 0x7fd9302fe000,0x00a00000
[drm:drm_ioctl], pid=699, cmd=0x400c645f, nr=0x5f, dev 0xe200, auth=1
[drm:drm_ioctl], pid=699, cmd=0xc00464af, nr=0xaf, dev 0xe200, auth=1
[drm:intel_crtc_set_config], [CRTC:3] [NOFB]

to

[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_I915_GEM_THROTTLE
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_I915_GEM_CREATE
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_I915_GEM_SET_TILING
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_IOCTL_MODE_ADDFB
[drm:drm_mode_addfb], [FB:32]
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_I915_GEM_MMAP_GTT
[drm:drm_vm_open_locked], 0x7fd9302fe000,0x00a00000
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_I915_GEM_SET_DOMAIN
[drm:drm_ioctl], [pid=699], [dev=0xe200], DRM_IOCTL_MODE_RMFB
[drm:intel_crtc_set_config], [CRTC:3] [NOFB]

It can be used as a Unix filter or with a file as argument.

HTH,

-- 
Damien




More information about the Intel-gfx mailing list