Custom upgrade: chain load liblttng-ust-{fd,fork}.so.0 with dlopen
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 15 Jun 2022 15:13:35 +0000 (11:13 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 30 Sep 2022 18:33:34 +0000 (14:33 -0400)
commitaaa692c825f7e9ae975427cd35400e4dd72dc773
tree069598c6410f800f255255661bf434ed1e738a1d
parent12685958a1575577c4e6523c3bad5059a72f1d0a
Custom upgrade: chain load liblttng-ust-{fd,fork}.so.0 with dlopen

dlopen liblttng-ust.so.0 in the constructor of the interposer librairies
and explicitly call the symbols from this library when appropriate.

As a side-note, chain linking the interposer ld_preload librairies on
their previous SONAME0 versions doesn't work as expected because the
order of the symbol resolution with dlsym always favors the preloaded
library symbols. This is why explicit use of dlopen/dlsym is favored
instead.

Change-Id: Ie8802134c3037cfd431a949f469d3e64e958888b
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
configure.ac
src/lib/lttng-ust-common/fd-tracker.c
src/lib/lttng-ust-fd/lttng-ust-fd.c
src/lib/lttng-ust-fork/ustfork.c
This page took 0.024428 seconds and 5 git commands to generate.