From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH] tools/misc/xencov.c: Use MAP_WIRED on NetBSD Date: Thu, 30 May 2013 14:46:47 +0200 Message-ID: <51A74A37.5070502@amazon.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080306010407070306020006" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel Cc: Ian Campbell , Miguel Clara List-Id: xen-devel@lists.xenproject.org --------------080306010407070306020006 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit tools/xencov: MAP_LOCKED is Linux specific. NetBSD's equivalent is MAP_WIRED. From: Miguel Clara Signed-off-by: Christoph Egger 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 #include +#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) --------------080306010407070306020006 Content-Type: text/plain; charset="UTF-8"; name="patch_xencov.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch_xencov.diff" # HG changeset patch # User Christoph Egger # Date 1369917613 0 # Node ID 97a4f7e36a8fb0bc37f8a6dc04a0e33b1bc9835d # Parent f1fa13daf4b78b027f081aca5be24cfa96813b42 tools/xencov: MAP_LOCKED is Linux specific. NetBSD's equivalent is MAP_WIRED. From: Miguel Clara Signed-off-by: Christoph Egger 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 #include +#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) --------------080306010407070306020006 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --------------080306010407070306020006--