From: Mathieu Desnoyers Date: Tue, 26 Feb 2013 20:16:57 +0000 (-0500) Subject: Remove direct dependency of probes on urcu-bp X-Git-Tag: v2.1.2~7 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fd9619bcf98bae43e3418b6c61d2727d49d7d54b;p=lttng-ust.git Remove direct dependency of probes on urcu-bp The filter feature added a direct dependency of probes providers against urcu-bp .so, while linking them against liblttng-ust should suffice. Fix this by using the tracepoint.h wrapper for rcu_dereference(). Signed-off-by: Mathieu Desnoyers --- diff --git a/include/lttng/ust-tracepoint-event.h b/include/lttng/ust-tracepoint-event.h index 8fea9216..b3fb2d40 100644 --- a/include/lttng/ust-tracepoint-event.h +++ b/include/lttng/ust-tracepoint-event.h @@ -26,8 +26,15 @@ #include #include #include +#include #include +#undef tp_list_for_each_entry_rcu +#define tp_list_for_each_entry_rcu(pos, head, member) \ + for (pos = cds_list_entry(tp_rcu_dereference_bp((head)->next), __typeof__(*pos), member); \ + &pos->member != (head); \ + pos = cds_list_entry(tp_rcu_dereference_bp(pos->member.next), __typeof__(*pos), member)) + /* * TRACEPOINT_EVENT_CLASS declares a class of tracepoints receiving the * same arguments and having the same field layout. @@ -501,7 +508,7 @@ void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \ \ __event_prepare_filter_stack__##_provider##___##_name(__stackvar.__filter_stack_data, \ _TP_ARGS_DATA_VAR(_args)); \ - cds_list_for_each_entry_rcu(bc_runtime, &__event->bytecode_runtime_head, node) { \ + tp_list_for_each_entry_rcu(bc_runtime, &__event->bytecode_runtime_head, node) { \ if (caa_unlikely(bc_runtime->filter(bc_runtime, \ __stackvar.__filter_stack_data) & LTTNG_FILTER_RECORD_FLAG)) \ __filter_record = 1; \