ia64/xen-unstable

changeset 16061:1c298e2fbc92

xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
author Keir Fraser <keir@xensource.com>
date Thu Oct 04 09:38:40 2007 +0100 (2007-10-04)
parents d24787ece0e0
children 5a9c89cd5c7e
files tools/xenmon/xenbaked.c
line diff
     1.1 --- a/tools/xenmon/xenbaked.c	Thu Oct 04 09:37:33 2007 +0100
     1.2 +++ b/tools/xenmon/xenbaked.c	Thu Oct 04 09:38:40 2007 +0100
     1.3 @@ -478,7 +478,7 @@ int monitor_tbufs(void)
     1.4  
     1.5      void *tbufs_mapped;          /* pointer to where the tbufs are mapped    */
     1.6      struct t_buf **meta;         /* pointers to the trace buffer metadata    */
     1.7 -    struct t_rec **data;         /* pointers to the trace buffer data areas
     1.8 +    char         **data;         /* pointers to the trace buffer data areas
     1.9                                    * where they are mapped into user space.   */
    1.10      unsigned long tbufs_mfn;     /* mfn of the tbufs                         */
    1.11      unsigned int  num;           /* number of trace buffers / logical CPUS   */
    1.12 @@ -503,7 +503,7 @@ int monitor_tbufs(void)
    1.13  
    1.14      /* build arrays of convenience ptrs */
    1.15      meta  = init_bufs_ptrs (tbufs_mapped, num, size);
    1.16 -    data  = init_rec_ptrs(meta, num);
    1.17 +    data  = (char **)init_rec_ptrs(meta, num);
    1.18  
    1.19      if ( eventchn_init() < 0 )
    1.20          fprintf(stderr, "Failed to initialize event channel; "
    1.21 @@ -518,7 +518,7 @@ int monitor_tbufs(void)
    1.22              {
    1.23                  rmb(); /* read prod, then read item. */
    1.24                  rec_size = process_record(
    1.25 -                    i, data[i] + meta[i]->cons % data_size);
    1.26 +                    i, (struct t_rec *)(data[i] + meta[i]->cons % data_size));
    1.27                  mb(); /* read item, then update cons. */
    1.28                  meta[i]->cons += rec_size;
    1.29              }