[RFC PATCH v3 0/3] Add decoding of general DRM ioctl

Zhibin Li haoyouab at gmail.com
Sat Jul 27 15:55:55 UTC 2019


In this version of patch set, I add almost all the general DRM ioctls
including the updates in recent mainline kernel. There is too much code
so I might not notice all the errors or mistakes in it. That's why I put
RFC in the title again.

Zhibin Li (3):
  drm: add config for detecting libdrm
  drm: implement decoding of DRM ioctls
  tests: add tests for DRM ioctl decoding

 Makefile.am                      |    2 +
 configure.ac                     |    9 +
 defs.h                           |    2 +
 drm.c                            | 1531 ++++++++++++++++++++
 drm_mpers.c                      |  815 +++++++++++
 ioctl.c                          |    8 +
 tests/.gitignore                 |    2 +
 tests/Makefile.am                |    2 +
 tests/gen_tests.in               |    1 +
 tests/ioctl_drm-success.c        | 2289 ++++++++++++++++++++++++++++++
 tests/ioctl_drm-success.test     |   18 +
 tests/ioctl_drm.c                |  192 +++
 tests/pure_executables.list      |    1 +
 xlat/drm_buf_desc_flags.in       |    5 +
 xlat/drm_capability.in           |   14 +
 xlat/drm_client_capability.in    |    5 +
 xlat/drm_control_func.in         |    4 +
 xlat/drm_crtc_sequence_flags.in  |    2 +
 xlat/drm_ctx_flags.in            |    2 +
 xlat/drm_lock_flags.in           |    6 +
 xlat/drm_map_flags.in            |    8 +
 xlat/drm_map_type.in             |    6 +
 xlat/drm_mode_encoder_type.in    |    9 +
 xlat/drm_mode_flags.in           |    6 +
 xlat/drm_mode_page_flip_flags.in |    6 +
 xlat/drm_mode_type.in            |    8 +
 xlat/drm_modeset_cmd.in          |    2 +
 xlat/drm_stat_type.in            |   15 +
 xlat/drm_syncobj_flags.in        |    1 +
 xlat/drm_syncobj_wait_flags.in   |    3 +
 xlat/drm_vblank_seq_type.in      |    8 +
 31 files changed, 4982 insertions(+)
 create mode 100644 drm.c
 create mode 100644 drm_mpers.c
 create mode 100644 tests/ioctl_drm-success.c
 create mode 100755 tests/ioctl_drm-success.test
 create mode 100644 tests/ioctl_drm.c
 create mode 100644 xlat/drm_buf_desc_flags.in
 create mode 100644 xlat/drm_capability.in
 create mode 100644 xlat/drm_client_capability.in
 create mode 100644 xlat/drm_control_func.in
 create mode 100644 xlat/drm_crtc_sequence_flags.in
 create mode 100644 xlat/drm_ctx_flags.in
 create mode 100644 xlat/drm_lock_flags.in
 create mode 100644 xlat/drm_map_flags.in
 create mode 100644 xlat/drm_map_type.in
 create mode 100644 xlat/drm_mode_encoder_type.in
 create mode 100644 xlat/drm_mode_flags.in
 create mode 100644 xlat/drm_mode_page_flip_flags.in
 create mode 100644 xlat/drm_mode_type.in
 create mode 100644 xlat/drm_modeset_cmd.in
 create mode 100644 xlat/drm_stat_type.in
 create mode 100644 xlat/drm_syncobj_flags.in
 create mode 100644 xlat/drm_syncobj_wait_flags.in
 create mode 100644 xlat/drm_vblank_seq_type.in

-- 
2.20.1



More information about the Strace-devel mailing list