Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] LTTng-modules with RT kernel
@ 2016-10-24 15:23 Gaylord Charles
  2016-10-24 17:30 ` Mathieu Desnoyers
  0 siblings, 1 reply; 2+ messages in thread
From: Gaylord Charles @ 2016-10-24 15:23 UTC (permalink / raw)


Hello,

I am currently testing LTTng latest versions with a PREEMPT_RT kernel
(4.6.7-rt12). I've got:
 - LTTng-modules 2.8.3
 - LTTng-tools 2.8.2
 - LTTng-UST 2.8.1

When calling "lttng create", the following message appears:
     Cannot add context lttng_add_preemptible_to_ctx
     Cannot add context lttng_add_migratable_to_ctx

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.
Do I miss something ?

Regards.
Gaylord
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20161024/52bbaa47/attachment.html>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [lttng-dev] LTTng-modules with RT kernel
  2016-10-24 15:23 [lttng-dev] LTTng-modules with RT kernel Gaylord Charles
@ 2016-10-24 17:30 ` Mathieu Desnoyers
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2016-10-24 17:30 UTC (permalink / raw)


----- On Oct 24, 2016, at 11:23 AM, Gaylord Charles <gaylord.charles at veo-labs.com> wrote: 

> Hello,

> I am currently testing LTTng latest versions with a PREEMPT_RT kernel
> (4.6.7-rt12). I've got:
> - LTTng-modules 2.8.3
> - LTTng-tools 2.8.2
> - LTTng-UST 2.8.1

> When calling "lttng create", the following message appears:
> Cannot add context lttng_add_preemptible_to_ctx
> Cannot add context lttng_add_migratable_to_ctx

> 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.
> Do I miss something ?

Fix pushed into master, stable-2.9, and stable-2.8 of lttng-modules: 

commit d0e59d6f099f4663cc62bffb59d960cd4235064f 
Author: Mathieu Desnoyers <mathieu.desnoyers at efficios.com> 
Date: Mon Oct 24 13:27:01 2016 -0400 

Fix: preemptible and migratable context error handling 

When built against preempt-rt and preempt kernels, the "return 0" case 
means success, but lttng-modules incorrectly prints an error in the 
kernel log. 

Given that we handle the -ENOSYS error in lttng_context_init, there is 
no need to keep the ifdefs in that function. 

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com> 

Thanks for reporting! 

Mathieu 

> Regards.
> Gaylord

> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers 
EfficiOS Inc. 
http://www.efficios.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20161024/92e47b9e/attachment.html>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-24 17:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24 15:23 [lttng-dev] LTTng-modules with RT kernel Gaylord Charles
2016-10-24 17:30 ` Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox