All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD
@ 2013-05-30 12:46 Christoph Egger
  2013-05-31 11:25 ` Ian Campbell
  0 siblings, 1 reply; 11+ messages in thread
From: Christoph Egger @ 2013-05-30 12:46 UTC (permalink / raw)
  To: xen-devel; +Cc: Ian Campbell, Miguel Clara

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

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

From: Miguel Clara <miguelmclara@gmail.com>
Signed-off-by: Christoph Egger <chegger@amazon.de>

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 #2: patch_xencov.diff --]
[-- Type: text/plain, Size: 794 bytes --]

# HG changeset patch
# User Christoph Egger <chegger@amazon.de>
# Date 1369917613 0
# Node ID 97a4f7e36a8fb0bc37f8a6dc04a0e33b1bc9835d
# Parent  f1fa13daf4b78b027f081aca5be24cfa96813b42
tools/xencov: MAP_LOCKED is Linux specific. NetBSD's equivalent is MAP_WIRED.

From: Miguel Clara <miguelmclara@gmail.com>
Signed-off-by: Christoph Egger <chegger@amazon.de>

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 #3: Type: text/plain, Size: 126 bytes --]

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-06-27 11:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-30 12:46 [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD Christoph Egger
2013-05-31 11:25 ` Ian Campbell
2013-06-11 13:46   ` Frediano Ziglio
2013-06-12  9:21     ` Ian Campbell
2013-06-12 12:02       ` Frediano Ziglio
2013-06-12 12:14         ` Ian Campbell
2013-06-12 13:13           ` George Dunlap
2013-06-12 13:16             ` Ian Campbell
2013-06-12 15:25             ` Frediano Ziglio
2013-06-27 11:31             ` Ian Campbell
2013-06-13  9:47         ` Egger, Christoph

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.