From: Mathieu Desnoyers Date: Sun, 27 Dec 2020 19:48:46 +0000 (-0500) Subject: Fix: Use default visibility for tracepoint provider symbol X-Git-Tag: v2.12.1~1 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=d5ed6eddf99f8afcac6b2cb217b6678431b64968;hp=d5ed6eddf99f8afcac6b2cb217b6678431b64968;p=lttng-ust.git Fix: Use default visibility for tracepoint provider symbol When building a probe provider `someprobe` with -fvisibility=hidden into a shared library, the `__tracepoint_provider_someprobe` symbol is hidden, which does not allow tracepoint instrumentation to link to it. Fix this by using the "default" visibility attribute. For a shared library built with -fvisibility=hidden, this changes the output of nm for that symbol from: 000000000000417c b __tracepoint_provider_someprobe (local BSS symbol) to 000000000000417c B __tracepoint_provider_someprobe (global (external) BSS symbol) Fixes: #1296 Signed-off-by: Mathieu Desnoyers Change-Id: I308374f6cac58cca86e8eb19c872286a3da21a75 ---