Project

General

Profile

Actions

Bug #1296

closed

tracepoint symbols should have public visibility

Added by Jeff Trull over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/18/2020
Due date:
% Done:

100%

Estimated time:

Description

I have an application with two providers: one from a shared library, the other from the main program. I followed the build instructions in the documentation; everything links and runs OK.

The problem is that when I run "lttng list --userspace" I see only the events from the provider in the shared library. The debug log has some interesting information (my providers are HPX and HPX_ALG):

...
Provider "HPX" accepted, version 1.0 is compatible with...
...
just registered a tracepoints section from ...
registered tracepoint: HPX:thread_create_highprio
...

etc. (the HPX provider's tracepoints are shown)
...
just registered a tracepoints section from ...
...

(BOTH the HPX and HPX_ALG provider tracepoints are shown). Note that only HPX is shown as an "accepted" provider, and there are two tracepoint sections, with the HPX ones duplicated.

Desired result: lttng list --userspace shows events from both HPX and HPX_ALG providers
Actual result: only HPX (the shared library) events are shown.

I'm pretty much certain this is my bug but I'm stumped. I'm hoping the odd symptoms displayed in my debug log will point to the underlying issue.


Files

lttng_debug.log (10.2 KB) lttng_debug.log LTTNG_UST_DEBUG=1 output from app Jeff Trull, 12/18/2020 12:53 PM
tracepoints.h (542 Bytes) tracepoints.h Jeff Trull, 12/18/2020 03:07 PM
0001-Fix-Use-default-visibility-for-tracepoint-provider-s.patch (1.56 KB) 0001-Fix-Use-default-visibility-for-tracepoint-provider-s.patch Mathieu Desnoyers, 12/27/2020 03:00 PM
Actions

Also available in: Atom PDF