* tools/misc/xencov.c: build failure on NetBSD
@ 2013-05-14 13:04 Christoph Egger
2013-05-22 23:43 ` Miguel Clara
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Egger @ 2013-05-14 13:04 UTC (permalink / raw)
To: xen-devel
Hi,
tools/misc/xencov.c fails to build.
NetBSD does not have MAP_LOCKED.
Christoph
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-14 13:04 tools/misc/xencov.c: build failure on NetBSD Christoph Egger
@ 2013-05-22 23:43 ` Miguel Clara
2013-05-23 1:04 ` Miguel Clara
2013-05-23 9:13 ` Ian Campbell
0 siblings, 2 replies; 8+ messages in thread
From: Miguel Clara @ 2013-05-22 23:43 UTC (permalink / raw)
To: xen-devel
Christoph Egger <chegger <at> amazon.de> writes:
>
> Hi,
>
> tools/misc/xencov.c fails to build.
> NetBSD does not have MAP_LOCKED.
>
> Christoph
>
I wanted to test 4.3 on NetBSD but ended up with this problem too... In fact
this happened before in other parts of the code...
http://lists.xen.org/archives/html/xen-devel/2012-06/msg00576.html
I guess this would fix it...
#ifdef __NetBSD__
/* MAP_LOCKED is Linux specific. MAP_WIRED is NetBSD's equivalent. */
#define MAP_LOCKED MAP_WIRED
#endif
Sadly I came across another error, still searching if it was already posted,
otherwise I will!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-22 23:43 ` Miguel Clara
@ 2013-05-23 1:04 ` Miguel Clara
2013-05-23 9:14 ` Ian Campbell
2013-05-23 9:13 ` Ian Campbell
1 sibling, 1 reply; 8+ messages in thread
From: Miguel Clara @ 2013-05-23 1:04 UTC (permalink / raw)
To: xen-devel
>
> Sadly I came across another error, still searching if it was already posted,
> otherwise I will!
Acctually the other error was about libxl (array subscript has type
'char' ) this was already mentioned!
>
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-23 1:04 ` Miguel Clara
@ 2013-05-23 9:14 ` Ian Campbell
2013-05-23 11:02 ` Miguel Clara
0 siblings, 1 reply; 8+ messages in thread
From: Ian Campbell @ 2013-05-23 9:14 UTC (permalink / raw)
To: Miguel Clara; +Cc: xen-devel
On Thu, 2013-05-23 at 02:04 +0100, Miguel Clara wrote:
> >
> > Sadly I came across another error, still searching if it was already posted,
> > otherwise I will!
>
> Acctually the other error was about libxl (array subscript has type
> 'char' ) this was already mentioned!
DO you have a reference? Was there a patch?
Ian.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-22 23:43 ` Miguel Clara
2013-05-23 1:04 ` Miguel Clara
@ 2013-05-23 9:13 ` Ian Campbell
2013-05-23 10:59 ` Miguel Clara
1 sibling, 1 reply; 8+ messages in thread
From: Ian Campbell @ 2013-05-23 9:13 UTC (permalink / raw)
To: Miguel Clara; +Cc: xen-devel
On Wed, 2013-05-22 at 23:43 +0000, Miguel Clara wrote:
> Christoph Egger <chegger <at> amazon.de> writes:
>
> >
> > Hi,
> >
> > tools/misc/xencov.c fails to build.
> > NetBSD does not have MAP_LOCKED.
> >
> > Christoph
> >
>
> I wanted to test 4.3 on NetBSD but ended up with this problem too... In fact
> this happened before in other parts of the code...
> http://lists.xen.org/archives/html/xen-devel/2012-06/msg00576.html
>
> I guess this would fix it...
Please can you confirm and if so submit a patch
See http://wiki.xen.org/wiki/Submitting_Xen_Patches for some hints on
how to do that.
>
> #ifdef __NetBSD__
> /* MAP_LOCKED is Linux specific. MAP_WIRED is NetBSD's equivalent. */
> #define MAP_LOCKED MAP_WIRED
> #endif
>
> Sadly I came across another error, still searching if it was already posted,
> otherwise I will!
>
>
>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-23 9:13 ` Ian Campbell
@ 2013-05-23 10:59 ` Miguel Clara
2013-05-30 12:43 ` Egger, Christoph
0 siblings, 1 reply; 8+ messages in thread
From: Miguel Clara @ 2013-05-23 10:59 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
[-- Attachment #1: Type: text/plain, Size: 1202 bytes --]
For now I simply added the code to tools/misc/xencov.c
Not sure if its the best way to do it.
On Thu, May 23, 2013 at 10:13 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Wed, 2013-05-22 at 23:43 +0000, Miguel Clara wrote:
>> Christoph Egger <chegger <at> amazon.de> writes:
>>
>> >
>> > Hi,
>> >
>> > tools/misc/xencov.c fails to build.
>> > NetBSD does not have MAP_LOCKED.
>> >
>> > Christoph
>> >
>>
>> I wanted to test 4.3 on NetBSD but ended up with this problem too... In fact
>> this happened before in other parts of the code...
>> http://lists.xen.org/archives/html/xen-devel/2012-06/msg00576.html
>>
>> I guess this would fix it...
>
> Please can you confirm and if so submit a patch
>
> See http://wiki.xen.org/wiki/Submitting_Xen_Patches for some hints on
> how to do that.
>
>>
>> #ifdef __NetBSD__
>> /* MAP_LOCKED is Linux specific. MAP_WIRED is NetBSD's equivalent. */
>> #define MAP_LOCKED MAP_WIRED
>> #endif
>>
>> Sadly I came across another error, still searching if it was already posted,
>> otherwise I will!
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xen.org
>> http://lists.xen.org/xen-devel
>
>
[-- Attachment #2: xencov.c_netbsd.patch --]
[-- Type: application/octet-stream, Size: 384 bytes --]
--- tools/misc/xencov.c 2013-05-23 01:09:18.000000000 +0000
+++ xencov.c_netbsd.patch 2013-05-23 01:04:49.000000000 +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] 8+ messages in thread
* Re: tools/misc/xencov.c: build failure on NetBSD
2013-05-23 10:59 ` Miguel Clara
@ 2013-05-30 12:43 ` Egger, Christoph
0 siblings, 0 replies; 8+ messages in thread
From: Egger, Christoph @ 2013-05-30 12:43 UTC (permalink / raw)
To: Miguel Clara; +Cc: xen-devel, Ian Campbell
On 23.05.13 12:59, Miguel Clara wrote:
> For now I simply added the code to tools/misc/xencov.c
>
> Not sure if its the best way to do it.
>
> On Thu, May 23, 2013 at 10:13 AM, Ian Campbell <Ian.Campbell@citrix.com> wrote:
>> On Wed, 2013-05-22 at 23:43 +0000, Miguel Clara wrote:
>>> Christoph Egger <chegger <at> amazon.de> writes:
>>>
>>>>
>>>> Hi,
>>>>
>>>> tools/misc/xencov.c fails to build.
>>>> NetBSD does not have MAP_LOCKED.
>>>>
>>>> Christoph
>>>>
>>>
>>> I wanted to test 4.3 on NetBSD but ended up with this problem too... In fact
>>> this happened before in other parts of the code...
>>> http://lists.xen.org/archives/html/xen-devel/2012-06/msg00576.html
>>>
>>> I guess this would fix it...
>>
>> Please can you confirm and if so submit a patch
>>
>> See http://wiki.xen.org/wiki/Submitting_Xen_Patches for some hints on
>> how to do that.
>>
>>>
>>> #ifdef __NetBSD__
>>> /* MAP_LOCKED is Linux specific. MAP_WIRED is NetBSD's equivalent. */
>>> #define MAP_LOCKED MAP_WIRED
>>> #endif
>>>
>>> Sadly I came across another error, still searching if it was already posted,
>>> otherwise I will!
I send this as a proper patch. Please add your Signed-off-by.
Christoph
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-05-30 12:43 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 13:04 tools/misc/xencov.c: build failure on NetBSD Christoph Egger
2013-05-22 23:43 ` Miguel Clara
2013-05-23 1:04 ` Miguel Clara
2013-05-23 9:14 ` Ian Campbell
2013-05-23 11:02 ` Miguel Clara
2013-05-23 9:13 ` Ian Campbell
2013-05-23 10:59 ` Miguel Clara
2013-05-30 12:43 ` 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.