Re: [lttng-dev] [PATCH lttng-ust v2] Fix: destructors do not run on probe provider dlclose

2018-02-26 Thread Mathieu Desnoyers
- On Feb 22, 2018, at 3:41 PM, Francis Deslauriers francis.deslauri...@efficios.com wrote: > Calling dlclose on the probe provider library that first loaded > __tracepoints__disable_destructors in the symbol table does not > unregister the probes from the callsites as the destructors are not

[lttng-dev] [PATCH lttng-ust v2] Fix: destructors do not run on probe provider dlclose

2018-02-22 Thread Francis Deslauriers
Calling dlclose on the probe provider library that first loaded __tracepoints__disable_destructors in the symbol table does not unregister the probes from the callsites as the destructors are not executed. The __tracepoints__disable_destructors weak symbol is exposed by probe providers,