]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 350228 - Unhandled ioctl 0x6458 (i965/mesa). Patch from austinenglish@gmail...
authorJulian Seward <jseward@acm.org>
Thu, 11 Jul 2019 15:46:47 +0000 (17:46 +0200)
committerJulian Seward <jseward@acm.org>
Thu, 11 Jul 2019 15:46:47 +0000 (17:46 +0200)
README_MISSING_SYSCALL_OR_IOCTL
coregrind/m_syswrap/syswrap-linux.c

index 24af45bf4254ccb8302c96ca3cd2fde9fc104025..0019951e753a5921fe107661d73afe1b5cdcf089 100644 (file)
@@ -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,
index 2fe15d97b669b736e9543f1b959da4185c8d08f5..9d9a1d4eab8ebce179129b79a4dfbccc048f3cdb 100644 (file)
@@ -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);