aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenmon
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-04 09:38:40 +0100
committerKeir Fraser <keir@xensource.com>2007-10-04 09:38:40 +0100
commit523a607a40b0646e4e2a774a5dd629e65be7fcad (patch)
tree7fc26113bfc512f682a53799b35e49402a6b7a50 /tools/xenmon
parentb470f96ea7c88a68a350c206fcc61685ba23d242 (diff)
downloadxen-523a607a40b0646e4e2a774a5dd629e65be7fcad.tar.gz
xen-523a607a40b0646e4e2a774a5dd629e65be7fcad.tar.bz2
xen-523a607a40b0646e4e2a774a5dd629e65be7fcad.zip
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Diffstat (limited to 'tools/xenmon')
-rw-r--r--tools/xenmon/xenbaked.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/xenmon/xenbaked.c b/tools/xenmon/xenbaked.c
index 27125a3142..35bc8a89e2 100644
--- a/tools/xenmon/xenbaked.c
+++ b/tools/xenmon/xenbaked.c
@@ -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;
}