xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Egger <chegger@amazon.de>
To: xen-devel <xen-devel@lists.xen.org>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
	Miguel Clara <miguelmclara@gmail.com>
Subject: [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD
Date: Thu, 30 May 2013 14:46:47 +0200	[thread overview]
Message-ID: <51A74A37.5070502@amazon.de> (raw)

[-- 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

             reply	other threads:[~2013-05-30 12:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30 12:46 Christoph Egger [this message]
2013-05-31 11:25 ` [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51A74A37.5070502@amazon.de \
    --to=chegger@amazon.de \
    --cc=Ian.Campbell@citrix.com \
    --cc=miguelmclara@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).