From: Julian Seward Date: Thu, 11 Jul 2019 15:46:47 +0000 (+0200) Subject: Bug 350228 - Unhandled ioctl 0x6458 (i965/mesa). Patch from austinenglish@gmail... X-Git-Tag: VALGRIND_3_16_0~252 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4443b782c4deddabcf4a2cbd7fe923cb22f87bf8;p=thirdparty%2Fvalgrind.git Bug 350228 - Unhandled ioctl 0x6458 (i965/mesa). Patch from austinenglish@gmail.com. --- diff --git a/README_MISSING_SYSCALL_OR_IOCTL b/README_MISSING_SYSCALL_OR_IOCTL index 24af45bf42..0019951e75 100644 --- a/README_MISSING_SYSCALL_OR_IOCTL +++ b/README_MISSING_SYSCALL_OR_IOCTL @@ -112,6 +112,10 @@ following: This should tell you something like __NR_mysyscallname. Copy this entry to include/vki/vki-scnums-$(VG_PLATFORM).h. + If you can't find the system call in /usr/include, try looking in the + strace source code (https://github.com/strace/strace). Some syscalls/ioctls + are not defined explicitly, but strace may have already figured it out. + 2. Do 'man 2 mysyscallname' to get some idea of what the syscall does. Note that the actual kernel interface can differ from this, diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 2fe15d97b6..9d9a1d4eab 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -6499,6 +6499,9 @@ PRE(sys_ioctl) /* V4L2 */ case VKI_V4L2_LOG_STATUS: + /* Mesa */ + case VKI_DRM_IOCTL_I915_GEM_THROTTLE: + /* DVB */ case VKI_DMX_STOP: PRINT("sys_ioctl ( %" FMT_REGWORD "u, 0x%" FMT_REGWORD "x )", ARG1, ARG2);