From: Mathieu Desnoyers Date: Tue, 18 Oct 2016 21:56:42 +0000 (-0400) Subject: Fix: loglevel and model_emf_uri with g++ compiled probes X-Git-Tag: v2.9.0~13 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=144b9685e4d06f4359d3e7589d298979ed016433;hp=144b9685e4d06f4359d3e7589d298979ed016433;p=lttng-ust.git 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 ---