[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.