A missing call to wrapper_task_prio_init() causes the function pointer
for task_prio to stay NULL, which triggers a OOPS when trying to use the
prio context.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I417e84cb8a07db624e682c7ec2c033fbc2a7b8e7
int lttng_add_cpu_id_to_ctx(struct lttng_kernel_ctx **ctx);
int lttng_add_procname_to_ctx(struct lttng_kernel_ctx **ctx);
int lttng_add_prio_to_ctx(struct lttng_kernel_ctx **ctx);
+int wrapper_task_prio_init(void);
int lttng_add_nice_to_ctx(struct lttng_kernel_ctx **ctx);
int lttng_add_vpid_to_ctx(struct lttng_kernel_ctx **ctx);
int lttng_add_tid_to_ctx(struct lttng_kernel_ctx **ctx);
}
return 0;
}
+EXPORT_SYMBOL_GPL(wrapper_task_prio_init);
/*
* Canary function to check for 'task_prio()' at compile time.
if (ret)
return ret;
ret = wrapper_get_pageblock_flags_mask_init();
+ if (ret)
+ return ret;
+ ret = wrapper_task_prio_init();
if (ret)
return ret;
ret = lttng_probes_init();