Fix tracepoint.h multiple .o within module/core exec linkage bug
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Feb 2012 23:55:44 +0000 (18:55 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Feb 2012 23:55:44 +0000 (18:55 -0500)
commit51920067af7b1049413c1b8c30ee254afbd4e448
treecac5b008a2d725d3488739f8b857893ea808e778
parent0f2f7e21ff998452eea75a7130016471b4653935
Fix tracepoint.h multiple .o within module/core exec linkage bug

We need all symbols looked up with dlopen to share the same linkage
property as the __tracepoint_registered variable (shared across .o in a
module/executable), otherwise only the first .o which runs its
constructor will have those defined.

Caused some tracepoints not to be traced in non-_LGPL_SOURCE
applications, due to the check:

if (!TP_RCU_LINK_TEST())   \
    return;

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint-rcu.h
include/lttng/tracepoint.h
This page took 0.031829 seconds and 4 git commands to generate.