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:03:41 +0000 (18:03 -0400)
commit958b101d6094b3f65f5c434fc7e289fbef2918b9
treecebb5445fa7605a5bb292b818d8c9ff753473714
parent17da73d32b163be65e0c6c738749799c21eb8508
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.02473 seconds and 4 git commands to generate.