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.2.0-rc1~35 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=d3db6a40c99e4c4bd81be92413efb5c867baf6e4;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); \