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:00 +0000 (16:06 -0500)
commit63661b6634527fca365d4ac9e46cc9c8c94c1e49
tree607b6f1af2773e1e3c5c42854dc4359a75f498bf
parent7fdb690ce0a7187b23f439d569ddd629a702871f
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.0265 seconds and 4 git commands to generate.