X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-context.c;h=9bf4d80087bff96438d1919fbb1fb583abf401a6;hb=79150a4903b5f31695fcd1d9655555ba6dc4bfa4;hp=eca58ce1873b3ab18c25001ac362a086dda6ecbd;hpb=b3699d90c5a746caeade87f86c371d2ed195147c;p=lttng-modules.git diff --git a/lttng-context.c b/lttng-context.c index eca58ce1..9bf4d800 100644 --- a/lttng-context.c +++ b/lttng-context.c @@ -268,6 +268,26 @@ int lttng_context_init(void) if (ret) { printk(KERN_WARNING "Cannot add context lttng_add_cpu_id_to_ctx"); } + ret = lttng_add_interruptible_to_ctx(<tng_static_ctx); + if (ret) { + printk(KERN_WARNING "Cannot add context lttng_add_interruptible_to_ctx"); + } + ret = lttng_add_need_reschedule_to_ctx(<tng_static_ctx); + if (ret) { + printk(KERN_WARNING "Cannot add context lttng_add_need_reschedule_to_ctx"); + } +#if defined(CONFIG_PREEMPT_RT_FULL) || defined(CONFIG_PREEMPT) + ret = lttng_add_preemptible_to_ctx(<tng_static_ctx); + if (ret != -ENOSYS) { + printk(KERN_WARNING "Cannot add context lttng_add_preemptible_to_ctx"); + } +#endif +#ifdef CONFIG_PREEMPT_RT_FULL + ret = lttng_add_migratable_to_ctx(<tng_static_ctx); + if (ret != -ENOSYS) { + printk(KERN_WARNING "Cannot add context lttng_add_migratable_to_ctx"); + } +#endif /* TODO: perf counters for filtering */ return 0; }