Performance: add unlikely to tracepoint dynamic linking test
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Mar 2013 11:30:07 +0000 (07:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 19 Jun 2013 00:05:04 +0000 (20:05 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/tracepoint.h

index 3433560a10e9d2ce220cb925a0252c01211bc391..785c87e516904017948d0227e034a2b5f2b5711f 100644 (file)
@@ -153,7 +153,7 @@ void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__))           \
 {                                                                                      \
        struct tracepoint_probe *__tp_probe;                                            \
                                                                                        \
-       if (!TP_RCU_LINK_TEST())                                                        \
+       if (caa_unlikely(!TP_RCU_LINK_TEST()))                                          \
                return;                                                                 \
        tp_rcu_read_lock_bp();                                                          \
        __tp_probe = tp_rcu_dereference_bp(__tracepoint_##_provider##___##_name.probes); \
This page took 0.025428 seconds and 4 git commands to generate.