public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] drm: Add decoding for DRM/KMS and i915 ioctls
@ 2015-07-01 12:52 Patrik Jakobsson
       [not found] ` <1435755168-16207-1-git-send-email-patrik.jakobsson-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Patrik Jakobsson @ 2015-07-01 12:52 UTC (permalink / raw)
  To: strace-devel, ldv, gabriel; +Cc: intel-gfx

This set of patches adds a dispatcher for handling DRM ioctls. The
kernel headers for DRM might not be available on all distributions
so we depend on libdrm for those. If libdrm is not available we fall
back on the kernel headers. Since DRM drivers share the same range of
private ioctl numbers I've added a function for detecting the driver
based on it's name.

Changes in v2:
* Rebased to master
* Added Changelog to commits
* Keep strace_SOURCES list sorted
* Removed unneeded includes
* Reduced number of driver name checks by adding tcb private data
* Use tprints() for regular strings
* Reworked entering() / exiting() handling for all ioctls
* Use printstr() to print strings in properly quoted form

Changes in v3:
* Moved all umove() into state checks for single state ioctls
* Removed extra curly bracket
* Moved param argument into entering() state in i915_setparam()
* Don't return before private data is freed in drm_ioctl()

Patrik Jakobsson (5):
  drm: Add config for detecting libdrm
  drm: Add private data field to trace control block
  drm: Add dispatcher and driver identification for DRM
  drm: Add decoding of i915 ioctls
  drm: Add decoding of DRM and KMS ioctls

 Makefile.am                |   2 +
 configure.ac               |   4 +
 defs.h                     |  11 +-
 drm.c                      | 668 +++++++++++++++++++++++++++++++++++++++++++++
 drm_i915.c                 | 332 ++++++++++++++++++++++
 io.c                       |   2 +-
 ioctl.c                    |   6 +-
 xlat/drm_i915_getparams.in |  28 ++
 xlat/drm_i915_ioctls.in    |  51 ++++
 xlat/drm_i915_setparams.in |   4 +
 10 files changed, 1105 insertions(+), 3 deletions(-)
 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.4

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2015-08-02 14:03 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-01 12:52 [PATCH v3 0/5] drm: Add decoding for DRM/KMS and i915 ioctls Patrik Jakobsson
     [not found] ` <1435755168-16207-1-git-send-email-patrik.jakobsson-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-07-01 12:52   ` [PATCH v3 1/5] drm: Add config for detecting libdrm Patrik Jakobsson
     [not found]     ` <1435755168-16207-2-git-send-email-patrik.jakobsson-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-07-23  9:48       ` Mike Frysinger
2015-07-23 10:44         ` Dmitry V. Levin
     [not found]           ` <20150723104417.GA21575-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
2015-07-23 11:02             ` Mike Frysinger
2015-07-30 13:30         ` Patrik Jakobsson
2015-07-30 14:04           ` Mike Frysinger
2015-07-31  9:09             ` Patrik Jakobsson
2015-08-01 18:22               ` Dmitry V. Levin
2015-08-02 14:03                 ` Patrik Jakobsson
2015-07-01 12:52   ` [PATCH v3 2/5] drm: Add private data field to trace control block Patrik Jakobsson
2015-07-03  0:33     ` Dmitry V. Levin
2015-07-06  8:09       ` Patrik Jakobsson
2015-07-01 12:52   ` [PATCH v3 3/5] drm: Add dispatcher and driver identification for DRM Patrik Jakobsson
2015-07-01 12:52 ` [PATCH v3 4/5] drm: Add decoding of i915 ioctls Patrik Jakobsson
2015-07-03  0:36   ` Dmitry V. Levin
     [not found]     ` <20150703003609.GB29080-u2l5PoMzF/Vg9hUCZPvPmw@public.gmane.org>
2015-07-06 10:35       ` Patrik Jakobsson
2015-07-06 14:40         ` Gabriel Laskar
2015-07-08  0:11           ` Dmitry V. Levin
2015-07-10 12:36             ` Patrik Jakobsson
2015-07-10 12:57               ` Dmitry V. Levin
2015-07-01 12:52 ` [PATCH v3 5/5] drm: Add decoding of DRM and KMS ioctls Patrik Jakobsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox