|
From: Julian S. <se...@so...> - 2019-07-11 15:48:45
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=4443b782c4deddabcf4a2cbd7fe923cb22f87bf8 commit 4443b782c4deddabcf4a2cbd7fe923cb22f87bf8 Author: Julian Seward <js...@ac...> Date: Thu Jul 11 17:46:47 2019 +0200 Bug 350228 - Unhandled ioctl 0x6458 (i965/mesa). Patch from aus...@gm.... Diff: --- README_MISSING_SYSCALL_OR_IOCTL | 4 ++++ coregrind/m_syswrap/syswrap-linux.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/README_MISSING_SYSCALL_OR_IOCTL b/README_MISSING_SYSCALL_OR_IOCTL index 24af45b..0019951 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 2fe15d9..9d9a1d4 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); |