[lttng-dev] [PATCH lttng-tools] Link test utilities against urcu-bp

Jon Bernard jbernard at tuxion.com
Wed Nov 28 10:13:59 EST 2012


The gen-ust-events utility used in several of the tests references the
'rcu_dereference_sym' symbol contained in urcu-bp.  It is necessary to link
against urcu-bp so that this symbol is resolved.

Signed-off-by: Jon Bernard <jbernard at tuxion.com>
---
 tests/tools/filtering/Makefile.am     | 2 +-
 tests/tools/streaming/Makefile.am     | 2 +-
 tests/ust/before-after/Makefile.am    | 2 +-
 tests/ust/high-throughput/Makefile.am | 2 +-
 tests/ust/multi-session/Makefile.am   | 2 +-
 tests/ust/nprocesses/Makefile.am      | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/tools/filtering/Makefile.am b/tests/tools/filtering/Makefile.am
index e1e715d..287effc 100644
--- a/tests/tools/filtering/Makefile.am
+++ b/tests/tools/filtering/Makefile.am
@@ -11,7 +11,7 @@ endif
 if HAVE_LIBLTTNG_UST_CTL
 noinst_PROGRAMS = gen-ust-events
 gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h
-gen_ust_events_LDADD = -llttng-ust
+gen_ust_events_LDADD = -llttng-ust -lurcu-bp
 endif
 
 noinst_SCRIPTS = runall unsupported-ops invalid-filters valid-filters babelstats.pl
diff --git a/tests/tools/streaming/Makefile.am b/tests/tools/streaming/Makefile.am
index 3ff8ef0..d07baa8 100644
--- a/tests/tools/streaming/Makefile.am
+++ b/tests/tools/streaming/Makefile.am
@@ -20,7 +20,7 @@ unit_tests_LDADD = $(LIBCOMMON)
 if HAVE_LIBLTTNG_UST_CTL
 noinst_PROGRAMS += gen-ust-events
 gen_ust_events_SOURCES = gen-ust-events.c tp.c tp.h
-gen_ust_events_LDADD = -llttng-ust
+gen_ust_events_LDADD = -llttng-ust -lurcu-bp
 endif
 
 noinst_SCRIPTS = runall run-ust run-kernel uri_switch
diff --git a/tests/ust/before-after/Makefile.am b/tests/ust/before-after/Makefile.am
index d197d72..80a6ba2 100644
--- a/tests/ust/before-after/Makefile.am
+++ b/tests/ust/before-after/Makefile.am
@@ -10,7 +10,7 @@ endif
 
 noinst_PROGRAMS = gen-nevents
 gen_nevents_SOURCES = gen-nevents.c tp.c ust_gen_nevents.h
-gen_nevents_LDADD = -llttng-ust
+gen_nevents_LDADD = -llttng-ust -lurcu-bp
 
 noinst_SCRIPTS = run
 EXTRA_DIST = run
diff --git a/tests/ust/high-throughput/Makefile.am b/tests/ust/high-throughput/Makefile.am
index cff8fe4..74478bd 100644
--- a/tests/ust/high-throughput/Makefile.am
+++ b/tests/ust/high-throughput/Makefile.am
@@ -10,7 +10,7 @@ endif
 
 noinst_PROGRAMS = gen-events
 gen_events_SOURCES = main.c tp.c tp.h
-gen_events_LDADD = -llttng-ust
+gen_events_LDADD = -llttng-ust -lurcu-bp
 
 noinst_SCRIPTS = run
 EXTRA_DIST = run
diff --git a/tests/ust/multi-session/Makefile.am b/tests/ust/multi-session/Makefile.am
index d197d72..80a6ba2 100644
--- a/tests/ust/multi-session/Makefile.am
+++ b/tests/ust/multi-session/Makefile.am
@@ -10,7 +10,7 @@ endif
 
 noinst_PROGRAMS = gen-nevents
 gen_nevents_SOURCES = gen-nevents.c tp.c ust_gen_nevents.h
-gen_nevents_LDADD = -llttng-ust
+gen_nevents_LDADD = -llttng-ust -lurcu-bp
 
 noinst_SCRIPTS = run
 EXTRA_DIST = run
diff --git a/tests/ust/nprocesses/Makefile.am b/tests/ust/nprocesses/Makefile.am
index 20beea0..bc3a503 100644
--- a/tests/ust/nprocesses/Makefile.am
+++ b/tests/ust/nprocesses/Makefile.am
@@ -10,7 +10,7 @@ endif
 
 noinst_PROGRAMS = gen-events-time
 gen_events_time_SOURCES = gen-events-time.c tp.c ust_gen_event.h
-gen_events_time_LDADD = -llttng-ust
+gen_events_time_LDADD = -llttng-ust -lurcu-bp
 
 noinst_SCRIPTS = run
 EXTRA_DIST = run
-- 
1.8.0




More information about the lttng-dev mailing list