From: Mathieu Desnoyers Date: Fri, 28 Oct 2011 21:29:49 +0000 (+0200) Subject: futex error should be a warning X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=f0d030862f13d3d73b72e87d4ce2a0d9150dd562;hp=7d98296936e6db0d1d8ab2cfffca3ca2d17261a3;p=ust.git futex error should be a warning * Matthew Khouzam (matthew.khouzam@ericsson.com) wrote: > Hi tracing warlords, > I am testing UST 2.0 on ubuntu Lucid Lynx, and I got the following > message while running a program: > libust[22376/22377]: Error: Linux kernels 2.6.33 to 3.0 (with the > exception of stable versions) do not support FUTEX_WAKE on read-only > memory mappings correctly. Please upgrade your kernel (fix is commit > 9ea71503a8ed9184d2d0b8ccc4d269d05f7940ae in Linux kernel mainline). > LTTng-UST will use polling mode fallback. (in wait_for_sessiond() at > lttng-ust-comm.c:564) > > I think since there is a fallback, and this is not a showstopper just an > irritation that it should be a warning. Reported-by: Matthew Khouzam Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index ba60053..5f51812 100644 --- a/libust/lttng-ust-comm.c +++ b/libust/lttng-ust-comm.c @@ -556,7 +556,7 @@ void wait_for_sessiond(struct sock_info *sock_info) if (ret < 0) { if (errno == EFAULT) { wait_poll_fallback = 1; - ERR( + WARN( "Linux kernels 2.6.33 to 3.0 (with the exception of stable versions) " "do not support FUTEX_WAKE on read-only memory mappings correctly. " "Please upgrade your kernel "