Fix: trace events in C constructors/destructors
[lttng-ust.git] / include / lttng / ust-compiler.h
index 31eaf73c0139026b9adbb8c87ca7076c0df77125..7e9aa4971618bbe6e9aa2fcd11a8a72838b621e6 100644 (file)
  * SOFTWARE.
  */
 
+/*
+ * By default, LTTng-UST uses the priority 150 for the tracepoint and probe
+ * provider constructors to trace tracepoints located within
+ * constructors/destructors with a higher priority value within the same
+ * module. This priority can be overridden by the application.
+ */
+#ifndef LTTNG_UST_CONSTRUCTOR_PRIO
+#define LTTNG_UST_CONSTRUCTOR_PRIO     150
+#endif
+
 #define lttng_ust_notrace __attribute__((no_instrument_function))
 #define LTTNG_PACKED   __attribute__((__packed__))
 
This page took 0.023349 seconds and 4 git commands to generate.