Fix: loglevel and model_emf_uri with g++ compiled probes
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Oct 2016 21:56:42 +0000 (17:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Oct 2016 22:01:12 +0000 (18:01 -0400)
commit4ea4f80e8c57628907b035bd1a0372f7b8faec51
tree6279bd0708bcd6927c55f0f0b76734b0910f78d2
parentff08bcdca46998b9cb62f61ec1807a84048b31ed
Fix: loglevel and model_emf_uri with g++ compiled probes

Fix the loglevel and model_emf_uri features for probe providers compiled
with g++. They were previously effectless because of C++ symbol name
mangling. The weakref was refering to the non-mangled symbol, but C++
emits a mangled symbol for the static variable.

Fix this by emitting an extern "C" symbol with hidden visibility on C++.
With a C compiled, this simply turns a static variable into a variable
with hidden visibility.

Fixes: #1069
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event.h
This page took 0.024964 seconds and 4 git commands to generate.