WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xenbaked: Fix for new trace format.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xenbaked: Fix for new trace format.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Oct 2007 17:41:41 -0700
Delivery-date: Thu, 04 Oct 2007 18:29:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1191487120 -3600
# Node ID 1c298e2fbc9219644ebdb2c908bc86ab25987070
# Parent  d24787ece0e0779bc4914fa486a56d129dd66d42
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
---
 tools/xenmon/xenbaked.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -r d24787ece0e0 -r 1c298e2fbc92 tools/xenmon/xenbaked.c
--- a/tools/xenmon/xenbaked.c   Thu Oct 04 09:37:33 2007 +0100
+++ b/tools/xenmon/xenbaked.c   Thu Oct 04 09:38:40 2007 +0100
@@ -478,7 +478,7 @@ int monitor_tbufs(void)
 
     void *tbufs_mapped;          /* pointer to where the tbufs are mapped    */
     struct t_buf **meta;         /* pointers to the trace buffer metadata    */
-    struct t_rec **data;         /* pointers to the trace buffer data areas
+    char         **data;         /* pointers to the trace buffer data areas
                                   * where they are mapped into user space.   */
     unsigned long tbufs_mfn;     /* mfn of the tbufs                         */
     unsigned int  num;           /* number of trace buffers / logical CPUS   */
@@ -503,7 +503,7 @@ int monitor_tbufs(void)
 
     /* build arrays of convenience ptrs */
     meta  = init_bufs_ptrs (tbufs_mapped, num, size);
-    data  = init_rec_ptrs(meta, num);
+    data  = (char **)init_rec_ptrs(meta, num);
 
     if ( eventchn_init() < 0 )
         fprintf(stderr, "Failed to initialize event channel; "
@@ -518,7 +518,7 @@ int monitor_tbufs(void)
             {
                 rmb(); /* read prod, then read item. */
                 rec_size = process_record(
-                    i, data[i] + meta[i]->cons % data_size);
+                    i, (struct t_rec *)(data[i] + meta[i]->cons % data_size));
                 mb(); /* read item, then update cons. */
                 meta[i]->cons += rec_size;
             }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xenbaked: Fix for new trace format., Xen patchbot-unstable <=