- On Feb 21, 2018, at 5:10 PM, Francis Deslauriers
francis.deslauri...@efficios.com wrote:
> Calling dlclose on a probe provider library does not unregister the
> probes from the callsites as the destructors are not executed.
please specify that this is only true for the first shared object
Replace the use of kmalloc/kfree in the tracepoint probes that need
dynamic allocation with the tracepoint memory pool alloc/free.
Signed-off-by: Julien Desfossez
---
.../syscalls/headers/syscalls_pointers_override.h | 33 +-
1 file changed, 14
This memory pool is created when the lttng-tracer module is loaded. It
allocates 4 buffers of 4k on each CPU. These buffers are designed to
allow tracepoint probes to temporarily store data that does not fit on
the stack (during the code_pre and code_post phases). The memory is
freed when the
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,