Zhibin Li's GSoC status report - #10 of 12
haoyouab at gmail.com
Tue Aug 6 05:39:53 UTC 2019
> - This one is a big change in my patch (at least to me, it is). I tried
> what esyr suggested, providing fallback definitions of DRM_IOCTL related
> structures and all those constants in strace/linux/linux/drm.h. There is
> a drm_mode.h, too. I'm not sure if this is compliant with strace's
> tradition (probably not) so I hope I can get feedbacks :).
> For now, the changes are in . I simply bundle the latest kernel headers
> (ioc32 compat definitions are included) up in strace to see if it works.
> I met a weird condition here. Some mx32 tests failed on travis-ci and part
of the logs are listed below:
-ioctl(-1, DRM_IOCTL_VERSION, NULL) = -1 EBADF (Bad file descriptor)
+ioctl(-1, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0, 0x40), 0) = -1 EBADF (Bad
Obviously it's ouput mismatch but the thing I don't understand is why only
mx32, not m32? In m32 and mx32 the size of the corresponding structure are
both 0x24 bytes. I found that mpers-m32/struct_drm_vesion.h is generated
with the right compat size but structure in mpers-mx32/struct_drm_version.h
is 0x40 bytes, which is not a compat one. I wonder how this is generated?
The other thing weird is that on my local machine, structure for mx32 is
0x24, which is different from the one on travis-ci. Is that because I use a
newer distribution or kernel?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Strace-devel