From f0d030862f13d3d73b72e87d4ce2a0d9150dd562 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 28 Oct 2011 23:29:49 +0200 Subject: [PATCH] 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 --- libust/lttng-ust-comm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libust/lttng-ust-comm.c b/libust/lttng-ust-comm.c index ba600536..5f518125 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 " -- 2.34.1