From c48cf4324526eb22a371102325d89875311a24d0 Mon Sep 17 00:00:00 2001 From: orbea Date: Sat, 29 May 2021 11:07:41 -0700 Subject: [PATCH] build: Add missing DEFINE_LTTNG_UST_SIGBUS_STATE(); MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: liblttng-ust-ctl.so: undefined reference to `lttng_ust_sigbus_state' Signed-off-by: orbea Signed-off-by: Jérémie Galarneau Change-Id: I428bdc262168d1701525e024e7580861d2498e2b --- tests/regression/tools/live/live_test.c | 3 +++ tests/unit/test_kernel_data.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/regression/tools/live/live_test.c b/tests/regression/tools/live/live_test.c index 4c56deece..a9adc5946 100644 --- a/tests/regression/tools/live/live_test.c +++ b/tests/regression/tools/live/live_test.c @@ -23,6 +23,7 @@ #include #include +#include #include #include @@ -41,6 +42,8 @@ #define NUM_TESTS 11 #define mmap_size 524288 +DEFINE_LTTNG_UST_SIGBUS_STATE(); + static int control_sock; struct live_session *session; diff --git a/tests/unit/test_kernel_data.c b/tests/unit/test_kernel_data.c index 34d12be24..58e701442 100644 --- a/tests/unit/test_kernel_data.c +++ b/tests/unit/test_kernel_data.c @@ -15,6 +15,7 @@ #include #include #include +#include #include @@ -23,6 +24,8 @@ /* Number of TAP tests in this file */ #define NUM_TESTS 11 +DEFINE_LTTNG_UST_SIGBUS_STATE(); + static const char alphanum[] = "0123456789" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" -- 2.34.1