Fix: trace events in C constructors/destructors
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 16 Feb 2023 21:41:19 +0000 (16:41 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 Feb 2023 21:06:11 +0000 (16:06 -0500)
commit551e27943b31f7c12aebadd64f6b5f3a498bd6a3
tree83690c0b8845e158d4e541d5fefb16b04b0487c5
parentf5edbe001a988828e2f82c85a71be9ce4e25a728
Fix: trace events in C constructors/destructors

Adding a priority (150) to the tracepoint and tracepoint provider
constructors/destructors ensures that we trace tracepoints located
within C constructors/destructors with a higher priority value,
including the default init priority of 65535, when the tracepoint vs
tracepoint definition vs tracepoint probe provider are in different
compile units (and in various link order one compared to another).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: Ia8e36317ae058402cdb81cb921da69cfa97a2f82
include/lttng/tracepoint.h
include/lttng/ust-compiler.h
This page took 0.025131 seconds and 4 git commands to generate.