]> xenbits.xensource.com Git - xen.git/commitdiff
xentrace: XC_PAGE_SIZE should be used
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 21 Jan 2010 09:13:46 +0000 (09:13 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 21 Jan 2010 09:13:46 +0000 (09:13 +0000)
20827:fad80160c001 cannot be compiled on ia64:
  xentrace.c:647: error: 'PAGE_SIZE' undeclared (first use in this

This patch fixes it.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
tools/xentrace/xentrace.c

index b6da08e38cc7aa1f848538da19b1589459e28b09..7f63e7fc9d1f02ad88f39a4d0d3ebabf4a14cd93 100644 (file)
@@ -644,7 +644,7 @@ static int monitor_tbufs(void)
     get_tbufs(&tbufs_mfn, &tinfo_size);
     tbufs = map_tbufs(tbufs_mfn, num, tinfo_size);
 
-    size = tbufs->t_info->tbuf_size * PAGE_SIZE;
+    size = tbufs->t_info->tbuf_size * XC_PAGE_SIZE;
 
     data_size = size - sizeof(struct t_buf);