|
From: Tom H. <th...@cy...> - 2004-04-21 15:52:46
|
CVS commit by thughes:
Add support for the FBIOGET_VSCREENINFO and FBIOGET_FSCREENINFO ioctls
based on a patch from Paul Olav Tvete <pa...@tr...>.
CCMAIL: 770...@bu...
M +20 -0 vg_syscalls.c 1.94
M +1 -0 vg_unsafe.h 1.26
--- valgrind/coregrind/vg_syscalls.c #1.93:1.94
@@ -3232,4 +3232,15 @@ PRE(ioctl)
break;
+ case FBIOGET_VSCREENINFO: /* 0x4600 */
+ SYSCALL_TRACK( pre_mem_write,tid,
+ "ioctl(FBIOGET_VSCREENINFO)", arg3,
+ sizeof(struct fb_var_screeninfo));
+ break;
+ case FBIOGET_FSCREENINFO: /* 0x4602 */
+ SYSCALL_TRACK( pre_mem_write,tid,
+ "ioctl(FBIOGET_FSCREENINFO)", arg3,
+ sizeof(struct fb_fix_screeninfo));
+ break;
+
/* We don't have any specific information on it, so
try to do something reasonable based on direction and
@@ -3585,4 +3596,13 @@ POST(ioctl)
break;
+ case FBIOGET_VSCREENINFO: //0x4600
+ if (res == 0)
+ VG_TRACK( post_mem_write,arg3, sizeof(struct fb_var_screeninfo));
+ break;
+ case FBIOGET_FSCREENINFO: //0x4602
+ if (res == 0)
+ VG_TRACK( post_mem_write,arg3, sizeof(struct fb_fix_screeninfo));
+ break;
+
/* We don't have any specific information on it, so
try to do something reasonable based on direction and
--- valgrind/coregrind/vg_unsafe.h #1.25:1.26
@@ -64,4 +64,5 @@
#include <signal.h> /* for siginfo_t */
#include <linux/timex.h> /* for adjtimex */
+#include <linux/fb.h> /* for fb_* structs */
#define __USE_LARGEFILE64
|