Fix: trace events in C constructors/destructors
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 Feb 2023 21:08:46 +0000 (16:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 17 Feb 2023 21:08:46 +0000 (16:08 -0500)
commita8fafb675a9f580f6a889223e26664ea11cb0c99
tree46d80a4e3dc51a1411d1eba844668dd0a412afec
parent59737e84c0545209f927b070140037cb44f15b40
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
include/lttng/ust-tracepoint-event.h
This page took 0.026229 seconds and 4 git commands to generate.