<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><span id="zwchr" data-marker="__DIVIDER__">----- On Oct 24, 2016, at 11:23 AM, Gaylord Charles <gaylord.charles@veo-labs.com> wrote:<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br><br></div>I am currently testing LTTng latest versions with a PREEMPT_RT kernel (4.6.7-rt12). I've got:<br></div> - LTTng-modules 2.8.3<br></div> - LTTng-tools 2.8.2<br></div> - LTTng-UST 2.8.1<br><br></div>When calling "lttng create", the following message appears: <br>     Cannot add context lttng_add_preemptible_to_ctx<br>     Cannot add context lttng_add_migratable_to_ctx<br><br></div>A quick look at the source code (lttng-context.c) makes me wonder if there could be a bug. The "lttng_add_preemptible_to_ctx" function returns 0, so if my understanding is correct, there is no problem.<br></div>Do I miss something ?</div></div></blockquote><div><br></div><div>Fix pushed into master, stable-2.9, and stable-2.8 of lttng-modules:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>commit d0e59d6f099f4663cc62bffb59d960cd4235064f<br>Author: Mathieu Desnoyers <mathieu.desnoyers@efficios.com><br>Date:   Mon Oct 24 13:27:01 2016 -0400<br><br>    Fix: preemptible and migratable context error handling<br>    <br>    When built against preempt-rt and preempt kernels, the "return 0" case<br>    means success, but lttng-modules incorrectly prints an error in the<br>    kernel log.<br>    <br>    Given that we handle the -ENOSYS error in lttng_context_init, there is<br>    no need to keep the ifdefs in that function.<br>    <br>    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com><br><br data-mce-bogus="1"></div><div>Thanks for reporting!<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Mathieu<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div dir="ltr"><div><br><br></div>Regards.<br><div><div><div><div><div><div><div><div><div>Gaylord<br></div></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>lttng-dev mailing list<br>lttng-dev@lists.lttng.org<br>https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev<br></blockquote></div><br><div data-marker="__SIG_POST__">-- <br></div><div>Mathieu Desnoyers<br>EfficiOS Inc.<br>http://www.efficios.com</div></div></body></html>