Skip to contentSkip to conversation

libxc: fix tracing (broken with hypercall buffers)

PATCH Applied Andre Przywara 3 participants 3 messages Nov 16, 2010 – Nov 19, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxc: fix tracing (broken with hypercall buffers)

Hi,

the attached patch makes Xen tracing work again, after the introduction of the hypercall buffers broke it. Just a missing line.

Thanks to Uwe Dannowski for reporting this.

Regards,
Andre.

Signature · 3 lines
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448-3567-12
tools/libxc/xc_tbuf.c +1 -0
diff -r 87f248de5230 tools/libxc/xc_tbuf.c
@@ -121,6 +121,7 @@
     uint64_t mask64 = mask;
 
     bytemap = xc_hypercall_buffer_alloc(xch, bytemap, sizeof(mask64));
+    if (bytemap == NULL)
     {
         PERROR("Could not allocate memory for xc_tbuf_set_cpu_mask hypercall");
         goto out;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#2 lore raw

Re: [PATCH] libxc: fix tracing (broken with hypercall buffers) [and 1 more messages]

In reply to Andre Przywara

Andre Przywara writes ("[PATCH] libxc: fix tracing (broken with hypercall buffers)"):

Quoted 2 lines

the attached patch makes Xen tracing work again, after the introduction of the hypercall buffers broke it. Just a missing line.

Applied, thanks.

Ian.