Use caa_unlikely, depend on liburcu >= 0.6.6
[ust.git] / include / ust / tracepoint.h
index 5e7f9d86967580fd314ca1b21621e678ff585f85..ade567726e9c4cffeffc5e0c39d61a8b66927a35 100644 (file)
@@ -27,6 +27,7 @@
 
 #include <urcu-bp.h>
 #include <urcu/list.h>
+#include <urcu/compiler.h>
 
 struct tracepoint_probe {
        void *func;
@@ -96,7 +97,7 @@ struct tracepoint {
 
 #define __CHECK_TRACE(name, proto, args)                               \
        do {                                                            \
-               if (unlikely(__tracepoint_##name.state))                \
+               if (caa_unlikely(__tracepoint_##name.state))            \
                        __DO_TRACE(&__tracepoint_##name,                \
                                TP_PROTO(proto), TP_ARGS(args));        \
        } while (0)
This page took 0.022765 seconds and 4 git commands to generate.