aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xentrace/xentrace.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-02-12 11:37:45 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-02-12 11:37:45 +0000
commit67bfbd67d1311a1a590b47e568a07622d4492873 (patch)
tree17fb757a0b4179d91042dcb8bf3fdb3859925fba /tools/xentrace/xentrace.c
parentb3a389fdfc3a1fe19fd7094b0180e97d49c186dd (diff)
downloadxen-67bfbd67d1311a1a590b47e568a07622d4492873.tar.gz
xen-67bfbd67d1311a1a590b47e568a07622d4492873.tar.bz2
xen-67bfbd67d1311a1a590b47e568a07622d4492873.zip
libxenctrl headers should not pollute macro namespace with
mb/rmb/wmb. Instead add a xen_ prefix. Modify Xen's public headers to expect the prefixed names instead of bare mb/rmb/wmb, but gate this expectation on a bump of __XEN_INTERFACE_VERSION__. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/xentrace/xentrace.c')
-rw-r--r--tools/xentrace/xentrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/xentrace/xentrace.c b/tools/xentrace/xentrace.c
index 0879576645..7f394d2af0 100644
--- a/tools/xentrace/xentrace.c
+++ b/tools/xentrace/xentrace.c
@@ -384,8 +384,8 @@ int monitor_tbufs(int outfd)
/* Read window information only once. */
cons = meta[i]->cons;
prod = meta[i]->prod;
- rmb(); /* read prod, then read item. */
-
+ xen_rmb(); /* read prod, then read item. */
+
if ( cons == prod )
continue;
@@ -428,7 +428,7 @@ int monitor_tbufs(int outfd)
outfd);
}
- mb(); /* read buffer, then update cons. */
+ xen_mb(); /* read buffer, then update cons. */
meta[i]->cons = prod;
}