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

[Xen-devel] [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD



tools/xencov: MAP_LOCKED is Linux specific. NetBSD's equivalent is MAP_WIRED.

From: Miguel Clara <miguelmclara@xxxxxxxxx>
Signed-off-by: Christoph Egger <chegger@xxxxxxxxx>

diff -r f1fa13daf4b7 -r 97a4f7e36a8f tools/misc/xencov.c
--- a/tools/misc/xencov.c       Fri May 10 13:45:02 2013 +0000
+++ b/tools/misc/xencov.c       Thu May 30 12:40:13 2013 +0000
@@ -26,6 +26,11 @@
 #include <err.h>
 #include <sys/mman.h>
 
+#ifdef __NetBSD__
+/* MAP_LOCKED is Linux specific. MAP_WIRED is NetBSD's equivalent. */
+#define MAP_LOCKED MAP_WIRED
+#endif
+
 static xc_interface *gcov_xch = NULL;
 
 static void gcov_init(void)

Attachment: patch_xencov.diff
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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