From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Subject: [PATCH] libxc: fix tracing (broken with hypercall buffers) Date: Tue, 16 Nov 2010 12:28:26 +0100 Message-ID: <4CE26ADA.5080309@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080309050107030401070804" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson , Stefano Stabellini , George Dunlap Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --------------080309050107030401070804 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit 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. Signed-off-by: Andre Przywara Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12 --------------080309050107030401070804 Content-Type: text/x-patch; name="libxc_fix_tracing_hypercall_buffers.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="libxc_fix_tracing_hypercall_buffers.patch" Content-Description: libxc_fix_tracing_hypercall_buffers.patch diff -r 87f248de5230 tools/libxc/xc_tbuf.c --- a/tools/libxc/xc_tbuf.c Mon Nov 15 09:31:38 2010 +0000 +++ b/tools/libxc/xc_tbuf.c Tue Nov 16 10:11:39 2010 +0100 @@ -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; --------------080309050107030401070804 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------080309050107030401070804--