From 42e6b243d6485f1f4156c8cb9232d05e43ffc827 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Tue, 26 Mar 2013 07:30:07 -0400 Subject: [PATCH] Performance: add unlikely to tracepoint dynamic linking test Signed-off-by: Mathieu Desnoyers --- include/lttng/tracepoint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); \ -- 2.34.1