ldv changed the topic of #strace to: https://strace.io | https://strace.io/logs/ | strace 5.0 is out | strace-devel@lists.strace.io for dev discussions
<ZhibinLi> Hi, I've got a question about the DRM ioctl decoding.
<ZhibinLi> I based my work on Patrik's series of patches regarding DRM ioctl decoding and I tried to fix the issues I found in those patches.
<ZhibinLi> Then I wrote some tests for them but I saw that builds on travis-ci always failed.
<ZhibinLi> https://github.com/haoyouab/strace/commits/stuff you can find what I've done in my branch
<ZhibinLi> speaking of the question, I saw the failure always comes from this specific macro DRM_IOCTL_MODE_GETCONNECTOR
<ZhibinLi> I've tried on my own machine and some other environment which is similar to what travis-ci is using and the tests passed.
<ZhibinLi> but on travis-ci, I got this "ioctl(-1, _IOC(_IOC_READ|_IOC_WRITE, 0x64, 0xa7, 0x4c), NULL) = -1 EBADF (Bad file descriptor)" when decoding DRM_IOCTL_MODE_GETCONNECTOR
<ZhibinLi> I thought it's because DRM_IOCTL_MODE_GETCONNECTOR is undefined so I tried to add #ifdef ... #endif around DRM_IOCTL_MODE_GETCONNECTOR in the tests but the problem is still there.
<ZhibinLi> Could anyone point me out what I've done wrong? Or any source code I should look into carefully?
<daniellimws> ldv: yup I had, and found a feature request that I am interested to work on, just wondering about fixing some other bugs after that
sscox has joined #strace
wladmis has quit [Ping timeout: 250 seconds]
wladmis has joined #strace
ZhibinLi has quit [Quit: Page closed]
pombreda has quit [Ping timeout: 246 seconds]
emachado has joined #strace
emachado has quit [Quit: Leaving]
pombreda has joined #strace
emachado has joined #strace
ZhibinLi has joined #strace
<ZhibinLi> shouldn't the size of 'struct drm_mode_get_connector' be the same on both 32-bit and 64-bit? It's supposed to be 0x50, any idea why I got this 0x4c when running tests-m32?
ZhibinLi has quit [Client Quit]
ZhibinLi has joined #strace
<ZhibinLi> BTW it seems the commit from linux kernel v3.12-rc7~26^2~2 was trying to fix this padding problem.
ZhibinLi has quit [Client Quit]
sscox has quit [Ping timeout: 255 seconds]
mjw has joined #strace
sscox has joined #strace
sscox has quit [Quit: sscox]
sscox has joined #strace
sscox has quit [Ping timeout: 250 seconds]
sscox has joined #strace
emachado has quit [Quit: Leaving]
sscox has quit [Ping timeout: 250 seconds]
mjw has quit [Quit: Leaving]