[PATCH v2 0/3] Add decoding of general DRM ioctl
Zhibin Li
haoyouab at gmail.com
Sat Jun 22 08:36:06 UTC 2019
Changes are made according to the feedbacks I got from mailing list.
Since the tests part remain unchanged, I only send v2 with patch 2/3.
Changelogs:
Changes in V2:
- Removed unused/redundant code.
- ifdef the whole bulk of drm parsers.
- Use print_drm_iowr() function instead of a macro.
- Print read-write ioctl in traditional way.
- Skip lookup for DRM_IOCTL_MODE_GETCONNECTOR with size 0x4c
and added a comment to explain it.
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 | 630 +++++++++++++++++++++++++
drm_mpers.c | 205 ++++++++
ioctl.c | 8 +
tests/.gitignore | 2 +
tests/Makefile.am | 2 +
tests/gen_tests.in | 1 +
tests/ioctl_drm-success.c | 881 +++++++++++++++++++++++++++++++++++
tests/ioctl_drm-success.test | 18 +
tests/ioctl_drm.c | 90 ++++
tests/pure_executables.list | 1 +
13 files changed, 1851 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
--
2.21.0
More information about the Strace-devel
mailing list