Displaying 2 results from an estimated 2 matches for "pre_mem_read".
2012 Sep 04
2
[PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
...g[3];
+ harrghs.arg5 = args->arg[4];
+ harrghs.arg6 = harrghs.arg7 = harrghs.arg8 = 0;
+
+ WRAPPER_PRE_NAME(xen, hypercall) (tid, layout, &harrghs, status, flags);
+
+ /* HACK. arg8 is used to return the number of hypercall
+ * arguments actually consumed! */
+ PRE_MEM_READ("hypercall", ARG3, sizeof(args->op) +
+ ( sizeof(args->arg[0]) * harrghs.arg8 ) );
+
+ break;
+ }
+
+ case VKI_XEN_IOCTL_PRIVCMD_MMAP: {
+ struct vki_xen_privcmd_mmap *args =
+ (struct vki_xen_privcmd_mmap *)(ARG3);
+ PRE_MEM_READ(&qu...
2012 Oct 11
0
Re: [Valgrind-developers] [PATCH 1/4] Useful messages for sys/domctl interface_version mismatch.
.../m_syswrap/syswrap-xen.c
> +++ b/coregrind/m_syswrap/syswrap-xen.c
> @@ -59,6 +59,7 @@
> #include "priv_syswrap-xen.h"
>
> #include <stdint.h>
> +#include <inttypes.h>
>
> #define __XEN_TOOLS__
>
> @@ -353,9 +354,26 @@ PRE(sysctl) {
> PRE_MEM_READ("__HYPERVISOR_sysctl", ARG1,
> sizeof(uint32_t) + sizeof(uint32_t));
>
> - if (!sysctl || sysctl->interface_version !=
> XEN_SYSCTL_INTERFACE_VERSION) - /* BUG ? */
> + if (!sysctl)
> + return;
> +
> + if (sysctl->interface_v...