summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-12-12 17:04:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-28 23:25:42 +0000
commitd539ca360ebcc303da692e85a6544959322850f9 (patch)
tree3ba04f598eefb8077d10873773c3c90f3d3006a8
parent53e3605eae85116a0ad7ebe0de608ad2c82d8b35 (diff)
downloadpoky-d539ca360ebcc303da692e85a6544959322850f9.tar.gz
lttng-tools: update to 2.11.0
Remove 0001-Skip-when-testapp-is-not-present.patch as it is unclear whether it needs to be rebased, and difficult to rebase. Remove 0001-check-for-gettid-API-during-configure.patch as it is no longer needed. Ptests still seem to run ok, however they are rather slow, so I did not wait for their completion. (From OE-Core rev: 015aea5d93614676decd18578a8ae2d68417cfc5) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0001-Skip-when-testapp-is-not-present.patch610
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch55
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0001-tests-do-not-strip-a-helper-library.patch27
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools/0002-Fix-check-for-lttng-modules-presence-before-testing.patch24
-rw-r--r--meta/recipes-kernel/lttng/lttng-tools_2.11.0.bb (renamed from meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb)14
5 files changed, 35 insertions, 695 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-Skip-when-testapp-is-not-present.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-Skip-when-testapp-is-not-present.patch
deleted file mode 100644
index 6c9f7e462c..0000000000
--- a/meta/recipes-kernel/lttng/lttng-tools/0001-Skip-when-testapp-is-not-present.patch
+++ /dev/null
@@ -1,610 +0,0 @@
1From 95c27e6acceaeda55c729b9e92e594322adef13f Mon Sep 17 00:00:00 2001
2From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3Date: Wed, 3 Apr 2019 16:31:18 -0400
4Subject: [PATCH lttng-tools] Skip when testapp is not present
5
6We expect lttng-ust do be present, this is a wrong assumptions.
7
8This is a quick fix. The real fix is to either detect at runtime
9lttng-ust support or at build time (HAVE_LIBLTTNG_UST_CTL).
10
11This prevent hang for make check done on a build configured with
12--without-lttng-ust.
13
14Upstream-Status: Inappropriate [other]
15Reason: This patch is inappropriate for upstream for 2.10 stable release
16since we do not backport "superficial" fix to the test suite. We do
17backport when a test is broken. The fact that on --without-lttng-ust
18hang is not a "broken" test per-see. Still, a variation of this fix will
19be upstreamed in our master branch and possibly 2.11. The upstreamed
20version will split the test in kernel/ust test and skip them at the
21build system level. This patch is more succinct.
22
23Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
24---
25 tests/regression/tools/crash/test_crash | 4 ++
26 .../regression/tools/exclusion/test_exclusion | 4 ++
27 .../tools/filtering/test_valid_filter | 21 ++++--
28 tests/regression/tools/health/test_thread_ok | 29 +++++---
29 tests/regression/tools/live/Makefile.am | 2 -
30 tests/regression/tools/live/test_lttng_ust | 4 ++
31 tests/regression/tools/live/test_ust | 4 ++
32 .../tools/live/test_ust_tracefile_count | 4 ++
33 tests/regression/tools/mi/test_mi | 4 ++
34 .../notification/test_notification_multi_app | 18 +++--
35 .../tools/notification/test_notification_ust | 4 ++
36 .../regression/tools/regen-metadata/test_ust | 2 +-
37 .../regression/tools/regen-statedump/test_ust | 2 +-
38 .../regression/tools/save-load/test_autoload | 7 ++
39 tests/regression/tools/save-load/test_load | 8 +++
40 tests/regression/tools/save-load/test_save | 7 ++
41 .../regression/tools/snapshots/test_ust_fast | 2 +-
42 .../regression/tools/snapshots/test_ust_long | 2 +-
43 .../tools/snapshots/test_ust_streaming | 2 +-
44 tests/regression/tools/snapshots/ust_test | 2 +-
45 .../streaming/test_high_throughput_limits | 2 +-
46 tests/regression/tools/streaming/test_ust | 2 +-
47 .../tracefile-limits/test_tracefile_count | 2 +-
48 .../tracefile-limits/test_tracefile_size | 2 +-
49 .../tools/wildcard/test_event_wildcard | 67 ++++++++++---------
50 25 files changed, 147 insertions(+), 60 deletions(-)
51
52diff --git a/tests/regression/tools/crash/test_crash b/tests/regression/tools/crash/test_crash
53index 8c62c513d..3cbe97688 100755
54--- a/tests/regression/tools/crash/test_crash
55+++ b/tests/regression/tools/crash/test_crash
56@@ -35,6 +35,10 @@ NUM_TESTS=77
57
58 source $TESTDIR/utils/utils.sh
59
60+if [ ! -x "$TESTAPP_BIN" ]; then
61+ plan_skip_all "No UST events binary detected."
62+fi
63+
64 # Global declaration for simplification
65 LTTNG_CRASH=$TESTDIR/../src/bin/lttng-crash/$CRASH_BIN
66
67diff --git a/tests/regression/tools/exclusion/test_exclusion b/tests/regression/tools/exclusion/test_exclusion
68index 949cd41df..42e4d72fb 100755
69--- a/tests/regression/tools/exclusion/test_exclusion
70+++ b/tests/regression/tools/exclusion/test_exclusion
71@@ -30,6 +30,10 @@ NUM_TESTS=149
72
73 source $TESTDIR/utils/utils.sh
74
75+if [ ! -x "$TESTAPP_BIN" ]; then
76+ plan_skip_all "No UST events binary detected."
77+fi
78+
79 function enable_ust_lttng_all_event_exclusion()
80 {
81 sess_name="$1"
82diff --git a/tests/regression/tools/filtering/test_valid_filter b/tests/regression/tools/filtering/test_valid_filter
83index 163b32182..1e8da630b 100755
84--- a/tests/regression/tools/filtering/test_valid_filter
85+++ b/tests/regression/tools/filtering/test_valid_filter
86@@ -418,12 +418,18 @@ issue_356_filter+="intfield > 4 && intfield > 5 && "
87 issue_356_filter+="intfield > 6 && intfield > 7 && "
88 issue_356_filter+="intfield > 8 || intfield > 0"
89
90+BIN_NAME="gen-ust-events"
91+
92+skip_ust=1
93+if [ ! -x "$CURDIR/$BIN_NAME" ]; then
94+ skip_ust=0
95+ skip 0 "No UST nevents binary detected." $NUM_UST_TESTS
96+fi
97+
98 start_lttng_sessiond
99
100 ### UST TESTS
101
102-BIN_NAME="gen-ust-events"
103-
104 KIRK_KRAUSS_TESTS=(
105 # the tests below were written by Kirk Krauss in this article:
106 # http://www.drdobbs.com/architecture-and-design/matching-wildcards-an-empirical-way-to-t/240169123
107@@ -897,9 +903,6 @@ UST_STR_FILTERS=(
108 END
109 )
110
111-if [ ! -x "$CURDIR/$BIN_NAME" ]; then
112- BAIL_OUT "No UST nevents binary detected."
113-fi
114
115 IFS="$OLDIFS"
116
117@@ -910,6 +913,10 @@ i=0
118 while true; do
119 validator="${UST_FILTERS[$i]}"
120
121+ if [ $skip_ust -eq 0 ]; then
122+ break
123+ fi
124+
125 if [ "$validator" = END ]; then
126 break
127 fi
128@@ -929,6 +936,10 @@ i=0
129 while true; do
130 validator="${UST_STR_FILTERS[$i]}"
131
132+ if [ $skip_ust -eq 0 ]; then
133+ break
134+ fi
135+
136 if [ "$validator" = END ]; then
137 break
138 fi
139diff --git a/tests/regression/tools/health/test_thread_ok b/tests/regression/tools/health/test_thread_ok
140index e81d6ed24..849b7e71f 100755
141--- a/tests/regression/tools/health/test_thread_ok
142+++ b/tests/regression/tools/health/test_thread_ok
143@@ -27,6 +27,9 @@ CHANNEL_NAME="testchan"
144 HEALTH_CHECK_BIN="health_check"
145 NUM_TESTS=17
146 SLEEP_TIME=30
147+TESTAPP_PATH="$TESTDIR/utils/testapp"
148+TESTAPP_NAME="gen-ust-events"
149+TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
150
151 source $TESTDIR/utils/utils.sh
152
153@@ -76,15 +79,19 @@ function test_thread_ok
154 $CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
155 report_errors
156
157- diag "With UST consumer daemons"
158- create_lttng_session_no_output $SESSION_NAME
159- enable_ust_lttng_event_ok $SESSION_NAME $UST_EVENT_NAME $CHANNEL_NAME
160- start_lttng_tracing_ok $SESSION_NAME
161- destroy_lttng_session_ok $SESSION_NAME
162+ skip $skip_ust "Ust does not seems to be supported" "5" ||
163+ {
164+ diag "With UST consumer daemons"
165+ create_lttng_session_no_output $SESSION_NAME
166+ enable_ust_lttng_event_ok $SESSION_NAME $UST_EVENT_NAME $CHANNEL_NAME
167+ start_lttng_tracing_ok $SESSION_NAME
168+ destroy_lttng_session_ok $SESSION_NAME
169
170- # Check health status
171- $CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
172- report_errors
173+
174+ # Check health status
175+ $CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
176+ report_errors
177+ }
178
179 skip $isroot "Root access is needed. Skipping kernel consumer health check test." "5" ||
180 {
181@@ -141,6 +148,12 @@ else
182 isroot=0
183 fi
184
185+if [ ! -x "$TESTAPP_BIN" ]; then
186+ skip_ust=0
187+else
188+ skip_ust=1
189+fi
190+
191 test_thread_ok
192
193 rm -rf ${HEALTH_PATH}
194diff --git a/tests/regression/tools/live/Makefile.am b/tests/regression/tools/live/Makefile.am
195index 46186d383..db74de8d5 100644
196--- a/tests/regression/tools/live/Makefile.am
197+++ b/tests/regression/tools/live/Makefile.am
198@@ -16,9 +16,7 @@ LIVE=$(top_builddir)/src/bin/lttng-sessiond/session.$(OBJEXT) \
199 noinst_PROGRAMS = live_test
200 EXTRA_DIST = test_kernel test_lttng_kernel
201
202-if HAVE_LIBLTTNG_UST_CTL
203 EXTRA_DIST += test_ust test_ust_tracefile_count test_lttng_ust
204-endif
205
206 live_test_SOURCES = live_test.c
207 live_test_LDADD = $(LIBTAP) $(LIBCOMMON) $(LIBRELAYD) $(LIBSESSIOND_COMM) \
208diff --git a/tests/regression/tools/live/test_lttng_ust b/tests/regression/tools/live/test_lttng_ust
209index 06017d01d..be9b3d7f7 100755
210--- a/tests/regression/tools/live/test_lttng_ust
211+++ b/tests/regression/tools/live/test_lttng_ust
212@@ -38,6 +38,10 @@ NUM_TESTS=12
213
214 source $TESTDIR/utils/utils.sh
215
216+if [ ! -x "$TESTAPP_BIN" ]; then
217+ plan_skip_all "No UST events binary detected."
218+fi
219+
220 # MUST set TESTDIR before calling those functions
221 plan_tests $NUM_TESTS
222
223diff --git a/tests/regression/tools/live/test_ust b/tests/regression/tools/live/test_ust
224index 0384a706f..add521bfc 100755
225--- a/tests/regression/tools/live/test_ust
226+++ b/tests/regression/tools/live/test_ust
227@@ -36,6 +36,10 @@ DIR=$(readlink -f $TESTDIR)
228
229 source $TESTDIR/utils/utils.sh
230
231+if [ ! -x "$TESTAPP_BIN" ]; then
232+ plan_skip_all "No UST events binary detected."
233+fi
234+
235 echo "$TEST_DESC"
236
237 function setup_live_tracing()
238diff --git a/tests/regression/tools/live/test_ust_tracefile_count b/tests/regression/tools/live/test_ust_tracefile_count
239index 6da368fc6..10504f8c6 100755
240--- a/tests/regression/tools/live/test_ust_tracefile_count
241+++ b/tests/regression/tools/live/test_ust_tracefile_count
242@@ -36,6 +36,10 @@ DIR=$(readlink -f $TESTDIR)
243
244 source $TESTDIR/utils/utils.sh
245
246+if [ ! -x "$TESTAPP_BIN" ]; then
247+ plan_skip_all "No UST events binary detected."
248+fi
249+
250 echo "$TEST_DESC"
251
252 function setup_live_tracing()
253diff --git a/tests/regression/tools/mi/test_mi b/tests/regression/tools/mi/test_mi
254index 48dda7da6..2cc30b29a 100755
255--- a/tests/regression/tools/mi/test_mi
256+++ b/tests/regression/tools/mi/test_mi
257@@ -61,6 +61,10 @@ NUM_TESTS=228
258
259 source $TESTDIR/utils/utils.sh
260
261+if [ ! -x "$TESTAPP_BIN" ]; then
262+ plan_skip_all "No UST events binary detected."
263+fi
264+
265 #Overwrite the lttng_bin to get mi output
266 LTTNG_BIN="lttng --mi xml"
267
268diff --git a/tests/regression/tools/notification/test_notification_multi_app b/tests/regression/tools/notification/test_notification_multi_app
269index 0a05ea6a0..29b0f62fa 100755
270--- a/tests/regression/tools/notification/test_notification_multi_app
271+++ b/tests/regression/tools/notification/test_notification_multi_app
272@@ -52,6 +52,11 @@ plan_tests $NUM_TESTS
273
274 print_test_banner "$TEST_DESC"
275
276+skip_ust=1
277+if [ ! -x "$TESTAPP_BIN" ]; then
278+ skip_ust=0
279+fi
280+
281 app_pids=()
282
283 function kernel_event_generator_toogle_state
284@@ -468,10 +473,15 @@ function test_on_register_evaluation ()
285 }
286
287
288-TESTS=(
289- test_multi_app_ust
290- test_on_register_evaluation_ust
291-)
292+TESTS=()
293+if [ $skip_ust -eq "1" ]; then
294+ TESTS+=(
295+ test_multi_app_ust
296+ test_on_register_evaluation_ust
297+ )
298+else
299+ skip 0 "No UST events binary detected." $NUM_TEST_UST
300+fi
301
302 if [ "$(id -u)" == "0" ]; then
303 TESTS+=(
304diff --git a/tests/regression/tools/notification/test_notification_ust b/tests/regression/tools/notification/test_notification_ust
305index 8941e476d..eb2e15cad 100755
306--- a/tests/regression/tools/notification/test_notification_ust
307+++ b/tests/regression/tools/notification/test_notification_ust
308@@ -46,6 +46,10 @@ DIR=$(readlink -f $TESTDIR)
309
310 source $TESTDIR/utils/utils.sh
311
312+if [ ! -x "$TESTAPP_BIN" ]; then
313+ plan_skip_all "No UST events binary detected."
314+fi
315+
316 function ust_event_generator_toogle_state
317 {
318 ust_event_generator_suspended=$((ust_event_generator_suspended==0))
319diff --git a/tests/regression/tools/regen-metadata/test_ust b/tests/regression/tools/regen-metadata/test_ust
320index b7f1af1d8..312c8a40d 100755
321--- a/tests/regression/tools/regen-metadata/test_ust
322+++ b/tests/regression/tools/regen-metadata/test_ust
323@@ -34,7 +34,7 @@ NUM_TESTS=33
324 source $TESTDIR/utils/utils.sh
325
326 if [ ! -x "$TESTAPP_BIN" ]; then
327- BAIL_OUT "No UST events binary detected."
328+ plan_skip_all "No UST events binary detected."
329 fi
330
331 function lttng_create_session_uri
332diff --git a/tests/regression/tools/regen-statedump/test_ust b/tests/regression/tools/regen-statedump/test_ust
333index 486b9a560..8d455b26a 100755
334--- a/tests/regression/tools/regen-statedump/test_ust
335+++ b/tests/regression/tools/regen-statedump/test_ust
336@@ -34,7 +34,7 @@ NUM_TESTS=11
337 source $TESTDIR/utils/utils.sh
338
339 if [ ! -x "$TESTAPP_BIN" ]; then
340- BAIL_OUT "No UST events binary detected."
341+ plan_skip_all "No UST events binary detected."
342 fi
343
344 function test_ust_local ()
345diff --git a/tests/regression/tools/save-load/test_autoload b/tests/regression/tools/save-load/test_autoload
346index 7ee5e9906..ec376cfb3 100755
347--- a/tests/regression/tools/save-load/test_autoload
348+++ b/tests/regression/tools/save-load/test_autoload
349@@ -21,6 +21,9 @@ CURDIR=$(dirname $0)/
350 CONFIG_DIR="${CURDIR}/configuration"
351 TESTDIR=$CURDIR/../../../
352 export LTTNG_SESSION_CONFIG_XSD_PATH=$(readlink -m ${TESTDIR}../src/common/config/)
353+TESTAPP_PATH="$TESTDIR/utils/testapp"
354+TESTAPP_NAME="gen-ust-events"
355+TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
356
357 DIR=$(readlink -f $TESTDIR)
358
359@@ -28,6 +31,10 @@ NUM_TESTS=9
360
361 source $TESTDIR/utils/utils.sh
362
363+if [ ! -x "$TESTAPP_BIN" ]; then
364+ plan_skip_all "No UST events binary detected."
365+fi
366+
367 # MUST set TESTDIR before calling those functions
368 plan_tests $NUM_TESTS
369
370diff --git a/tests/regression/tools/save-load/test_load b/tests/regression/tools/save-load/test_load
371index 5e38b46b6..b6fdd8192 100755
372--- a/tests/regression/tools/save-load/test_load
373+++ b/tests/regression/tools/save-load/test_load
374@@ -20,6 +20,10 @@ TEST_DESC="Load session(s)"
375 CURDIR=$(dirname $0)/
376 CONFIG_DIR="${CURDIR}/configuration"
377 TESTDIR=$CURDIR/../../../
378+TESTAPP_PATH="$TESTDIR/utils/testapp"
379+TESTAPP_NAME="gen-ust-events"
380+TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
381+
382 export LTTNG_SESSION_CONFIG_XSD_PATH=$(readlink -m ${TESTDIR}../src/common/config/)
383
384 SESSION_NAME="load-42"
385@@ -31,6 +35,10 @@ NUM_TESTS=67
386
387 source $TESTDIR/utils/utils.sh
388
389+if [ ! -x "$TESTAPP_BIN" ]; then
390+ plan_skip_all "No UST events binary detected."
391+fi
392+
393 # MUST set TESTDIR before calling those functions
394 plan_tests $NUM_TESTS
395
396diff --git a/tests/regression/tools/save-load/test_save b/tests/regression/tools/save-load/test_save
397index c5f6b1341..cfaf67b7a 100755
398--- a/tests/regression/tools/save-load/test_save
399+++ b/tests/regression/tools/save-load/test_save
400@@ -23,6 +23,9 @@ TESTDIR=$CURDIR/../../../
401 SESSION_NAME="save-42"
402 CHANNEL_NAME="chan-save"
403 EVENT_NAME="tp:tptest"
404+TESTAPP_PATH="$TESTDIR/utils/testapp"
405+TESTAPP_NAME="gen-ust-events"
406+TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
407
408 DIR=$(readlink -f $TESTDIR)
409
410@@ -30,6 +33,10 @@ NUM_TESTS=41
411
412 source $TESTDIR/utils/utils.sh
413
414+if [ ! -x "TESTAPP_BIN" ]; then
415+ plan_skip_all "No UST events binary detected."
416+fi
417+
418 # MUST set TESTDIR before calling those functions
419 plan_tests $NUM_TESTS
420
421diff --git a/tests/regression/tools/snapshots/test_ust_fast b/tests/regression/tools/snapshots/test_ust_fast
422index edb435c52..5a68ec56d 100755
423--- a/tests/regression/tools/snapshots/test_ust_fast
424+++ b/tests/regression/tools/snapshots/test_ust_fast
425@@ -23,7 +23,7 @@ TEST_BIN="ust_test"
426 source $TESTDIR/utils/utils.sh
427
428 if [ ! -x "$CURDIR/$TEST_BIN" ]; then
429- BAIL_OUT "No UST test found: $TEST_BIN"
430+ plan_skip_all "No UST test found: $TEST_BIN"
431 fi
432
433 ./$CURDIR/$TEST_BIN $NR_SNAPSHOT
434diff --git a/tests/regression/tools/snapshots/test_ust_long b/tests/regression/tools/snapshots/test_ust_long
435index 9e1a0c262..afa019f6a 100755
436--- a/tests/regression/tools/snapshots/test_ust_long
437+++ b/tests/regression/tools/snapshots/test_ust_long
438@@ -23,7 +23,7 @@ TEST_BIN="ust_test"
439 source $TESTDIR/utils/utils.sh
440
441 if [ ! -x "$CURDIR/$TEST_BIN" ]; then
442- BAIL_OUT "No UST test found: $TEST_BIN"
443+ plan_skip_all "No UST test found: $TEST_BIN"
444 fi
445
446 ./$CURDIR/$TEST_BIN $NR_SNAPSHOT
447diff --git a/tests/regression/tools/snapshots/test_ust_streaming b/tests/regression/tools/snapshots/test_ust_streaming
448index 93b0957f3..69291ab4d 100755
449--- a/tests/regression/tools/snapshots/test_ust_streaming
450+++ b/tests/regression/tools/snapshots/test_ust_streaming
451@@ -37,7 +37,7 @@ NUM_TESTS=75
452 source $TESTDIR/utils/utils.sh
453
454 if [ ! -x "$TESTAPP_BIN" ]; then
455- BAIL_OUT "No UST events binary detected."
456+ plan_skip_all "No UST events binary detected."
457 fi
458
459 function snapshot_add_output ()
460diff --git a/tests/regression/tools/snapshots/ust_test b/tests/regression/tools/snapshots/ust_test
461index 755cef9e0..92f9f6cff 100755
462--- a/tests/regression/tools/snapshots/ust_test
463+++ b/tests/regression/tools/snapshots/ust_test
464@@ -34,7 +34,7 @@ TRACE_PATH=$(mktemp -d)
465 source $TESTDIR/utils/utils.sh
466
467 if [ ! -x "$TESTAPP_BIN" ]; then
468- BAIL_OUT "No UST events binary detected."
469+ plan_skip_all "No UST events binary detected."
470 fi
471
472 # Need the number of snapshot to do.
473diff --git a/tests/regression/tools/streaming/test_high_throughput_limits b/tests/regression/tools/streaming/test_high_throughput_limits
474index 32c3f1f2b..f54178923 100755
475--- a/tests/regression/tools/streaming/test_high_throughput_limits
476+++ b/tests/regression/tools/streaming/test_high_throughput_limits
477@@ -38,7 +38,7 @@ NUM_TESTS=104
478 source $TESTDIR/utils/utils.sh
479
480 if [ ! -x "$TESTAPP_BIN" ]; then
481- BAIL_OUT "No UST events binary detected."
482+ plan_skip_all "No UST events binary detected."
483 fi
484
485 function set_bw_limit
486diff --git a/tests/regression/tools/streaming/test_ust b/tests/regression/tools/streaming/test_ust
487index a5d5b5e92..e1dd98ee7 100755
488--- a/tests/regression/tools/streaming/test_ust
489+++ b/tests/regression/tools/streaming/test_ust
490@@ -34,7 +34,7 @@ NUM_TESTS=16
491 source $TESTDIR/utils/utils.sh
492
493 if [ ! -x "$TESTAPP_BIN" ]; then
494- BAIL_OUT "No UST events binary detected."
495+ plan_skip_all "No UST events binary detected."
496 fi
497
498 function lttng_create_session_uri
499diff --git a/tests/regression/tools/tracefile-limits/test_tracefile_count b/tests/regression/tools/tracefile-limits/test_tracefile_count
500index 6ada8580f..7553c7d1f 100755
501--- a/tests/regression/tools/tracefile-limits/test_tracefile_count
502+++ b/tests/regression/tools/tracefile-limits/test_tracefile_count
503@@ -33,7 +33,7 @@ PAGE_SIZE=$(getconf PAGE_SIZE)
504 source $TESTDIR/utils/utils.sh
505
506 if [ ! -x "$TESTAPP_BIN" ]; then
507- BAIL_OUT "No UST events binary detected."
508+ plan_skip_all "No UST events binary detected."
509 fi
510
511 function enable_lttng_channel_count_limit ()
512diff --git a/tests/regression/tools/tracefile-limits/test_tracefile_size b/tests/regression/tools/tracefile-limits/test_tracefile_size
513index 3dddbe613..1089487ff 100755
514--- a/tests/regression/tools/tracefile-limits/test_tracefile_size
515+++ b/tests/regression/tools/tracefile-limits/test_tracefile_size
516@@ -33,7 +33,7 @@ NUM_TESTS=66
517 source $TESTDIR/utils/utils.sh
518
519 if [ ! -x "$TESTAPP_BIN" ]; then
520- BAIL_OUT "No UST events binary detected."
521+ plan_skip_all "No UST events binary detected."
522 fi
523
524 function enable_lttng_channel_size_limit ()
525diff --git a/tests/regression/tools/wildcard/test_event_wildcard b/tests/regression/tools/wildcard/test_event_wildcard
526index 61ea67a72..921a2301d 100755
527--- a/tests/regression/tools/wildcard/test_event_wildcard
528+++ b/tests/regression/tools/wildcard/test_event_wildcard
529@@ -97,42 +97,47 @@ print_test_banner "$TEST_DESC"
530
531 start_lttng_sessiond
532
533-diag "Test UST wildcard"
534-
535 if [ ! -x "$TESTAPP_BIN" ]; then
536- BAIL_OUT "No UST nevents binary detected."
537+ skip_ust=0
538+else
539+ skip_ust=1
540 fi
541
542-EVENT_NAME="tp:tptest"
543+skip $skip_ust "No UST nevents binary detected." $NUM_UST_TESTS ||
544+{
545+ diag "Test UST wildcard"
546
547-# non-matching
548-test_event_wildcard ust 0 'tp:abc*'
549-test_event_wildcard ust 0 '*abc'
550-test_event_wildcard ust 0 '*z*'
551-test_event_wildcard ust 0 '*\**'
552-test_event_wildcard ust 0 '*\*'
553-test_event_wildcard ust 0 '\**'
554-test_event_wildcard ust 0 '*:*tpte*s'
555-test_event_wildcard ust 0 'tp**tpTest'
556+ EVENT_NAME="tp:tptest"
557
558-# matching
559-test_event_wildcard ust 1 'tp:tp*'
560-test_event_wildcard ust 1 '*'
561-test_event_wildcard ust 1 'tp:tptest*'
562-test_event_wildcard ust 1 '**'
563-test_event_wildcard ust 1 '***'
564-test_event_wildcard ust 1 '*tptest'
565-test_event_wildcard ust 1 '**tptest'
566-test_event_wildcard ust 1 '*tpte*'
567-test_event_wildcard ust 1 '*tp*'
568-test_event_wildcard ust 1 '*tp**'
569-test_event_wildcard ust 1 '*:*tptest'
570-test_event_wildcard ust 1 '*:*tpte*t'
571-test_event_wildcard ust 1 't*p*:*t*e*s*t'
572-test_event_wildcard ust 1 '*t*p*:*t*e*s*t*'
573-test_event_wildcard ust 1 'tp*tptest'
574-test_event_wildcard ust 1 'tp**tptest'
575-test_event_wildcard ust 1 'tp*test'
576+ # non-matching
577+ test_event_wildcard ust 0 'tp:abc*'
578+ test_event_wildcard ust 0 '*abc'
579+ test_event_wildcard ust 0 '*z*'
580+ test_event_wildcard ust 0 '*\**'
581+ test_event_wildcard ust 0 '*\*'
582+ test_event_wildcard ust 0 '\**'
583+ test_event_wildcard ust 0 '*:*tpte*s'
584+ test_event_wildcard ust 0 'tp**tpTest'
585+
586+ # matching
587+ test_event_wildcard ust 1 'tp:tp*'
588+ test_event_wildcard ust 1 '*'
589+ test_event_wildcard ust 1 'tp:tptest*'
590+ test_event_wildcard ust 1 '**'
591+ test_event_wildcard ust 1 '***'
592+ test_event_wildcard ust 1 '*tptest'
593+ test_event_wildcard ust 1 '**tptest'
594+ test_event_wildcard ust 1 '*tpte*'
595+ test_event_wildcard ust 1 '*tp*'
596+ test_event_wildcard ust 1 '*tp**'
597+ test_event_wildcard ust 1 '*:*tptest'
598+ test_event_wildcard ust 1 '*:*tpte*t'
599+ test_event_wildcard ust 1 't*p*:*t*e*s*t'
600+ test_event_wildcard ust 1 '*t*p*:*t*e*s*t*'
601+ test_event_wildcard ust 1 'tp*tptest'
602+ test_event_wildcard ust 1 'tp**tptest'
603+ test_event_wildcard ust 1 'tp*test'
604+}
605
606 if [ "$(id -u)" == "0" ]; then
607 isroot=1
608--
6092.17.1
610
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch
deleted file mode 100644
index c494cee604..0000000000
--- a/meta/recipes-kernel/lttng/lttng-tools/0001-check-for-gettid-API-during-configure.patch
+++ /dev/null
@@ -1,55 +0,0 @@
1From 69c62f5f3cc424b7dd0c8e4097743b39a9c48306 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 27 Jul 2019 08:48:13 -0700
4Subject: [lttng-tools][PATCH] check for gettid API during configure
5
6Add support for gettid() provided by glibc 2.30+
7
8Since version 2.30 glibc provides gettid and it causes conflicts with
9locally defined gettid(). Use the local definition of
10gettid only if system gettid is not available.
11
12https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=NEWS;hb=HEAD<Paste>
13
14Upstream-Status: Pending
15Signed-off-by: Khem Raj <raj.khem@gmail.com>
16---
17 configure.ac | 2 +-
18 src/common/compat/tid.h | 3 ++-
19 2 files changed, 3 insertions(+), 2 deletions(-)
20
21diff --git a/configure.ac b/configure.ac
22index 7b99f5c..e4bd82c 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -190,7 +190,7 @@ AC_CHECK_HEADERS([ \
26 # Basic functions check
27 AC_CHECK_FUNCS([ \
28 atexit bzero clock_gettime dup2 fdatasync fls ftruncate \
29- gethostbyname gethostname getpagesize localtime_r memchr memset \
30+ gethostbyname gethostname getpagesize gettid localtime_r memchr memset \
31 mkdir munmap putenv realpath rmdir socket strchr strcspn strdup \
32 strncasecmp strndup strnlen strpbrk strrchr strstr strtol strtoul \
33 strtoull dirfd gethostbyname2 getipnodebyname epoll_create1 \
34diff --git a/src/common/compat/tid.h b/src/common/compat/tid.h
35index 40f562f..aa07a85 100644
36--- a/src/common/compat/tid.h
37+++ b/src/common/compat/tid.h
38@@ -25,6 +25,7 @@
39 #ifndef LTTNG_TID_H
40 #define LTTNG_TID_H
41
42+#if !HAVE_GETTID
43 #ifdef __linux__
44 #include <syscall.h>
45 #endif
46@@ -47,5 +48,5 @@ static inline pid_t gettid(void)
47 return getpid();
48 }
49 #endif
50-
51+#endif /* HAVE_GETTID */
52 #endif /* LTTNG_TID_H */
53--
542.22.0
55
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0001-tests-do-not-strip-a-helper-library.patch b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-do-not-strip-a-helper-library.patch
new file mode 100644
index 0000000000..2d08b08879
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-tools/0001-tests-do-not-strip-a-helper-library.patch
@@ -0,0 +1,27 @@
1From ab238c213fac190972f55e73cf3e0bb1c7846eb8 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Thu, 12 Dec 2019 16:52:07 +0100
4Subject: [PATCH] tests: do not strip a helper library
5
6Upstream-Status: Inappropriate [oe-core specific]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 tests/utils/testapp/userspace-probe-elf-binary/Makefile.am | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am b/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am
13index 03f5d5a..d12c343 100644
14--- a/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am
15+++ b/tests/utils/testapp/userspace-probe-elf-binary/Makefile.am
16@@ -12,7 +12,7 @@ userspace_probe_elf_binary_LDADD = libfoo.la
17 libfoo.strip: libfoo.la
18 $(OBJCOPY) --strip-all .libs/libfoo.so
19
20-all-local: libfoo.strip
21+all-local:
22 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
23 for script in $(EXTRA_DIST); do \
24 cp -f $(srcdir)/$$script $(builddir); \
25--
262.17.1
27
diff --git a/meta/recipes-kernel/lttng/lttng-tools/0002-Fix-check-for-lttng-modules-presence-before-testing.patch b/meta/recipes-kernel/lttng/lttng-tools/0002-Fix-check-for-lttng-modules-presence-before-testing.patch
deleted file mode 100644
index 784a07940a..0000000000
--- a/meta/recipes-kernel/lttng/lttng-tools/0002-Fix-check-for-lttng-modules-presence-before-testing.patch
+++ /dev/null
@@ -1,24 +0,0 @@
1From 58e4dcce48b48b68b65bffc0cd51d9e26b44c75d Mon Sep 17 00:00:00 2001
2From: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3Date: Wed, 22 May 2019 16:44:54 -0400
4Subject: [PATCH] Fix: check for lttng modules presence before testing
5
6Upstream-Status: Submitted [https://lists.lttng.org/pipermail/lttng-dev/2019-May/028987.html]
7
8Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
9---
10 tests/regression/tools/notification/test_notification_multi_app | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/tests/regression/tools/notification/test_notification_multi_app b/tests/regression/tools/notification/test_notification_multi_app
14index 29b0f62..a6baf65 100755
15--- a/tests/regression/tools/notification/test_notification_multi_app
16+++ b/tests/regression/tools/notification/test_notification_multi_app
17@@ -484,6 +484,7 @@ else
18 fi
19
20 if [ "$(id -u)" == "0" ]; then
21+ validate_lttng_modules_present
22 TESTS+=(
23 test_multi_app_kernel
24 test_on_register_evaluation_kernel
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb b/meta/recipes-kernel/lttng/lttng-tools_2.11.0.bb
index aa6d19d0fa..a279756741 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.10.7.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.11.0.bb
@@ -11,7 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \
11 11
12DEPENDS = "liburcu popt libxml2 util-linux" 12DEPENDS = "liburcu popt libxml2 util-linux"
13RDEPENDS_${PN} = "libgcc" 13RDEPENDS_${PN} = "libgcc"
14RDEPENDS_${PN}-ptest += "make perl bash gawk babeltrace procps perl-module-overloading coreutils util-linux kmod lttng-modules sed" 14RDEPENDS_${PN}-ptest += "make perl bash gawk babeltrace procps perl-module-overloading coreutils util-linux kmod lttng-modules sed python3-core"
15RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils" 15RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-utils"
16RDEPENDS_${PN}-ptest_append_libc-musl = " musl-utils" 16RDEPENDS_${PN}-ptest_append_libc-musl = " musl-utils"
17# babelstats.pl wants getopt-long 17# babelstats.pl wants getopt-long
@@ -30,15 +30,13 @@ PACKAGECONFIG_remove_arc = "lttng-ust"
30 30
31SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \ 31SRC_URI = "https://lttng.org/files/lttng-tools/lttng-tools-${PV}.tar.bz2 \
32 file://x32.patch \ 32 file://x32.patch \
33 file://0001-tests-do-not-strip-a-helper-library.patch \
33 file://run-ptest \ 34 file://run-ptest \
34 file://lttng-sessiond.service \ 35 file://lttng-sessiond.service \
35 file://0001-Skip-when-testapp-is-not-present.patch \
36 file://0002-Fix-check-for-lttng-modules-presence-before-testing.patch \
37 file://0001-check-for-gettid-API-during-configure.patch \
38 " 36 "
39 37
40SRC_URI[md5sum] = "e7804d10e4cade381e241601f6047373" 38SRC_URI[md5sum] = "e6c23244a36e2a09783d03a362eb63cb"
41SRC_URI[sha256sum] = "ed71ebe00c5d985c74f30e97b614e909573cbd9276c85e05d9557a0b817a1312" 39SRC_URI[sha256sum] = "dce493c82db673c96049b5fad155a760fa449fab3d92467a69fcb0ddaf3f0fbc"
42 40
43inherit autotools ptest pkgconfig useradd python3-dir manpages systemd 41inherit autotools ptest pkgconfig useradd python3-dir manpages systemd
44 42
@@ -59,6 +57,8 @@ FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la"
59INSANE_SKIP_${PN} = "libexec dev-so" 57INSANE_SKIP_${PN} = "libexec dev-so"
60INSANE_SKIP_${PN}-dbg = "libexec" 58INSANE_SKIP_${PN}-dbg = "libexec"
61 59
60PRIVATE_LIBS_${PN}-ptest = "libfoo.so"
61
62do_install_append () { 62do_install_append () {
63 # install systemd unit file 63 # install systemd unit file
64 install -d ${D}${systemd_unitdir}/system 64 install -d ${D}${systemd_unitdir}/system
@@ -111,6 +111,8 @@ do_install_ptest () {
111 done 111 done
112 done 112 done
113 113
114 chrpath --delete ${D}${PTEST_PATH}/tests/utils/testapp/userspace-probe-elf-binary/userspace-probe-elf-binary
115
114 # 116 #
115 # Use the versioned libs of liblttng-ust-dl. 117 # Use the versioned libs of liblttng-ust-dl.
116 # 118 #