Initialize liblttng-ust-common in dependent libraries
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 13 Apr 2021 20:39:18 +0000 (16:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 19 Apr 2021 17:31:27 +0000 (13:31 -0400)
commitfca97dfd73a96bbf964c39e7f3a21fe70cccee96
tree21f481968d2399f9a8e1754c0e48420a7a03bb74
parent39313bf35301f186b2517e05e0bda38e138e868c
Initialize liblttng-ust-common in dependent libraries

liblttng-ust-common is a new public library introduced in this
developement cycle to contain the shared state between liblttng-ust and
our other libs that can't link directly on liblttng-ust. The constructor
of each of these libraries should now call the liblttng-ust-common
constructor early in their own constructors to ensure proper execution
order.

  * Rename library constructors with the _ctor suffix to help
    distinguish them from other _init functions.
  * Hide the fd-tracker init fonction, the liblttng-ust-common ctor
    should be called instead.
  * All libraries linked on 'liblttng-ust-common' call its constructor
    early in theirs.

Change-Id: I8e083f392b4ef2427addd00120cffc61a6314697
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
14 files changed:
include/Makefile.am
include/lttng/ust-common.h [new file with mode: 0644]
include/lttng/ust-libc-wrapper.h
src/common/ust-fd.h
src/lib/lttng-ust-common/Makefile.am
src/lib/lttng-ust-common/fd-tracker.c
src/lib/lttng-ust-common/fd-tracker.h [new file with mode: 0644]
src/lib/lttng-ust-common/ust-common.c
src/lib/lttng-ust-ctl/ustctl.c
src/lib/lttng-ust-fd/Makefile.am
src/lib/lttng-ust-fd/lttng-ust-fd.c
src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c
src/lib/lttng-ust-tracepoint/tracepoint.c
src/lib/lttng-ust/lttng-ust-comm.c
This page took 0.028184 seconds and 4 git commands to generate.