From: Mathieu Desnoyers Date: Tue, 26 Mar 2013 11:30:07 +0000 (-0400) Subject: Performance: add unlikely to tracepoint dynamic linking test X-Git-Tag: v2.1.3~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=42e6b243d6485f1f4156c8cb9232d05e43ffc827;p=lttng-ust.git Performance: add unlikely to tracepoint dynamic linking test Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 3433560a..785c87e5 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -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); \