[RFC 0/2] strace/drm: Add i915 ioctls to strace

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set aims to make strace more useful when tracing i915 ioctls.
The ioctl type is first checked for being drm and then the driver
backing the opened device is identified by looking at sysfs. Other
drivers than i915 can easily be added.

Only a subset of the i915 ioctls are included. I will extend this patch
set if the approach looks ok. The generic drm ioctls are also missing.

Give it a spin with:
        strace -e trace=ioctl -p `pidof X`

Patrik Jakobsson (2):
  strace/drm: Print extended info for drm and i915 ioctls
  strace/drm: Print args for most common i915 ioctls

 Makefile.am                |   2 +
 defs.h                     |   2 +
 drm.c                      | 104 +++++++++++++++++
 drm_i915.c                 | 278 +++++++++++++++++++++++++++++++++++++++++++++
 ioctl.c                    |   5 +
 xlat/drm_i915_getparams.in |  28 +++++
 xlat/drm_i915_ioctls.in    |  51 +++++++++
 xlat/drm_i915_setparams.in |   4 +
 8 files changed, 474 insertions(+)
 create mode 100644 drm.c
 create mode 100644 drm_i915.c
 create mode 100644 xlat/drm_i915_getparams.in
 create mode 100644 xlat/drm_i915_ioctls.in
 create mode 100644 xlat/drm_i915_setparams.in

-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux