search for: post_xen_sysctl_write

Displaying 2 results from an estimated 2 matches for "post_xen_sysctl_write".

2012 Sep 04
2
[PATCH] valgrind: Support for ioctls used by Xen toolstack processes.
...sizeof(*gst->frame_list.p) & gst->nr_frames); + break; + } + } +} + +POST(sysctl) +{ + struct xen_sysctl *sysctl = (struct xen_sysctl *)(unsigned int)ARG1; + + if (!sysctl || sysctl->interface_version != XEN_SYSCTL_INTERFACE_VERSION) + return; + +#define __POST_XEN_SYSCTL_WRITE(_sysctl, _union, _field) \ + POST_MEM_WRITE((Addr)&sysctl->u._union._field, \ + sizeof(sysctl->u._union._field)) +#define POST_XEN_SYSCTL_WRITE(_sysctl, _field) \ + __POST_XEN_SYSCTL_WRITE(_sysctl, _sysctl, _field) + + switch (sysctl->c...
2012 Oct 11
0
Re: [Valgrind-developers] [PATCH 1/4] Useful messages for sys/domctl interface_version mismatch.
...STATUS_Failure(VKI_EINVAL); > return; > + } > > #define __PRE_XEN_DOMCTL_READ(_domctl, _union, _field) \ > PRE_MEM_READ("XEN_DOMCTL_" # _domctl, \ > @@ -740,11 +775,14 @@ POST(sysctl) > > case XEN_SYSCTL_topologyinfo: > POST_XEN_SYSCTL_WRITE(topologyinfo, max_cpu_index); > - POST_MEM_WRITE((Addr)sysctl->u.topologyinfo.cpu_to_core.p, > + if (sysctl->u.topologyinfo.cpu_to_core.p) > + POST_MEM_WRITE((Addr)sysctl->u.topologyinfo.cpu_to_core.p, > sizeof(uint32_t) * > sysctl-&gt...