If a liblttng-ust-tracepoint.so.0 would happen not to contain the
expected symbols, don't trace (rather than segfault).
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
dlsym(tracepoint_dlopen.liblttngust_handle,
"tp_rcu_dereference_sym_bp"));
#endif
- tracepoint_dlopen.tracepoint_register_lib(__start___tracepoints_ptrs,
- __stop___tracepoints_ptrs -
- __start___tracepoints_ptrs);
+ if (tracepoint_dlopen.tracepoint_register_lib) {
+ tracepoint_dlopen.tracepoint_register_lib(__start___tracepoints_ptrs,
+ __stop___tracepoints_ptrs -
+ __start___tracepoints_ptrs);
+ }
}
static void lttng_ust_notrace __attribute__((destructor))