Implement loglevels as event and wildcard attributes
[lttng-ust.git] / include / lttng / ust-tracepoint-event.h
index 49cac590d421a689ab33855c6ebf63e22c863e99..dbd0485565cfd18e2d920811d5dbbb3cb4c79f93 100644 (file)
@@ -446,8 +446,10 @@ static void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args))\
 #include <lttng/ust-tracepoint-event-reset.h>
 
 #undef TRACEPOINT_LOGLEVEL
-#define TRACEPOINT_LOGLEVEL(__provider, __name, __loglevel)            \
-static const int _loglevel___##__provider##___##__name = __loglevel;
+#define TRACEPOINT_LOGLEVEL(__provider, __name, __loglevel)               \
+static const int _loglevel_value___##__provider##___##__name = __loglevel; \
+static const int *_loglevel___##__provider##___##__name =                 \
+               &_loglevel_value___##__provider##___##__name;
 
 #include TRACEPOINT_INCLUDE
 
This page took 0.022795 seconds and 4 git commands to generate.