dmesg filter
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,
Signature · 1 line
Damien
PATCH 1/1 scripts: Add a dmesg filter to prettify ioctl traces
From: Damien Lespiau <[email protected]>
--- scripts/Makefile.am | 2 +- scripts/dmesg_filter | 195 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 196 insertions(+), 1 deletion(-) create mode 100755 scripts/dmesg_filter
scripts/Makefile.am +1 -1
@@ -1,3 +1,3 @@ dist_noinst_SCRIPTS = who.sh -noinst_PYTHON = throttle.py +noinst_PYTHON = throttle.py dmesg_filter
scripts/dmesg_filter new file +195 -0
195 lines not on this page · raw message
Signature · 1 line
1.7.11.7
Re: [PATCH] scripts: Add a dmesg filter to prettify ioctl traces
Am Donnerstag, den 01.11.2012, 16:42 +0000 schrieb Damien Lespiau:
Quoted 1 line
From: Damien Lespiau <[email protected]>
The content of the cover letter would have been very useful for this commit message body. ;-)
Quoted 1 line
Signed-off-by Damien Lespiau <[email protected]>
[…]
Thanks,
Paul
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · Damien Lespiau
The goal here is to make dmesg output with the full verbosity a bit easier to parse by a human. The script will transform:
Couldn't a little bit of preprocessor in the kernel ioctl definitions give us decent names right in the dmesg?
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 7 lines · Eric Anholt
Quoted 2 lines · Damien Lespiau
The goal here is to make dmesg output with the full verbosity a bit easier to parse by a human. The script will transform:
Couldn't a little bit of preprocessor in the kernel ioctl definitions give us decent names right in the dmesg?
Oh, that sounds entirely possible. For some reason I assumed people would not like that change.
Signature · 1 line
Damien