From: Francis Deslauriers Date: Fri, 9 Feb 2024 21:22:20 +0000 (-0500) Subject: tests: move CTF 1 test traces to their own directory X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=a1d35738baf90ead12467ddbad6dc34f31f1306a;p=babeltrace.git tests: move CTF 1 test traces to their own directory Signed-off-by: Francis Deslauriers Change-Id: I4d7ca33c1187b7495dd49103ecec66316ff65001 Reviewed-on: https://review.lttng.org/c/babeltrace/+/8433 Reviewed-by: Philippe Proulx Reviewed-on: https://review.lttng.org/c/babeltrace/+/8644 --- diff --git a/tests/bindings/python/bt2/test_trace_collection_message_iterator.py b/tests/bindings/python/bt2/test_trace_collection_message_iterator.py index 53d838fc..a31effcc 100644 --- a/tests/bindings/python/bt2/test_trace_collection_message_iterator.py +++ b/tests/bindings/python/bt2/test_trace_collection_message_iterator.py @@ -13,12 +13,12 @@ import bt2 _BT_TESTS_DATADIR = os.environ["BT_TESTS_DATADIR"] _BT_CTF_TRACES_PATH = os.environ["BT_CTF_TRACES_PATH"] _3EVENTS_INTERSECT_TRACE_PATH = os.path.join( - _BT_CTF_TRACES_PATH, "intersection", "3eventsintersect" + _BT_CTF_TRACES_PATH, "1", "intersection", "3eventsintersect" ) _NOINTERSECT_TRACE_PATH = os.path.join( - _BT_CTF_TRACES_PATH, "intersection", "nointersect" + _BT_CTF_TRACES_PATH, "1", "intersection", "nointersect" ) -_SEQUENCE_TRACE_PATH = os.path.join(_BT_CTF_TRACES_PATH, "succeed", "sequence") +_SEQUENCE_TRACE_PATH = os.path.join(_BT_CTF_TRACES_PATH, "1", "succeed", "sequence") _AUTO_SOURCE_DISCOVERY_GROUPING_PATH = os.path.join( _BT_TESTS_DATADIR, "auto-source-discovery", "grouping" ) @@ -27,7 +27,7 @@ _AUTO_SOURCE_DISCOVERY_PARAMS_LOG_LEVEL_PATH = os.path.join( ) _METADATA_SYNTAX_ERROR_TRACE_PATH = os.path.join( - _BT_CTF_TRACES_PATH, "fail", "metadata-syntax-error" + _BT_CTF_TRACES_PATH, "1", "fail", "metadata-syntax-error" ) _BT_ENABLE_PYTHON_PLUGINS = os.environ["BT_TESTS_ENABLE_PYTHON_PLUGINS"] == "1" diff --git a/tests/cli/convert/test-convert-args.sh b/tests/cli/convert/test-convert-args.sh index ac4c2b52..89e895fd 100755 --- a/tests/cli/convert/test-convert-args.sh +++ b/tests/cli/convert/test-convert-args.sh @@ -66,8 +66,8 @@ test_bt_convert_fails() { fi } -path_to_trace="${BT_CTF_TRACES_PATH}/succeed/succeed1" -path_to_trace2="${BT_CTF_TRACES_PATH}/succeed/succeed2" +path_to_trace="${BT_CTF_TRACES_PATH}/1/succeed/succeed1" +path_to_trace2="${BT_CTF_TRACES_PATH}/1/succeed/succeed2" output_path="/output/path" if [ "$BT_TESTS_OS_TYPE" = "mingw" ]; then diff --git a/tests/cli/test-intersection.sh b/tests/cli/test-intersection.sh index 18711c56..ff1193dc 100755 --- a/tests/cli/test-intersection.sh +++ b/tests/cli/test-intersection.sh @@ -67,20 +67,20 @@ test_intersect_fails() { diag "Test the stream intersection feature" diag "2 streams offsetted with 3 packets intersecting" -test_intersect "${BT_CTF_TRACES_PATH}/intersection/3eventsintersect" 8 3 +test_intersect "${BT_CTF_TRACES_PATH}/1/intersection/3eventsintersect" 8 3 diag "2 streams offsetted with 3 packets intersecting (exchanged file names)" -test_intersect "${BT_CTF_TRACES_PATH}/intersection/3eventsintersectreverse" 8 3 +test_intersect "${BT_CTF_TRACES_PATH}/1/intersection/3eventsintersectreverse" 8 3 diag "Only 1 stream" -test_intersect "${BT_CTF_TRACES_PATH}/intersection/onestream" 3 3 +test_intersect "${BT_CTF_TRACES_PATH}/1/intersection/onestream" 3 3 diag "No intersection between 2 streams" -test_intersect_fails "${BT_CTF_TRACES_PATH}/intersection/nointersect" 6 \ +test_intersect_fails "${BT_CTF_TRACES_PATH}/1/intersection/nointersect" 6 \ "Trimming time range's beginning time is greater than end time: " diag "No stream at all" -test_intersect_fails "${BT_CTF_TRACES_PATH}/intersection/nostream" 0 \ +test_intersect_fails "${BT_CTF_TRACES_PATH}/1/intersection/nostream" 0 \ "Trace has no streams: " rm -f "${stdout}" "${stderr}" diff --git a/tests/cli/test-output-ctf-metadata.sh b/tests/cli/test-output-ctf-metadata.sh index f85fc053..28aa2a10 100755 --- a/tests/cli/test-output-ctf-metadata.sh +++ b/tests/cli/test-output-ctf-metadata.sh @@ -23,7 +23,7 @@ plan_tests $NUM_TESTS tmp_metadata=$(mktemp) # Test a valid trace directory. -"${BT_TESTS_BT2_BIN}" -o ctf-metadata "${BT_CTF_TRACES_PATH}/succeed/wk-heartbeat-u" > "$tmp_metadata" +"${BT_TESTS_BT2_BIN}" -o ctf-metadata "${BT_CTF_TRACES_PATH}/1/succeed/wk-heartbeat-u" > "$tmp_metadata" ok $? "Run babeltrace -o ctf-metadata with a valid trace directory, correct exit status" bt_diff "${BT_TESTS_DATADIR}/cli/test-output-ctf-metadata.ref" "$tmp_metadata" diff --git a/tests/cli/test-output-path-ctf-non-lttng-trace.sh b/tests/cli/test-output-path-ctf-non-lttng-trace.sh index d589dbe1..7a5b02a6 100755 --- a/tests/cli/test-output-path-ctf-non-lttng-trace.sh +++ b/tests/cli/test-output-path-ctf-non-lttng-trace.sh @@ -32,13 +32,13 @@ temp_input_dir=$(mktemp -t -d test-output-path-ctf-non-lttng-trace-input.XXXXXX) temp_output_dir=$(mktemp -t -d test-output-path-ctf-non-lttng-trace-output.XXXXXX) mkdir -p "${temp_input_dir}/a/b/c" -cp -a "${BT_CTF_TRACES_PATH}/intersection/3eventsintersect" "${temp_input_dir}/a/b/c" +cp -a "${BT_CTF_TRACES_PATH}/1/intersection/3eventsintersect" "${temp_input_dir}/a/b/c" mkdir -p "${temp_input_dir}/a/b/c" -cp -a "${BT_CTF_TRACES_PATH}/intersection/3eventsintersectreverse" "${temp_input_dir}/a/b/c" +cp -a "${BT_CTF_TRACES_PATH}/1/intersection/3eventsintersectreverse" "${temp_input_dir}/a/b/c" mkdir -p "${temp_input_dir}/d/e/f" -cp -a "${BT_CTF_TRACES_PATH}/intersection/nointersect" "${temp_input_dir}/d/e/f" +cp -a "${BT_CTF_TRACES_PATH}/1/intersection/nointersect" "${temp_input_dir}/d/e/f" bt_cli "/dev/null" "/dev/null" "${temp_input_dir}" -c sink.ctf.fs -p "path=\"${temp_output_dir}\"" diff --git a/tests/cli/test-packet-seq-num.sh b/tests/cli/test-packet-seq-num.sh index 8c838058..253694c4 100755 --- a/tests/cli/test-packet-seq-num.sh +++ b/tests/cli/test-packet-seq-num.sh @@ -54,16 +54,16 @@ test_lost() { diag "Test the packet_seq_num validation" diag "No packet lost" -test_no_lost "${BT_CTF_TRACES_PATH}/packet-seq-num/no-lost" +test_no_lost "${BT_CTF_TRACES_PATH}/1/packet-seq-num/no-lost" diag "No packet lost, packet_seq_num not starting at 0" -test_no_lost "${BT_CTF_TRACES_PATH}/packet-seq-num/no-lost-not-starting-at-0" +test_no_lost "${BT_CTF_TRACES_PATH}/1/packet-seq-num/no-lost-not-starting-at-0" diag "1 stream, 2 packets lost before the last packet" -test_lost "${BT_CTF_TRACES_PATH}/packet-seq-num/2-lost-before-last" "2" +test_lost "${BT_CTF_TRACES_PATH}/1/packet-seq-num/2-lost-before-last" "2" diag "2 streams, packets lost in one of them" -test_lost "${BT_CTF_TRACES_PATH}/packet-seq-num/2-streams-lost-in-1" "2" +test_lost "${BT_CTF_TRACES_PATH}/1/packet-seq-num/2-streams-lost-in-1" "2" diag "2 streams, packets lost in both" -test_lost "${BT_CTF_TRACES_PATH}/packet-seq-num/2-streams-lost-in-2" "2,3,1" +test_lost "${BT_CTF_TRACES_PATH}/1/packet-seq-num/2-streams-lost-in-2" "2,3,1" diff --git a/tests/cli/test-trace-copy.sh b/tests/cli/test-trace-copy.sh index 5b9f9ad5..40cc002c 100755 --- a/tests/cli/test-trace-copy.sh +++ b/tests/cli/test-trace-copy.sh @@ -20,7 +20,7 @@ clean_tmp() { rm -rf "${out_path}" "${text_output1}" "${text_output2_intermediary}" "${text_output2}" "${stderr_file}" } -SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/succeed/"*) +SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/1/succeed/"*) # -4 because there are two empty traces that we skip NUM_TESTS=$((${#SUCCESS_TRACES[@]} * 3 - 4)) diff --git a/tests/cli/test-trace-read.sh b/tests/cli/test-trace-read.sh index 474015e0..b3a30a7e 100755 --- a/tests/cli/test-trace-read.sh +++ b/tests/cli/test-trace-read.sh @@ -16,8 +16,8 @@ fi # shellcheck source=../utils/utils.sh source "$UTILSSH" -SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/succeed/"*) -FAIL_TRACES=("${BT_CTF_TRACES_PATH}/fail/"*) +SUCCESS_TRACES=("${BT_CTF_TRACES_PATH}/1/succeed/"*) +FAIL_TRACES=("${BT_CTF_TRACES_PATH}/1/fail/"*) NUM_TESTS=$((${#SUCCESS_TRACES[@]} + ${#FAIL_TRACES[@]})) diff --git a/tests/cli/test-trimmer.sh b/tests/cli/test-trimmer.sh index 4b415b47..bf5ed4b8 100755 --- a/tests/cli/test-trimmer.sh +++ b/tests/cli/test-trimmer.sh @@ -16,7 +16,7 @@ fi # shellcheck source=../utils/utils.sh source "$UTILSSH" -TRACE_PATH="${BT_CTF_TRACES_PATH}/succeed/wk-heartbeat-u/" +TRACE_PATH="${BT_CTF_TRACES_PATH}/1/succeed/wk-heartbeat-u/" NUM_TESTS=118 diff --git a/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/dummystream b/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/dummystream new file mode 100644 index 00000000..f0380a19 Binary files /dev/null and b/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/dummystream differ diff --git a/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/metadata b/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/metadata new file mode 100644 index 00000000..9008c153 --- /dev/null +++ b/tests/data/ctf-traces/1/deterministic-ordering/a-corrupted/metadata @@ -0,0 +1,31 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = be; + uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; + + packet.header := struct { + uint8_t stream_id; + uint8_t stream_instance_id; + }; +}; + +stream { + id = 0; + event.header := struct { + uint8_t id; + }; + + packet.context := struct { + uint8_t timestamp_begin; + }; +}; + +event { + name = gadoua; + id = 1; +}; diff --git a/tests/data/ctf-traces/1/deterministic-ordering/b-c.expect b/tests/data/ctf-traces/1/deterministic-ordering/b-c.expect new file mode 100644 index 00000000..c21129b2 --- /dev/null +++ b/tests/data/ctf-traces/1/deterministic-ordering/b-c.expect @@ -0,0 +1,7 @@ +[Unknown] {0 0 0} Stream beginning +[0 0] {0 0 0} Packet beginning +[0 0] {0 0 0} Event `gadoua` (1) +[0 0] {0 0 0} Event `gadoua` (1) +[0 0] {0 0 0} Event `gadoua` (1) +{0 0 0} Packet end +[Unknown] {0 0 0} Stream end diff --git a/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/dummystream b/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/dummystream new file mode 100644 index 00000000..f69dc7ee Binary files /dev/null and b/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/dummystream differ diff --git a/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/metadata b/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/metadata new file mode 100644 index 00000000..9008c153 --- /dev/null +++ b/tests/data/ctf-traces/1/deterministic-ordering/b-not-corrupted/metadata @@ -0,0 +1,31 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = be; + uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; + + packet.header := struct { + uint8_t stream_id; + uint8_t stream_instance_id; + }; +}; + +stream { + id = 0; + event.header := struct { + uint8_t id; + }; + + packet.context := struct { + uint8_t timestamp_begin; + }; +}; + +event { + name = gadoua; + id = 1; +}; diff --git a/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/dummystream b/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/dummystream new file mode 100644 index 00000000..f0380a19 Binary files /dev/null and b/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/dummystream differ diff --git a/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/metadata b/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/metadata new file mode 100644 index 00000000..9008c153 --- /dev/null +++ b/tests/data/ctf-traces/1/deterministic-ordering/c-corrupted/metadata @@ -0,0 +1,31 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = be; + uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; + + packet.header := struct { + uint8_t stream_id; + uint8_t stream_instance_id; + }; +}; + +stream { + id = 0; + event.header := struct { + uint8_t id; + }; + + packet.context := struct { + uint8_t timestamp_begin; + }; +}; + +event { + name = gadoua; + id = 1; +}; diff --git a/tests/data/ctf-traces/1/fail/fail1/dummystream b/tests/data/ctf-traces/1/fail/fail1/dummystream new file mode 100644 index 00000000..26010671 Binary files /dev/null and b/tests/data/ctf-traces/1/fail/fail1/dummystream differ diff --git a/tests/data/ctf-traces/1/fail/fail1/metadata b/tests/data/ctf-traces/1/fail/fail1/metadata new file mode 100644 index 00000000..28185f5d --- /dev/null +++ b/tests/data/ctf-traces/1/fail/fail1/metadata @@ -0,0 +1,49 @@ +/* CTF 1.8 + * + * Architecture with 32-bit pointers, 32-bit integers, 32-bit longs. + */ + +typealias integer { size = 1; align = 1; signed = false; } := uint1_t; +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 63; align = 1; signed = false; } := timestamp_t; + +typealias integer { size = 32; align = 32; signed = false; base = 10; } := uint32_t; +typealias integer { size = 32; align = 32; signed = false; } := void *; + + +trace { + major = 0; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + }; +}; + +stream { + event.header := struct { + uint1_t id; + timestamp_t timestamp; + }; + event.context := struct { + uint32_t thread_id; + uint32_t event_count; + }; +}; + +event { + name = func_enter; + id = 0; + fields := struct { + void *func_called; + void *called_from; + }; +}; + +event { + name = func_exit; + id = 1; +}; diff --git a/tests/data/ctf-traces/1/fail/fail2/metadata b/tests/data/ctf-traces/1/fail/fail2/metadata new file mode 100644 index 00000000..456661ed Binary files /dev/null and b/tests/data/ctf-traces/1/fail/fail2/metadata differ diff --git a/tests/data/ctf-traces/1/fail/integer-range/metadata b/tests/data/ctf-traces/1/fail/integer-range/metadata new file mode 100644 index 00000000..35749408 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/integer-range/metadata @@ -0,0 +1,27 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; } := uint32_t; + +trace { + /* Integer out of range */ + major = 23452397856348975623897562893746589237465289374658923764598237645897234658723648579236; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/fail/invalid-packet-size/README b/tests/data/ctf-traces/1/fail/invalid-packet-size/README new file mode 100644 index 00000000..e275e81d --- /dev/null +++ b/tests/data/ctf-traces/1/fail/invalid-packet-size/README @@ -0,0 +1,2 @@ +The sum of the packet sizes in this trace (both in the index file and in the +actual packet headers) is larger than the data file. diff --git a/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/channel0_3 b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/channel0_3 new file mode 100644 index 00000000..7682714b Binary files /dev/null and b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/channel0_3 differ diff --git a/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/index/channel0_3.idx b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/index/channel0_3.idx new file mode 100644 index 00000000..c8f306cf Binary files /dev/null and b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/index/channel0_3.idx differ diff --git a/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/metadata b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/metadata new file mode 100644 index 00000000..46d334f1 Binary files /dev/null and b/tests/data/ctf-traces/1/fail/invalid-packet-size/trace/metadata differ diff --git a/tests/data/ctf-traces/1/fail/invalid-sequence-length-field-class/metadata b/tests/data/ctf-traces/1/fail/invalid-sequence-length-field-class/metadata new file mode 100644 index 00000000..d56b8c80 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/invalid-sequence-length-field-class/metadata @@ -0,0 +1,25 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +stream { + event.header := struct { + uint8_t id; + }; +}; + +event { + name = ze_event; + id = 1; + fields := struct { + struct { + uint8_t hello; + } len; + uint8_t x[len]; + }; +}; diff --git a/tests/data/ctf-traces/1/fail/invalid-variant-selector-field-class/metadata b/tests/data/ctf-traces/1/fail/invalid-variant-selector-field-class/metadata new file mode 100644 index 00000000..3cfa3422 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/invalid-variant-selector-field-class/metadata @@ -0,0 +1,28 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +stream { + event.header := struct { + uint8_t id; + }; +}; + +event { + name = ze_event; + id = 1; + fields := struct { + struct { + uint8_t hello; + } selector; + variant { + uint8_t a; + uint8_t b; + } v; + }; +}; diff --git a/tests/data/ctf-traces/1/fail/lttng-modules-2.0-pre1/metadata b/tests/data/ctf-traces/1/fail/lttng-modules-2.0-pre1/metadata new file mode 100644 index 00000000..6f92a298 Binary files /dev/null and b/tests/data/ctf-traces/1/fail/lttng-modules-2.0-pre1/metadata differ diff --git a/tests/data/ctf-traces/1/fail/metadata-syntax-error/metadata b/tests/data/ctf-traces/1/fail/metadata-syntax-error/metadata new file mode 100644 index 00000000..f38aed91 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/metadata-syntax-error/metadata @@ -0,0 +1,3 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; ] := uint8_t; diff --git a/tests/data/ctf-traces/1/fail/packet-based-metadata/metadata b/tests/data/ctf-traces/1/fail/packet-based-metadata/metadata new file mode 100644 index 00000000..e2097803 Binary files /dev/null and b/tests/data/ctf-traces/1/fail/packet-based-metadata/metadata differ diff --git a/tests/data/ctf-traces/1/fail/smalltrace/dummystream-fail b/tests/data/ctf-traces/1/fail/smalltrace/dummystream-fail new file mode 100644 index 00000000..fc7e07cb --- /dev/null +++ b/tests/data/ctf-traces/1/fail/smalltrace/dummystream-fail @@ -0,0 +1 @@ +ÁüÁ*d \ No newline at end of file diff --git a/tests/data/ctf-traces/1/fail/smalltrace/metadata b/tests/data/ctf-traces/1/fail/smalltrace/metadata new file mode 100644 index 00000000..86f8e0a3 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/smalltrace/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 0; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/README b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/README new file mode 100644 index 00000000..4a90193b --- /dev/null +++ b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/README @@ -0,0 +1,2 @@ +This trace was written by hand. It contains two valid events, followed by an +invalid one (the event id is invalid). diff --git a/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/dummystream b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/dummystream new file mode 100644 index 00000000..415fe23e --- /dev/null +++ b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/dummystream @@ -0,0 +1 @@ +ÿ \ No newline at end of file diff --git a/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/metadata b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/metadata new file mode 100644 index 00000000..479fdb64 --- /dev/null +++ b/tests/data/ctf-traces/1/fail/valid-events-then-invalid-events/trace/metadata @@ -0,0 +1,21 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +stream { + event.header := struct { + uint8_t id; + }; +}; + + +event { + name = gadoua; + id = 1; +}; diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersect/metadata b/tests/data/ctf-traces/1/intersection/3eventsintersect/metadata new file mode 100644 index 00000000..7cc1b4d1 --- /dev/null +++ b/tests/data/ctf-traces/1/intersection/3eventsintersect/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "7b9e2f2a-530e-4ab1-816f-0831b5c09140"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_0 b/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_0 new file mode 100644 index 00000000..6a69e445 Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_1 b/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_1 new file mode 100644 index 00000000..0cf1404d Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/3eventsintersect/test_stream_1 differ diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/metadata b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/metadata new file mode 100644 index 00000000..7379027b --- /dev/null +++ b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "6faef770-c4b0-4bf6-afcb-b33546dfb87e"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "a0c643c4-b36c-4358-94a9-8bc54efade5e"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_0 b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_0 new file mode 100644 index 00000000..0cf1404d Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_1 b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_1 new file mode 100644 index 00000000..6a69e445 Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/3eventsintersectreverse/test_stream_1 differ diff --git a/tests/data/ctf-traces/1/intersection/nointersect/metadata b/tests/data/ctf-traces/1/intersection/nointersect/metadata new file mode 100644 index 00000000..5e14a71b --- /dev/null +++ b/tests/data/ctf-traces/1/intersection/nointersect/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "a967fbc0-c89b-4b92-b5df-30688d576ddf"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "fb759646-b2b9-42d7-9013-f790694dd902"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/intersection/nointersect/test_stream_0 b/tests/data/ctf-traces/1/intersection/nointersect/test_stream_0 new file mode 100644 index 00000000..7c32bae6 Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/nointersect/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/intersection/nointersect/test_stream_1 b/tests/data/ctf-traces/1/intersection/nointersect/test_stream_1 new file mode 100644 index 00000000..e656ba67 Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/nointersect/test_stream_1 differ diff --git a/tests/data/ctf-traces/1/intersection/nostream/metadata b/tests/data/ctf-traces/1/intersection/nostream/metadata new file mode 100644 index 00000000..08f73877 --- /dev/null +++ b/tests/data/ctf-traces/1/intersection/nostream/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "40931b4f-3f84-48ef-aa1e-f8aab3209724"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "3f2488d7-4617-4d08-9bf3-280008591f86"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/intersection/onestream/metadata b/tests/data/ctf-traces/1/intersection/onestream/metadata new file mode 100644 index 00000000..19ce9326 --- /dev/null +++ b/tests/data/ctf-traces/1/intersection/onestream/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "a8d0738a-4a6d-466b-83a7-8ab3c387d5bb"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "1fb54d69-571c-49a1-9a34-084c7f3a5b33"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/intersection/onestream/test_stream_0 b/tests/data/ctf-traces/1/intersection/onestream/test_stream_0 new file mode 100644 index 00000000..7c32bae6 Binary files /dev/null and b/tests/data/ctf-traces/1/intersection/onestream/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/live/new-streams/first-trace.mctf b/tests/data/ctf-traces/1/live/new-streams/first-trace.mctf new file mode 100644 index 00000000..c3db828c --- /dev/null +++ b/tests/data/ctf-traces/1/live/new-streams/first-trace.mctf @@ -0,0 +1,90 @@ +--- metadata +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +clock { + name = cycle_counter_test; + uuid = "5b59e7db-5e49-418a-9adf-e1adfdf571c4"; + freq = 1000000000; +}; + +typealias integer { size = 8; align = 8; signed = false; map = clock.cycle_counter_test.value; } := cc_count_t; + +struct packet_context { + cc_count_t timestamp_begin; + cc_count_t timestamp_end; + uint8_t content_size; + uint8_t packet_size; +}; + +struct event_header { + uint8_t id; + cc_count_t timestamp; +}; + +stream { + event.header := struct event_header; + packet.context := struct packet_context; +}; + +event { + name = "first_trace_event"; + id = 0; + fields := struct { + uint8_t value; + }; +}; + +--- first_trace_stream_0 +!macro packet(ts_beg, event_id) + + [ ts_beg : 8] # timestamp begin + [ ts_beg + 1 : 8] # timestamp end + [8 * (end - beg) : 8] # content size in bits + [8 * (end - beg) : 8] # packet size in bits + + [ event_id : 8] # event id + [ ts_beg : 8] # timestamp + [ 42 : 8] # value field + +!end + +{ p1_s0_ts = 10 } +{ p2_s0_ts = 20 } + + +m:packet(p1_s0_ts, 0) + + + +m:packet(p2_s0_ts, 0) + + +--- index/first_trace_stream_0.idx +!be + +[0xC1F1DCC1 : 32] # Magic number +[ 1 : 32] # Major +[ 0 : 32] # Minor +[ 56 : 32] # Index entry size (56 bytes) + +# Packet 1 +!macro entry(beg_label, end_label, ts_beg) + [ beg_label : 64] # offset in bytes + [8 * (end_label - beg_label) : 64] # total size in bits + [8 * (end_label - beg_label) : 64] # content size in bits + [ ts_beg : 64] # timestamp begin + [ ts_beg + 1 : 64] # timestamp end + [ 0 : 64] # events discarded + [ 0 : 64] # stream class id +!end + +m:entry(p1_s0, p1_s0_end, p1_s0_ts) +m:entry(p2_s0, p2_s0_end, p2_s0_ts) diff --git a/tests/data/ctf-traces/1/live/new-streams/second-trace.mctf b/tests/data/ctf-traces/1/live/new-streams/second-trace.mctf new file mode 100644 index 00000000..969e0be1 --- /dev/null +++ b/tests/data/ctf-traces/1/live/new-streams/second-trace.mctf @@ -0,0 +1,90 @@ +--- metadata +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +clock { + name = cycle_counter_test; + uuid = "5b59e7db-5e49-418a-9adf-e1adfdf571c4"; + freq = 1000000000; +}; + +typealias integer { size = 8; align = 8; signed = false; map = clock.cycle_counter_test.value; } := cc_count_t; + +struct packet_context { + cc_count_t timestamp_begin; + cc_count_t timestamp_end; + uint8_t content_size; + uint8_t packet_size; +}; + +struct event_header { + uint8_t id; + cc_count_t timestamp; +}; + +stream { + event.header := struct event_header; + packet.context := struct packet_context; +}; + +event { + name = "second_trace_event"; + id = 0; + fields := struct { + uint8_t value; + }; +}; + +--- second_trace_stream_0 +!macro packet(ts_beg, event_id) + + [ ts_beg : 8] # timestamp begin + [ ts_beg + 1 : 8] # timestamp end + [8 * (end - beg) : 8] # content size in bits + [8 * (end - beg) : 8] # packet size in bits + + [ event_id : 8] # event id + [ ts_beg : 8] # timestamp + [ 123 : 8] # value field + +!end + +{ p1_s0_ts = 110 } +{ p2_s0_ts = 120 } + + +m:packet(p1_s0_ts, 0) + + + +m:packet(p2_s0_ts, 0) + + +--- index/second_trace_stream_0.idx +!be + +[0xC1F1DCC1 : 32] # Magic number +[ 1 : 32] # Major +[ 0 : 32] # Minor +[ 56 : 32] # Index entry size (56 bytes) + +# Packet 1 +!macro entry(beg_label, end_label, ts_beg) + [ beg_label : 64] # offset in bytes + [8 * (end_label - beg_label) : 64] # total size in bits + [8 * (end_label - beg_label) : 64] # content size in bits + [ ts_beg : 64] # timestamp begin + [ ts_beg + 1 : 64] # timestamp end + [ 0 : 64] # events discarded + [ 0 : 64] # stream class id +!end + +m:entry(p1_s0, p1_s0_end, p1_s0_ts) +m:entry(p2_s0, p2_s0_end, p2_s0_ts) diff --git a/tests/data/ctf-traces/1/live/split-metadata/channel0_0 b/tests/data/ctf-traces/1/live/split-metadata/channel0_0 new file mode 100644 index 00000000..c8e9ddbe Binary files /dev/null and b/tests/data/ctf-traces/1/live/split-metadata/channel0_0 differ diff --git a/tests/data/ctf-traces/1/live/split-metadata/index/channel0_0.idx b/tests/data/ctf-traces/1/live/split-metadata/index/channel0_0.idx new file mode 100644 index 00000000..399ec45a Binary files /dev/null and b/tests/data/ctf-traces/1/live/split-metadata/index/channel0_0.idx differ diff --git a/tests/data/ctf-traces/1/live/split-metadata/metadata b/tests/data/ctf-traces/1/live/split-metadata/metadata new file mode 100644 index 00000000..b61a4e1c --- /dev/null +++ b/tests/data/ctf-traces/1/live/split-metadata/metadata @@ -0,0 +1,119 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "0339cd08-892d-404c-9291-64c1a8a74c81"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 12; + tracer_buffering_scheme = "uid"; + tracer_buffering_id = 1000; + architecture_bit_width = 64; + trace_name = "barney_descontie"; + trace_creation_datetime = "20200715T174253-0400"; + hostname = "raton"; +}; + +clock { + name = "monotonic"; + uuid = "81a04b89-9028-4d3e-a28d-5fbd53a8eb9d"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1594406328768346378; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; +}; + +event { + name = "my_app:signe_de_pia$$e"; + id = 0; + stream_id = 0; + loglevel = 13; + fields := struct { + }; +}; + +event { + name = "my_app:signe_de_pia$$e_2"; + id = 1; + stream_id = 0; + loglevel = 13; + fields := struct { + }; +}; diff --git a/tests/data/ctf-traces/1/live/stored-values.mctf b/tests/data/ctf-traces/1/live/stored-values.mctf new file mode 100644 index 00000000..8d198353 --- /dev/null +++ b/tests/data/ctf-traces/1/live/stored-values.mctf @@ -0,0 +1,91 @@ +--- metadata +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +struct packet_context { + uint8_t timestamp_begin; + uint8_t timestamp_end; + uint8_t content_size; + uint8_t packet_size; +}; + +struct event_header { + uint8_t id; + uint8_t timestamp; +}; + +stream { + event.header := struct event_header; + packet.context := struct packet_context; +}; + +event { + name = "event1"; + id = 1; + fields := struct { + uint8_t len; + uint8_t seq[len]; + }; +}; + +event { + name = "event2"; + id = 2; + fields := struct { + uint8_t len; + uint8_t seq[len]; + }; +}; + +--- channel0_0 +!macro packet(ts_beg, event_id) + + [ ts_beg : 8] # timestamp begin + [ ts_beg + 1 : 8] # timestamp end + [8 * (end - beg) : 8] # content size in bits + [8 * (end - beg) : 8] # packet size in bits + + [ event_id : 8] # event id + [ ts_beg : 8] # timestamp + [ 0 : 8] # len field + +!end + +{ p1_ts = 10 } +{ p2_ts = 20 } + + +m:packet(p1_ts, 1) + + + +m:packet(p2_ts, 2) + + +--- index/channel0_0.idx +!be + +[0xC1F1DCC1 : 32] # Magic number +[ 1 : 32] # Major +[ 0 : 32] # Minor +[ 56 : 32] # Index entry size (56 bytes) + +!macro entry(beg_label, end_label, ts_beg) + [ beg_label : 64] # offset in bytes + [8 * (end_label - beg_label) : 64] # total size in bits + [8 * (end_label - beg_label) : 64] # content size in bits + [ ts_beg : 64] # timestamp begin + [ ts_beg + 1 : 64] # timestamp end + [ 0 : 64] # events discarded + [ 0 : 64] # stream class id +!end + +m:entry(p1, p1_end, p1_ts) +m:entry(p2, p2_end, p2_ts) diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/metadata b/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/metadata new file mode 100644 index 00000000..36e26cdf --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "ad21eeaa-fab9-4692-aab8-ebd68c7feb17"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "d336520f-985d-481e-8e35-d99328655354"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/test_stream_0 b/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/test_stream_0 new file mode 100644 index 00000000..50d36a46 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/2-lost-before-last/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/metadata b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/metadata new file mode 100644 index 00000000..525405e2 --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "61db8e6b-2069-40e4-84ed-bc15f42181f0"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "a0a8c252-db03-4f36-a148-80a0a3c4edff"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_0 b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_0 new file mode 100644 index 00000000..1b362cd4 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_1 b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_1 new file mode 100644 index 00000000..d5114d90 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-1/test_stream_1 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/metadata b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/metadata new file mode 100644 index 00000000..680d9103 --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "eb5045f7-b471-488e-b963-0221ddf423a7"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "2447a359-1e57-448f-96ef-3c324327047c"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_0 b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_0 new file mode 100644 index 00000000..b0beb6b4 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_1 b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_1 new file mode 100644 index 00000000..1ad83201 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/2-streams-lost-in-2/test_stream_1 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx new file mode 100644 index 00000000..e06d92fb Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/metadata b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/metadata new file mode 100644 index 00000000..37a30308 --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/metadata @@ -0,0 +1,48 @@ +/* CTF 1.8 */ + +/* This was generated by a Babeltrace `sink.ctf.fs` component. */ + +trace { + major = 1; + minor = 8; + uuid = "1c810767-575e-4c4e-afa1-5d3e15081cb9"; + byte_order = le; + packet.header := struct { + integer { size = 32; align = 8; base = x; } magic; + integer { size = 8; align = 8; } uuid[16]; + integer { size = 64; align = 8; } stream_id; + integer { size = 64; align = 8; } stream_instance_id; + } align(8); +}; + +clock { + name = default; + freq = 1000000000; + precision = 0; + offset_s = 0; + offset = 0; + absolute = true; +}; + +stream { + id = 0; + packet.context := struct { + integer { size = 64; align = 8; } packet_size; + integer { size = 64; align = 8; } content_size; + integer { size = 64; align = 8; map = clock.default.value; } timestamp_begin; + integer { size = 64; align = 8; map = clock.default.value; } timestamp_end; + integer { size = 64; align = 8; } packet_seq_num; + } align(8); + + event.header := struct { + integer { size = 64; align = 8; } id; + integer { size = 64; align = 8; map = clock.default.value; } timestamp; + } align(8); +}; + +event { + name = "my-event"; + stream_id = 0; + id = 0; +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/stream_0 b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/stream_0 new file mode 100644 index 00000000..fdfe9e1d Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/7-lost-between-2-with-index/stream_0 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/metadata b/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/metadata new file mode 100644 index 00000000..c8f5783d --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "0bef2d78-5020-4b09-b520-64480ef5c0e6"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "ae130a0d-e10b-49cb-8b2d-64beaa23814c"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13932323; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 b/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 new file mode 100644 index 00000000..f9639a3a Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/packet-seq-num/no-lost/metadata b/tests/data/ctf-traces/1/packet-seq-num/no-lost/metadata new file mode 100644 index 00000000..d562061a --- /dev/null +++ b/tests/data/ctf-traces/1/packet-seq-num/no-lost/metadata @@ -0,0 +1,58 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + uuid = "b7d90429-287f-45ff-897c-3db7c5ab8b5a"; + byte_order = be; + packet.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; + integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; + } align(8); +}; + +env { + host = "sinkpad"; +}; + +clock { + name = test_clock; + uuid = "004fa3e8-48aa-453a-8be8-9d30ead9ac66"; + description = "This is a test clock"; + freq = 1000000000; + precision = 10; + offset_s = 13515309; + offset = 0; + absolute = TRUE; +}; + +stream { + id = 0; + event.header := struct { + integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; + } align(8); + + packet.context := struct { + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; + integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; + integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; + } align(8); +}; + +event { + id = 0; + name = "dummy_event"; + stream_id = 0; + fields := struct { + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; + integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; + } align(1); +}; + diff --git a/tests/data/ctf-traces/1/packet-seq-num/no-lost/test_stream_0 b/tests/data/ctf-traces/1/packet-seq-num/no-lost/test_stream_0 new file mode 100644 index 00000000..15821fb1 Binary files /dev/null and b/tests/data/ctf-traces/1/packet-seq-num/no-lost/test_stream_0 differ diff --git a/tests/data/ctf-traces/1/succeed/2packets/channel0_2 b/tests/data/ctf-traces/1/succeed/2packets/channel0_2 new file mode 100644 index 00000000..6f895c9f Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/2packets/channel0_2 differ diff --git a/tests/data/ctf-traces/1/succeed/2packets/index/channel0_2.idx b/tests/data/ctf-traces/1/succeed/2packets/index/channel0_2.idx new file mode 100644 index 00000000..6a4c6da5 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/2packets/index/channel0_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/2packets/metadata b/tests/data/ctf-traces/1/succeed/2packets/metadata new file mode 100644 index 00000000..0c7f2e3e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/2packets/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/array-align-elem/metadata b/tests/data/ctf-traces/1/succeed/array-align-elem/metadata new file mode 100644 index 00000000..bf2fe258 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/array-align-elem/metadata @@ -0,0 +1,16 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +event { + name = ev; + fields := struct { + integer { size = 8; } a; + integer { size = 8; align = 16; } b[0]; + integer { size = 8; } c; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/array-align-elem/stream b/tests/data/ctf-traces/1/succeed/array-align-elem/stream new file mode 100644 index 00000000..aed2973e --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/array-align-elem/stream @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/metadata b/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/metadata new file mode 100644 index 00000000..76e60809 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/metadata @@ -0,0 +1,168 @@ +/* CTF 1.8 */ + +/* + * The MIT License (MIT) + * + * Copyright (c) 2015-2016 Philippe Proulx + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + * + * The following TSDL code was generated by barectf v2.3.0 + * on 2019-06-21 11:00:09.758512. + * + * For more details, see . + */ + +trace { + major = 1; + minor = 8; + byte_order = le; + uuid = "437748de-9435-11e9-8353-5254007c6857"; + packet.header := struct { + integer { + size = 32; + align = 32; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } magic; + integer { + size = 8; + align = 8; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } uuid[16]; + integer { + size = 8; + align = 8; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } stream_id; + } align(1); +}; + +env { + domain = "bare"; + tracer_name = "barectf"; + tracer_major = 2; + tracer_minor = 3; + tracer_patch = 0; + barectf_gen_date = "2019-06-21T11:00:09.758481"; +}; + +clock { + name = default; + freq = 1000000000; + offset_s = 1434072888; + offset = 0; + precision = 0; + absolute = false; +}; + +/* default */ +stream { + id = 0; + packet.context := struct { + integer { + size = 64; + align = 64; + signed = false; + byte_order = le; + base = 10; + encoding = none; + map = clock.default.value; + } timestamp_begin; + integer { + size = 64; + align = 64; + signed = false; + byte_order = le; + base = 10; + encoding = none; + map = clock.default.value; + } timestamp_end; + integer { + size = 32; + align = 32; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } packet_size; + integer { + size = 32; + align = 32; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } content_size; + integer { + size = 32; + align = 32; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } events_discarded; + } align(1); + event.header := struct { + integer { + size = 64; + align = 64; + signed = false; + byte_order = le; + base = 10; + encoding = none; + map = clock.default.value; + } timestamp; + integer { + size = 16; + align = 16; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } id; + } align(1); +}; + +event { + name = "simple_uint32"; + id = 0; + stream_id = 0; /* default */ + loglevel = 2; /* CRIT */ + fields := struct { + integer { + size = 32; + align = 32; + signed = false; + byte_order = le; + base = 10; + encoding = none; + } value; + } align(1); +}; diff --git a/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/stream b/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/stream new file mode 100644 index 00000000..55f45f20 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/barectf-event-before-packet/stream differ diff --git a/tests/data/ctf-traces/1/succeed/crlf-metadata/channel0_0 b/tests/data/ctf-traces/1/succeed/crlf-metadata/channel0_0 new file mode 100644 index 00000000..af542611 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/crlf-metadata/channel0_0 differ diff --git a/tests/data/ctf-traces/1/succeed/crlf-metadata/metadata b/tests/data/ctf-traces/1/succeed/crlf-metadata/metadata new file mode 100644 index 00000000..3c1438f2 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/crlf-metadata/metadata @@ -0,0 +1,114 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "ddb15f3f-a235-444e-9d1b-f131648b5bf1"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 13; + tracer_buffering_scheme = "uid"; + tracer_buffering_id = 1000; + architecture_bit_width = 64; + trace_name = "crlf-metadata"; + trace_creation_datetime = "20231023T193151+0000"; + hostname = "line-endings"; +}; + +clock { + name = "monotonic"; + uuid = "d0367630-5511-4855-a390-afe86f9b4545"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1698076473717549015; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; +}; + +event { + name = "lttng_ust_tracef:event"; + id = 0; + stream_id = 0; + loglevel = 14; + fields := struct { + integer { size = 32; align = 8; signed = 0; encoding = none; base = 10; } __msg_length; + integer { size = 8; align = 8; signed = 1; encoding = UTF8; base = 10; } _msg[ __msg_length ]; + }; +}; + + diff --git a/tests/data/ctf-traces/1/succeed/debug-info/channel0_0 b/tests/data/ctf-traces/1/succeed/debug-info/channel0_0 new file mode 100644 index 00000000..1186c4bc Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/debug-info/channel0_0 differ diff --git a/tests/data/ctf-traces/1/succeed/debug-info/metadata b/tests/data/ctf-traces/1/succeed/debug-info/metadata new file mode 100644 index 00000000..1d0228d7 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/debug-info/metadata @@ -0,0 +1,127 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "d2270f5a-7a70-4521-860b-954f054e046b"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + hostname = "raton"; + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 11; +}; + +clock { + name = "monotonic"; + uuid = "c56ad62a-6a35-4722-9807-d8e0f118a367"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1563264475374722151; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +event { + name = "lttng_ust_statedump:bin_info"; + id = 0; + stream_id = 0; + loglevel = 13; + fields := struct { + integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _baddr; + integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } _memsz; + string _path; + integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _is_pic; + integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_build_id; + integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_debug_link; + }; +}; + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; + event.context := struct { + integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _vpid; + integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _ip; + }; +}; + +event { + name = "my_provider:my_first_tracepoint"; + id = 1; + stream_id = 0; + loglevel = 13; + fields := struct { + string _my_string_field; + integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _my_integer_field; + }; +}; + diff --git a/tests/data/ctf-traces/1/succeed/env-warning/dummystream b/tests/data/ctf-traces/1/succeed/env-warning/dummystream new file mode 100644 index 00000000..53d735e0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/env-warning/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/env-warning/metadata b/tests/data/ctf-traces/1/succeed/env-warning/metadata new file mode 100644 index 00000000..0fb823cb --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/env-warning/metadata @@ -0,0 +1,30 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 1; + minor = 8; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +env { + dummy = "blah"; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/metadata b/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/metadata new file mode 100644 index 00000000..1b4803b1 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/metadata @@ -0,0 +1,21 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +stream { + packet.context := struct { + integer { size = 8; } packet_size; + integer { size = 8; } events_discarded; + }; +}; + +event { + name = "ev"; + fields := struct { + string s; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/stream b/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/stream new file mode 100644 index 00000000..b42129a0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/ev-disc-no-ts-begin-end/stream differ diff --git a/tests/data/ctf-traces/1/succeed/lf-metadata/channel0_0 b/tests/data/ctf-traces/1/succeed/lf-metadata/channel0_0 new file mode 100644 index 00000000..82dc4585 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lf-metadata/channel0_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lf-metadata/metadata b/tests/data/ctf-traces/1/succeed/lf-metadata/metadata new file mode 100644 index 00000000..af907ff7 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/lf-metadata/metadata @@ -0,0 +1,114 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "8c609d38-ed7e-49c3-81df-33cf268062b7"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 13; + tracer_buffering_scheme = "uid"; + tracer_buffering_id = 1000; + architecture_bit_width = 64; + trace_name = "lf-metadata"; + trace_creation_datetime = "20231023T185853+0000"; + hostname = "line-endings"; +}; + +clock { + name = "monotonic"; + uuid = "d0367630-5511-4855-a390-afe86f9b4545"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1698076473717549018; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; +}; + +event { + name = "lttng_ust_tracef:event"; + id = 0; + stream_id = 0; + loglevel = 14; + fields := struct { + integer { size = 32; align = 8; signed = 0; encoding = none; base = 10; } __msg_length; + integer { size = 8; align = 8; signed = 1; encoding = UTF8; base = 10; } _msg[ __msg_length ]; + }; +}; + + diff --git a/tests/data/ctf-traces/1/succeed/lttng-crash/chan_0 b/tests/data/ctf-traces/1/succeed/lttng-crash/chan_0 new file mode 100644 index 00000000..a570de85 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-crash/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-crash/metadata b/tests/data/ctf-traces/1/succeed/lttng-crash/metadata new file mode 100644 index 00000000..0f329ebd --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/lttng-crash/metadata @@ -0,0 +1,108 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "a7055065-938f-439c-818e-975c13b30be2"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + hostname = "raton"; + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 11; +}; + +clock { + name = "monotonic"; + uuid = "4d76db72-e40f-409e-ba30-532d309d5048"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1565056443054742594; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; +}; + +event { + name = "my_app:current_temp"; + id = 0; + stream_id = 0; + loglevel = 13; + fields := struct { + integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _temp; + string _status; + }; +}; + diff --git a/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/chan_0 b/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/chan_0 new file mode 100644 index 00000000..fffcccd8 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/metadata b/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/metadata new file mode 100644 index 00000000..3127cd57 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/lttng-event-after-packet/metadata @@ -0,0 +1,108 @@ +/* CTF 1.8 */ + +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "e8680f63-336b-4999-9b6b-080f1c1b9f7b"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + uint64_t stream_instance_id; + }; +}; + +env { + hostname = "raton"; + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 10; +}; + +clock { + name = "monotonic"; + uuid = "4d76db72-e40f-409e-ba30-532d309d5048"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1565056443054742596; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + uint64_t packet_seq_num; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_large; + packet.context := struct packet_context; +}; + +event { + name = "my_app:current_temp"; + id = 0; + stream_id = 0; + loglevel = 13; + fields := struct { + integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _temp; + string _status; + }; +}; + diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/README b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/README new file mode 100644 index 00000000..2cf8b891 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/README @@ -0,0 +1,10 @@ +Trace created with: + + lttng create + lttng enable-channel --kernel --tracefile-size=64k --subbuf-size=64k mychan + lttng enable-event -k --channel=mychan 'sched_*' + lttng start + sleep 2 + lttng stop + + diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx new file mode 100644 index 00000000..4b33db85 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx new file mode 100644 index 00000000..e203b3a0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx new file mode 100644 index 00000000..02b52dad Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx new file mode 100644 index 00000000..6c827412 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx new file mode 100644 index 00000000..3baed678 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx new file mode 100644 index 00000000..3b11abd8 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx new file mode 100644 index 00000000..af7bbd77 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx new file mode 100644 index 00000000..3115bd94 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx new file mode 100644 index 00000000..db75e00c Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx new file mode 100644 index 00000000..d4dcedb1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx new file mode 100644 index 00000000..60e579b3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/metadata b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/metadata new file mode 100644 index 00000000..1d827800 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 new file mode 100644 index 00000000..66370ed6 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 new file mode 100644 index 00000000..e2676b60 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 new file mode 100644 index 00000000..c05165f6 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 new file mode 100644 index 00000000..20f3a76b Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 new file mode 100644 index 00000000..229df416 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 new file mode 100644 index 00000000..954309fd Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 new file mode 100644 index 00000000..8313952e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 new file mode 100644 index 00000000..180c0731 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 new file mode 100644 index 00000000..f38fcdce Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 new file mode 100644 index 00000000..652ee9a2 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 differ diff --git a/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 new file mode 100644 index 00000000..310c8ab8 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 differ diff --git a/tests/data/ctf-traces/1/succeed/meta-ctx-sequence/metadata b/tests/data/ctf-traces/1/succeed/meta-ctx-sequence/metadata new file mode 100644 index 00000000..247e5f3b --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-ctx-sequence/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +stream { + event.context := struct { + uint8_t __evt_ctx_seq_length; + uint8_t _evt_ctx_seq[ __evt_ctx_seq_length ]; + }; + packet.context := struct { + uint8_t __pkt_ctx_seq_length; + uint8_t _pkt_ctx_seq[ __pkt_ctx_seq_length ]; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-ctx-sequence/stream b/tests/data/ctf-traces/1/succeed/meta-ctx-sequence/stream new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/metadata b/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/metadata new file mode 100644 index 00000000..dd8bcb8d --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/metadata @@ -0,0 +1,24 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = yo; + fields := struct { + enum : integer { size = 8; } { + COSSETTE, + PELCHAT, + VOISINE, + } tag; + + variant { + string COSSETTE; + string PELCHAT; + string VOISINE; + } var; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/stream b/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/stream new file mode 100644 index 00000000..f54d73fe Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/meta-variant-no-underscore/stream differ diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/metadata b/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/metadata new file mode 100644 index 00000000..0c6206ff --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/metadata @@ -0,0 +1,24 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = yo; + fields := struct { + enum : integer { size = 8; } { + COSSETTE, + PELCHAT, + _VOISINE, + } tag; + + variant { + string COSSETTE; + string PELCHAT; + string _VOISINE; + } var; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/stream b/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/stream new file mode 100644 index 00000000..f54d73fe Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/meta-variant-one-underscore/stream differ diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/metadata b/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/metadata new file mode 100644 index 00000000..18af2f9a --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/metadata @@ -0,0 +1,74 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = yo; + fields := struct { + enum : integer { size = 8; } { + _align, + _callsite, + _const, + _char, + _clock, + _double, + _enum, + _env, + _event, + _floating_point, + _float, + _integer, + _int, + _long, + _short, + _signed, + _stream, + _string, + _struct, + _trace, + _typealias, + _typedef, + _unsigned, + _variant, + _void, + __Bool, + __Complex, + __Imaginary, + } tag; + + variant { + string _align; + string _callsite; + string _const; + string _char; + string _clock; + string _double; + string _enum; + string _env; + string _event; + string _floating_point; + string _float; + string _integer; + string _int; + string _long; + string _short; + string _signed; + string _stream; + string _string; + string _struct; + string _trace; + string _typealias; + string _typedef; + string _unsigned; + string _variant; + string _void; + string __Bool; + string __Complex; + string __Imaginary; + } var; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/stream b/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/stream new file mode 100644 index 00000000..f54d73fe Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/meta-variant-reserved-keywords/stream differ diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/metadata b/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/metadata new file mode 100644 index 00000000..be1b0cdf --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/metadata @@ -0,0 +1,24 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = yo; + fields := struct { + enum : integer { size = 8; } { + COSSETTE, + _PELCHAT, + __PELCHAT, + } tag; + + variant { + string COSSETTE; + string _PELCHAT; + string __PELCHAT; + } var; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/stream b/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/stream new file mode 100644 index 00000000..f54d73fe Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/meta-variant-same-with-underscore/stream differ diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/metadata b/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/metadata new file mode 100644 index 00000000..4eb669d2 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/metadata @@ -0,0 +1,24 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = yo; + fields := struct { + enum : integer { size = 8; } { + COSSETTE, + __PELCHAT, + VOISINE, + } tag; + + variant { + string COSSETTE; + string __PELCHAT; + string VOISINE; + } var; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/stream b/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/stream new file mode 100644 index 00000000..f54d73fe Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/meta-variant-two-underscores/stream differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_0.idx b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_0.idx new file mode 100644 index 00000000..a7ef2799 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_1.idx b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_1.idx new file mode 100644 index 00000000..2c7d0fc7 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_2.idx b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_2.idx new file mode 100644 index 00000000..9a480a03 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_3.idx b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_3.idx new file mode 100644 index 00000000..92cd8987 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/index/kernel_channel_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_0 b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_0 new file mode 100644 index 00000000..a16448d7 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_0 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_1 b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_1 new file mode 100644 index 00000000..833d511f Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_1 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_2 b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_2 new file mode 100644 index 00000000..24f014e1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_2 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_3 b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_3 new file mode 100644 index 00000000..21a412dc Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/kernel_channel_3 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/kernel/metadata b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/metadata new file mode 100644 index 00000000..0450bb2b Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/kernel/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_0.idx b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_0.idx new file mode 100644 index 00000000..ae8b5eca Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_1.idx b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_1.idx new file mode 100644 index 00000000..0ff21e22 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_2.idx b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_2.idx new file mode 100644 index 00000000..c506d5af Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_3.idx b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_3.idx new file mode 100644 index 00000000..be41dad3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/index/ust2_channel_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/metadata b/tests/data/ctf-traces/1/succeed/multi-domains/ust/metadata new file mode 100644 index 00000000..18ad4ff1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_0 b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_0 new file mode 100644 index 00000000..5aa372aa Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_0 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_1 b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_1 new file mode 100644 index 00000000..cc288edd Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_1 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_2 b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_2 new file mode 100644 index 00000000..ff260111 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_2 differ diff --git a/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_3 b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_3 new file mode 100644 index 00000000..547501c1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/multi-domains/ust/ust2_channel_3 differ diff --git a/tests/data/ctf-traces/1/succeed/no-packet-context/metadata b/tests/data/ctf-traces/1/succeed/no-packet-context/metadata new file mode 100644 index 00000000..c8114323 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/no-packet-context/metadata @@ -0,0 +1,14 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = be; +}; + +event { + name = "ev"; + fields := struct { + string s; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/no-packet-context/stream b/tests/data/ctf-traces/1/succeed/no-packet-context/stream new file mode 100644 index 00000000..0db26329 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/no-packet-context/stream differ diff --git a/tests/data/ctf-traces/1/succeed/sequence/channel0_0 b/tests/data/ctf-traces/1/succeed/sequence/channel0_0 new file mode 100644 index 00000000..5038a227 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/sequence/channel0_0 differ diff --git a/tests/data/ctf-traces/1/succeed/sequence/channel0_1 b/tests/data/ctf-traces/1/succeed/sequence/channel0_1 new file mode 100644 index 00000000..fd947382 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/sequence/channel0_1 differ diff --git a/tests/data/ctf-traces/1/succeed/sequence/channel0_2 b/tests/data/ctf-traces/1/succeed/sequence/channel0_2 new file mode 100644 index 00000000..9d848fcb Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/sequence/channel0_2 differ diff --git a/tests/data/ctf-traces/1/succeed/sequence/channel0_3 b/tests/data/ctf-traces/1/succeed/sequence/channel0_3 new file mode 100644 index 00000000..ef385c38 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/sequence/channel0_3 differ diff --git a/tests/data/ctf-traces/1/succeed/sequence/metadata b/tests/data/ctf-traces/1/succeed/sequence/metadata new file mode 100644 index 00000000..2163abfc --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/sequence/metadata @@ -0,0 +1,106 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 16; align = 8; signed = false; } := uint16_t; +typealias integer { size = 32; align = 8; signed = false; } := uint32_t; +typealias integer { size = 64; align = 8; signed = false; } := uint64_t; +typealias integer { size = 64; align = 8; signed = false; } := unsigned long; +typealias integer { size = 5; align = 1; signed = false; } := uint5_t; +typealias integer { size = 27; align = 1; signed = false; } := uint27_t; + +trace { + major = 1; + minor = 8; + uuid = "59052333-e490-4ed9-af7a-b652437fba9a"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + uint32_t stream_id; + }; +}; + +env { + hostname = "host"; + domain = "ust"; + tracer_name = "lttng-ust"; + tracer_major = 2; + tracer_minor = 3; +}; + +clock { + name = monotonic; + uuid = "5f3ed925-9d73-4637-b8e4-02077abc8c8f"; + description = "Monotonic Clock"; + freq = 1000000000; /* Frequency, in Hz */ + /* clock value offset from Epoch is: offset * (1/freq) */ + offset = 1375437179542680815; +}; + +typealias integer { + size = 27; align = 1; signed = false; + map = clock.monotonic.value; +} := uint27_clock_monotonic_t; + +typealias integer { + size = 32; align = 8; signed = false; + map = clock.monotonic.value; +} := uint32_clock_monotonic_t; + +typealias integer { + size = 64; align = 8; signed = false; + map = clock.monotonic.value; +} := uint64_clock_monotonic_t; + +struct packet_context { + uint64_clock_monotonic_t timestamp_begin; + uint64_clock_monotonic_t timestamp_end; + uint64_t content_size; + uint64_t packet_size; + unsigned long events_discarded; + uint32_t cpu_id; +}; + +struct event_header_compact { + enum : uint5_t { compact = 0 ... 30, extended = 31 } id; + variant { + struct { + uint27_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +struct event_header_large { + enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; + variant { + struct { + uint32_clock_monotonic_t timestamp; + } compact; + struct { + uint32_t id; + uint64_clock_monotonic_t timestamp; + } extended; + } v; +} align(8); + +stream { + id = 0; + event.header := struct event_header_compact; + packet.context := struct packet_context; +}; + +event { + name = "sequence event"; + id = 0; + stream_id = 0; + loglevel = 1; + fields := struct { + integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_int_field_length; + integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _seq_int_field[ __seq_int_field_length ]; + integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_long_field_length; + integer { size = 64; align = 8; signed = 1; encoding = none; base = 10; } _seq_long_field[ __seq_long_field_length ]; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_0 new file mode 100644 index 00000000..977d3bb3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_1 new file mode 100644 index 00000000..74d07f3c Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_1 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_2 new file mode 100644 index 00000000..5a838d62 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_2 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_3 new file mode 100644 index 00000000..e78fc591 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/chan_3 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx new file mode 100644 index 00000000..8f5104b3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx new file mode 100644 index 00000000..17cc60b6 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx new file mode 100644 index 00000000..a52405f9 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx new file mode 100644 index 00000000..afaa8d76 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/metadata new file mode 100644 index 00000000..166e9de2 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10352/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_0 new file mode 100644 index 00000000..d30efd70 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_1 new file mode 100644 index 00000000..88286687 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_1 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_2 new file mode 100644 index 00000000..604e167b Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_2 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_3 new file mode 100644 index 00000000..2080b973 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/chan_3 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx new file mode 100644 index 00000000..4247d65b Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx new file mode 100644 index 00000000..68b94aa6 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx new file mode 100644 index 00000000..eb8a0050 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx new file mode 100644 index 00000000..65b6968a Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/metadata new file mode 100644 index 00000000..82c4c8c3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/3/ust/pid/10353/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_0 new file mode 100644 index 00000000..150b931a Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_1 new file mode 100644 index 00000000..6290fde1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_1 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_2 new file mode 100644 index 00000000..f21c3dac Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_2 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_3 new file mode 100644 index 00000000..56449cf5 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/chan_3 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx new file mode 100644 index 00000000..7c04f4cf Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx new file mode 100644 index 00000000..1c2109f1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx new file mode 100644 index 00000000..43b5be90 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx new file mode 100644 index 00000000..e1aa72f7 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/metadata new file mode 100644 index 00000000..8844110f Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10352/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_0 new file mode 100644 index 00000000..b941b958 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_1 new file mode 100644 index 00000000..9950f0b3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_1 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_2 new file mode 100644 index 00000000..67e30a84 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_2 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_3 new file mode 100644 index 00000000..f349fbb2 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/chan_3 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx new file mode 100644 index 00000000..70eace6f Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx new file mode 100644 index 00000000..e45c2e66 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx new file mode 100644 index 00000000..d106577d Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx new file mode 100644 index 00000000..50b2e37f Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/metadata new file mode 100644 index 00000000..beaacf46 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/1/ust/pid/10353/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_0 new file mode 100644 index 00000000..de2ec8d0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_1 new file mode 100644 index 00000000..6b7e8b77 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_1 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_2 new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_3 new file mode 100644 index 00000000..1c04a9f1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/chan_3 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx new file mode 100644 index 00000000..d4e1b127 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx new file mode 100644 index 00000000..f774db48 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx new file mode 100644 index 00000000..26d0b0e1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx new file mode 100644 index 00000000..f3086ecb Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/metadata new file mode 100644 index 00000000..bcb74a74 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10352/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_0 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_0 new file mode 100644 index 00000000..200fa4ce Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_0 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_1 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_1 new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_2 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_2 new file mode 100644 index 00000000..164a6a95 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_2 differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_3 b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/chan_3 new file mode 100644 index 00000000..e69de29b diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx new file mode 100644 index 00000000..89f19769 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx new file mode 100644 index 00000000..26d0b0e1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx new file mode 100644 index 00000000..862e0d5e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx new file mode 100644 index 00000000..26d0b0e1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/metadata b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/metadata new file mode 100644 index 00000000..080ef47d Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/session-rotation/a/2/ust/pid/10353/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/smalltrace/dummystream b/tests/data/ctf-traces/1/succeed/smalltrace/dummystream new file mode 100644 index 00000000..469cb9a3 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/smalltrace/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/smalltrace/metadata b/tests/data/ctf-traces/1/succeed/smalltrace/metadata new file mode 100644 index 00000000..bf356a85 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/smalltrace/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 1; + minor = 8; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/struct-array-align-elem/metadata b/tests/data/ctf-traces/1/succeed/struct-array-align-elem/metadata new file mode 100644 index 00000000..4b668b6b --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/struct-array-align-elem/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ + +trace { + major = 1; + minor = 8; + byte_order = le; +}; + +event { + name = ev; + fields := struct { + integer { size = 8; } x; + struct { + integer { size = 8; } a; + integer { size = 8; align = 32; } b[0]; + } y; + integer { size = 8; } z; + }; +}; diff --git a/tests/data/ctf-traces/1/succeed/struct-array-align-elem/stream b/tests/data/ctf-traces/1/succeed/struct-array-align-elem/stream new file mode 100644 index 00000000..158cb140 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/struct-array-align-elem/stream @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/data/ctf-traces/1/succeed/succeed1/dummystream b/tests/data/ctf-traces/1/succeed/succeed1/dummystream new file mode 100644 index 00000000..53d735e0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/succeed1/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/succeed1/metadata b/tests/data/ctf-traces/1/succeed/succeed1/metadata new file mode 100644 index 00000000..2c18b9d0 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/succeed1/metadata @@ -0,0 +1,26 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; } := uint32_t; + +trace { + major = 1; + minor = 8; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/succeed2/dummystream b/tests/data/ctf-traces/1/succeed/succeed2/dummystream new file mode 100644 index 00000000..53d735e0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/succeed2/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/succeed2/metadata b/tests/data/ctf-traces/1/succeed/succeed2/metadata new file mode 100644 index 00000000..c52443fc --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/succeed2/metadata @@ -0,0 +1,26 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 1; + minor = 8; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/succeed3/dummystream b/tests/data/ctf-traces/1/succeed/succeed3/dummystream new file mode 100644 index 00000000..53d735e0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/succeed3/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/succeed3/metadata b/tests/data/ctf-traces/1/succeed/succeed3/metadata new file mode 100644 index 00000000..5bcd1c8e --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/succeed3/metadata @@ -0,0 +1,29 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 1; + minor = 8; + test = "\""; + test2 = "?\x20\040?"; + test3 = '\n'; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/succeed4/metadata b/tests/data/ctf-traces/1/succeed/succeed4/metadata new file mode 100644 index 00000000..63979e97 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/succeed4/metadata @@ -0,0 +1,31 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; } := uint32_t; + +trace { + major = 1; + minor = 8; + test = 0xABC234; /* hexadecimal */ + test1 = 06534; /* octal */ + test2 = 1234; /* decimal */ + test3 = +1234; /* decimal with + unary op */ + test4 = -1234; /* decimal (negated) */ + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; +}; + +event { + name = string; + fields := struct { string str; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_0.idx b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_0.idx new file mode 100644 index 00000000..bf42f283 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_0.idx differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_1.idx b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_1.idx new file mode 100644 index 00000000..ba9bd230 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_1.idx differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_2.idx b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_2.idx new file mode 100644 index 00000000..425ba0de Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_2.idx differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_3.idx b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_3.idx new file mode 100644 index 00000000..4fc275e1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/index/ust_channel_3.idx differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/metadata b/tests/data/ctf-traces/1/succeed/trace-with-index/metadata new file mode 100644 index 00000000..9667e55a Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_0 b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_0 new file mode 100644 index 00000000..f26876b9 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_0 differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_1 b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_1 new file mode 100644 index 00000000..f0bdf934 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_1 differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_2 b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_2 new file mode 100644 index 00000000..1f0cb5f1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_2 differ diff --git a/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_3 b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_3 new file mode 100644 index 00000000..7f8c7c46 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/trace-with-index/ust_channel_3 differ diff --git a/tests/data/ctf-traces/1/succeed/warnings/dummystream b/tests/data/ctf-traces/1/succeed/warnings/dummystream new file mode 100644 index 00000000..53d735e0 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/warnings/dummystream differ diff --git a/tests/data/ctf-traces/1/succeed/warnings/metadata b/tests/data/ctf-traces/1/succeed/warnings/metadata new file mode 100644 index 00000000..125a5d58 --- /dev/null +++ b/tests/data/ctf-traces/1/succeed/warnings/metadata @@ -0,0 +1,29 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; aa = bb; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; zz = aa; } := uint32_t; + +trace { + major = 1; + minor = 8; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; + blah = "aaa"; +}; + +stream { + packet.context := struct { + uint32_t content_size; + uint32_t packet_size; + }; + askdjfhaskdjfh = 1; +}; + +event { + name = string; + fields := struct { string str; }; + asdjfhah := struct { uint8_t ffff; }; +}; diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/metadata b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/metadata new file mode 100644 index 00000000..e35f463e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/metadata differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_0 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_0 new file mode 100644 index 00000000..3af2cdc1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_0 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_1 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_1 new file mode 100644 index 00000000..7b74c035 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_1 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_2 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_2 new file mode 100644 index 00000000..13a69fc1 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_2 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_3 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_3 new file mode 100644 index 00000000..1cdde727 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_3 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_4 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_4 new file mode 100644 index 00000000..c1360344 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_4 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_5 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_5 new file mode 100644 index 00000000..a0a58817 Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_5 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_6 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_6 new file mode 100644 index 00000000..b1c8520e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_6 differ diff --git a/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_7 b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_7 new file mode 100644 index 00000000..05f7393e Binary files /dev/null and b/tests/data/ctf-traces/1/succeed/wk-heartbeat-u/u_7 differ diff --git a/tests/data/ctf-traces/deterministic-ordering/a-corrupted/dummystream b/tests/data/ctf-traces/deterministic-ordering/a-corrupted/dummystream deleted file mode 100644 index f0380a19..00000000 Binary files a/tests/data/ctf-traces/deterministic-ordering/a-corrupted/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/deterministic-ordering/a-corrupted/metadata b/tests/data/ctf-traces/deterministic-ordering/a-corrupted/metadata deleted file mode 100644 index 9008c153..00000000 --- a/tests/data/ctf-traces/deterministic-ordering/a-corrupted/metadata +++ /dev/null @@ -1,31 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = be; - uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; - - packet.header := struct { - uint8_t stream_id; - uint8_t stream_instance_id; - }; -}; - -stream { - id = 0; - event.header := struct { - uint8_t id; - }; - - packet.context := struct { - uint8_t timestamp_begin; - }; -}; - -event { - name = gadoua; - id = 1; -}; diff --git a/tests/data/ctf-traces/deterministic-ordering/b-c.expect b/tests/data/ctf-traces/deterministic-ordering/b-c.expect deleted file mode 100644 index c21129b2..00000000 --- a/tests/data/ctf-traces/deterministic-ordering/b-c.expect +++ /dev/null @@ -1,7 +0,0 @@ -[Unknown] {0 0 0} Stream beginning -[0 0] {0 0 0} Packet beginning -[0 0] {0 0 0} Event `gadoua` (1) -[0 0] {0 0 0} Event `gadoua` (1) -[0 0] {0 0 0} Event `gadoua` (1) -{0 0 0} Packet end -[Unknown] {0 0 0} Stream end diff --git a/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/dummystream b/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/dummystream deleted file mode 100644 index f69dc7ee..00000000 Binary files a/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/metadata b/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/metadata deleted file mode 100644 index 9008c153..00000000 --- a/tests/data/ctf-traces/deterministic-ordering/b-not-corrupted/metadata +++ /dev/null @@ -1,31 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = be; - uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; - - packet.header := struct { - uint8_t stream_id; - uint8_t stream_instance_id; - }; -}; - -stream { - id = 0; - event.header := struct { - uint8_t id; - }; - - packet.context := struct { - uint8_t timestamp_begin; - }; -}; - -event { - name = gadoua; - id = 1; -}; diff --git a/tests/data/ctf-traces/deterministic-ordering/c-corrupted/dummystream b/tests/data/ctf-traces/deterministic-ordering/c-corrupted/dummystream deleted file mode 100644 index f0380a19..00000000 Binary files a/tests/data/ctf-traces/deterministic-ordering/c-corrupted/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/deterministic-ordering/c-corrupted/metadata b/tests/data/ctf-traces/deterministic-ordering/c-corrupted/metadata deleted file mode 100644 index 9008c153..00000000 --- a/tests/data/ctf-traces/deterministic-ordering/c-corrupted/metadata +++ /dev/null @@ -1,31 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = be; - uuid = "c6e53ddd-925c-4b8f-bd19-acd28af9c4f2"; - - packet.header := struct { - uint8_t stream_id; - uint8_t stream_instance_id; - }; -}; - -stream { - id = 0; - event.header := struct { - uint8_t id; - }; - - packet.context := struct { - uint8_t timestamp_begin; - }; -}; - -event { - name = gadoua; - id = 1; -}; diff --git a/tests/data/ctf-traces/fail/fail1/dummystream b/tests/data/ctf-traces/fail/fail1/dummystream deleted file mode 100644 index 26010671..00000000 Binary files a/tests/data/ctf-traces/fail/fail1/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/fail/fail1/metadata b/tests/data/ctf-traces/fail/fail1/metadata deleted file mode 100644 index 28185f5d..00000000 --- a/tests/data/ctf-traces/fail/fail1/metadata +++ /dev/null @@ -1,49 +0,0 @@ -/* CTF 1.8 - * - * Architecture with 32-bit pointers, 32-bit integers, 32-bit longs. - */ - -typealias integer { size = 1; align = 1; signed = false; } := uint1_t; -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 63; align = 1; signed = false; } := timestamp_t; - -typealias integer { size = 32; align = 32; signed = false; base = 10; } := uint32_t; -typealias integer { size = 32; align = 32; signed = false; } := void *; - - -trace { - major = 0; - minor = 1; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - }; -}; - -stream { - event.header := struct { - uint1_t id; - timestamp_t timestamp; - }; - event.context := struct { - uint32_t thread_id; - uint32_t event_count; - }; -}; - -event { - name = func_enter; - id = 0; - fields := struct { - void *func_called; - void *called_from; - }; -}; - -event { - name = func_exit; - id = 1; -}; diff --git a/tests/data/ctf-traces/fail/fail2/metadata b/tests/data/ctf-traces/fail/fail2/metadata deleted file mode 100644 index 456661ed..00000000 Binary files a/tests/data/ctf-traces/fail/fail2/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/fail/integer-range/metadata b/tests/data/ctf-traces/fail/integer-range/metadata deleted file mode 100644 index 35749408..00000000 --- a/tests/data/ctf-traces/fail/integer-range/metadata +++ /dev/null @@ -1,27 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; } := uint32_t; - -trace { - /* Integer out of range */ - major = 23452397856348975623897562893746589237465289374658923764598237645897234658723648579236; - minor = 1; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/fail/invalid-packet-size/README b/tests/data/ctf-traces/fail/invalid-packet-size/README deleted file mode 100644 index e275e81d..00000000 --- a/tests/data/ctf-traces/fail/invalid-packet-size/README +++ /dev/null @@ -1,2 +0,0 @@ -The sum of the packet sizes in this trace (both in the index file and in the -actual packet headers) is larger than the data file. diff --git a/tests/data/ctf-traces/fail/invalid-packet-size/trace/channel0_3 b/tests/data/ctf-traces/fail/invalid-packet-size/trace/channel0_3 deleted file mode 100644 index 7682714b..00000000 Binary files a/tests/data/ctf-traces/fail/invalid-packet-size/trace/channel0_3 and /dev/null differ diff --git a/tests/data/ctf-traces/fail/invalid-packet-size/trace/index/channel0_3.idx b/tests/data/ctf-traces/fail/invalid-packet-size/trace/index/channel0_3.idx deleted file mode 100644 index c8f306cf..00000000 Binary files a/tests/data/ctf-traces/fail/invalid-packet-size/trace/index/channel0_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/fail/invalid-packet-size/trace/metadata b/tests/data/ctf-traces/fail/invalid-packet-size/trace/metadata deleted file mode 100644 index 46d334f1..00000000 Binary files a/tests/data/ctf-traces/fail/invalid-packet-size/trace/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/fail/invalid-sequence-length-field-class/metadata b/tests/data/ctf-traces/fail/invalid-sequence-length-field-class/metadata deleted file mode 100644 index d56b8c80..00000000 --- a/tests/data/ctf-traces/fail/invalid-sequence-length-field-class/metadata +++ /dev/null @@ -1,25 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -stream { - event.header := struct { - uint8_t id; - }; -}; - -event { - name = ze_event; - id = 1; - fields := struct { - struct { - uint8_t hello; - } len; - uint8_t x[len]; - }; -}; diff --git a/tests/data/ctf-traces/fail/invalid-variant-selector-field-class/metadata b/tests/data/ctf-traces/fail/invalid-variant-selector-field-class/metadata deleted file mode 100644 index 3cfa3422..00000000 --- a/tests/data/ctf-traces/fail/invalid-variant-selector-field-class/metadata +++ /dev/null @@ -1,28 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -stream { - event.header := struct { - uint8_t id; - }; -}; - -event { - name = ze_event; - id = 1; - fields := struct { - struct { - uint8_t hello; - } selector; - variant { - uint8_t a; - uint8_t b; - } v; - }; -}; diff --git a/tests/data/ctf-traces/fail/lttng-modules-2.0-pre1/metadata b/tests/data/ctf-traces/fail/lttng-modules-2.0-pre1/metadata deleted file mode 100644 index 6f92a298..00000000 Binary files a/tests/data/ctf-traces/fail/lttng-modules-2.0-pre1/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/fail/metadata-syntax-error/metadata b/tests/data/ctf-traces/fail/metadata-syntax-error/metadata deleted file mode 100644 index f38aed91..00000000 --- a/tests/data/ctf-traces/fail/metadata-syntax-error/metadata +++ /dev/null @@ -1,3 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; ] := uint8_t; diff --git a/tests/data/ctf-traces/fail/packet-based-metadata/metadata b/tests/data/ctf-traces/fail/packet-based-metadata/metadata deleted file mode 100644 index e2097803..00000000 Binary files a/tests/data/ctf-traces/fail/packet-based-metadata/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/fail/smalltrace/dummystream-fail b/tests/data/ctf-traces/fail/smalltrace/dummystream-fail deleted file mode 100644 index fc7e07cb..00000000 --- a/tests/data/ctf-traces/fail/smalltrace/dummystream-fail +++ /dev/null @@ -1 +0,0 @@ -ÁüÁ*d \ No newline at end of file diff --git a/tests/data/ctf-traces/fail/smalltrace/metadata b/tests/data/ctf-traces/fail/smalltrace/metadata deleted file mode 100644 index 86f8e0a3..00000000 --- a/tests/data/ctf-traces/fail/smalltrace/metadata +++ /dev/null @@ -1,19 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; - -trace { - major = 0; - minor = 1; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/README b/tests/data/ctf-traces/fail/valid-events-then-invalid-events/README deleted file mode 100644 index 4a90193b..00000000 --- a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/README +++ /dev/null @@ -1,2 +0,0 @@ -This trace was written by hand. It contains two valid events, followed by an -invalid one (the event id is invalid). diff --git a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/dummystream b/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/dummystream deleted file mode 100644 index 415fe23e..00000000 --- a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/dummystream +++ /dev/null @@ -1 +0,0 @@ -ÿ \ No newline at end of file diff --git a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/metadata b/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/metadata deleted file mode 100644 index 479fdb64..00000000 --- a/tests/data/ctf-traces/fail/valid-events-then-invalid-events/trace/metadata +++ /dev/null @@ -1,21 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -stream { - event.header := struct { - uint8_t id; - }; -}; - - -event { - name = gadoua; - id = 1; -}; diff --git a/tests/data/ctf-traces/intersection/3eventsintersect/metadata b/tests/data/ctf-traces/intersection/3eventsintersect/metadata deleted file mode 100644 index 7cc1b4d1..00000000 --- a/tests/data/ctf-traces/intersection/3eventsintersect/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "7afe8fbe-79b8-4f6a-bbc7-d0c782e7ddaf"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "7b9e2f2a-530e-4ab1-816f-0831b5c09140"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_0 b/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_0 deleted file mode 100644 index 6a69e445..00000000 Binary files a/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_1 b/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_1 deleted file mode 100644 index 0cf1404d..00000000 Binary files a/tests/data/ctf-traces/intersection/3eventsintersect/test_stream_1 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/3eventsintersectreverse/metadata b/tests/data/ctf-traces/intersection/3eventsintersectreverse/metadata deleted file mode 100644 index 7379027b..00000000 --- a/tests/data/ctf-traces/intersection/3eventsintersectreverse/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "6faef770-c4b0-4bf6-afcb-b33546dfb87e"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "a0c643c4-b36c-4358-94a9-8bc54efade5e"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_0 b/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_0 deleted file mode 100644 index 0cf1404d..00000000 Binary files a/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_1 b/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_1 deleted file mode 100644 index 6a69e445..00000000 Binary files a/tests/data/ctf-traces/intersection/3eventsintersectreverse/test_stream_1 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/nointersect/metadata b/tests/data/ctf-traces/intersection/nointersect/metadata deleted file mode 100644 index 5e14a71b..00000000 --- a/tests/data/ctf-traces/intersection/nointersect/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "a967fbc0-c89b-4b92-b5df-30688d576ddf"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "fb759646-b2b9-42d7-9013-f790694dd902"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/intersection/nointersect/test_stream_0 b/tests/data/ctf-traces/intersection/nointersect/test_stream_0 deleted file mode 100644 index 7c32bae6..00000000 Binary files a/tests/data/ctf-traces/intersection/nointersect/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/nointersect/test_stream_1 b/tests/data/ctf-traces/intersection/nointersect/test_stream_1 deleted file mode 100644 index e656ba67..00000000 Binary files a/tests/data/ctf-traces/intersection/nointersect/test_stream_1 and /dev/null differ diff --git a/tests/data/ctf-traces/intersection/nostream/metadata b/tests/data/ctf-traces/intersection/nostream/metadata deleted file mode 100644 index 08f73877..00000000 --- a/tests/data/ctf-traces/intersection/nostream/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "40931b4f-3f84-48ef-aa1e-f8aab3209724"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "3f2488d7-4617-4d08-9bf3-280008591f86"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/intersection/onestream/metadata b/tests/data/ctf-traces/intersection/onestream/metadata deleted file mode 100644 index 19ce9326..00000000 --- a/tests/data/ctf-traces/intersection/onestream/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "a8d0738a-4a6d-466b-83a7-8ab3c387d5bb"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "1fb54d69-571c-49a1-9a34-084c7f3a5b33"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/intersection/onestream/test_stream_0 b/tests/data/ctf-traces/intersection/onestream/test_stream_0 deleted file mode 100644 index 7c32bae6..00000000 Binary files a/tests/data/ctf-traces/intersection/onestream/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/live/new-streams/first-trace.mctf b/tests/data/ctf-traces/live/new-streams/first-trace.mctf deleted file mode 100644 index c3db828c..00000000 --- a/tests/data/ctf-traces/live/new-streams/first-trace.mctf +++ /dev/null @@ -1,90 +0,0 @@ ---- metadata -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -clock { - name = cycle_counter_test; - uuid = "5b59e7db-5e49-418a-9adf-e1adfdf571c4"; - freq = 1000000000; -}; - -typealias integer { size = 8; align = 8; signed = false; map = clock.cycle_counter_test.value; } := cc_count_t; - -struct packet_context { - cc_count_t timestamp_begin; - cc_count_t timestamp_end; - uint8_t content_size; - uint8_t packet_size; -}; - -struct event_header { - uint8_t id; - cc_count_t timestamp; -}; - -stream { - event.header := struct event_header; - packet.context := struct packet_context; -}; - -event { - name = "first_trace_event"; - id = 0; - fields := struct { - uint8_t value; - }; -}; - ---- first_trace_stream_0 -!macro packet(ts_beg, event_id) - - [ ts_beg : 8] # timestamp begin - [ ts_beg + 1 : 8] # timestamp end - [8 * (end - beg) : 8] # content size in bits - [8 * (end - beg) : 8] # packet size in bits - - [ event_id : 8] # event id - [ ts_beg : 8] # timestamp - [ 42 : 8] # value field - -!end - -{ p1_s0_ts = 10 } -{ p2_s0_ts = 20 } - - -m:packet(p1_s0_ts, 0) - - - -m:packet(p2_s0_ts, 0) - - ---- index/first_trace_stream_0.idx -!be - -[0xC1F1DCC1 : 32] # Magic number -[ 1 : 32] # Major -[ 0 : 32] # Minor -[ 56 : 32] # Index entry size (56 bytes) - -# Packet 1 -!macro entry(beg_label, end_label, ts_beg) - [ beg_label : 64] # offset in bytes - [8 * (end_label - beg_label) : 64] # total size in bits - [8 * (end_label - beg_label) : 64] # content size in bits - [ ts_beg : 64] # timestamp begin - [ ts_beg + 1 : 64] # timestamp end - [ 0 : 64] # events discarded - [ 0 : 64] # stream class id -!end - -m:entry(p1_s0, p1_s0_end, p1_s0_ts) -m:entry(p2_s0, p2_s0_end, p2_s0_ts) diff --git a/tests/data/ctf-traces/live/new-streams/second-trace.mctf b/tests/data/ctf-traces/live/new-streams/second-trace.mctf deleted file mode 100644 index 969e0be1..00000000 --- a/tests/data/ctf-traces/live/new-streams/second-trace.mctf +++ /dev/null @@ -1,90 +0,0 @@ ---- metadata -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -clock { - name = cycle_counter_test; - uuid = "5b59e7db-5e49-418a-9adf-e1adfdf571c4"; - freq = 1000000000; -}; - -typealias integer { size = 8; align = 8; signed = false; map = clock.cycle_counter_test.value; } := cc_count_t; - -struct packet_context { - cc_count_t timestamp_begin; - cc_count_t timestamp_end; - uint8_t content_size; - uint8_t packet_size; -}; - -struct event_header { - uint8_t id; - cc_count_t timestamp; -}; - -stream { - event.header := struct event_header; - packet.context := struct packet_context; -}; - -event { - name = "second_trace_event"; - id = 0; - fields := struct { - uint8_t value; - }; -}; - ---- second_trace_stream_0 -!macro packet(ts_beg, event_id) - - [ ts_beg : 8] # timestamp begin - [ ts_beg + 1 : 8] # timestamp end - [8 * (end - beg) : 8] # content size in bits - [8 * (end - beg) : 8] # packet size in bits - - [ event_id : 8] # event id - [ ts_beg : 8] # timestamp - [ 123 : 8] # value field - -!end - -{ p1_s0_ts = 110 } -{ p2_s0_ts = 120 } - - -m:packet(p1_s0_ts, 0) - - - -m:packet(p2_s0_ts, 0) - - ---- index/second_trace_stream_0.idx -!be - -[0xC1F1DCC1 : 32] # Magic number -[ 1 : 32] # Major -[ 0 : 32] # Minor -[ 56 : 32] # Index entry size (56 bytes) - -# Packet 1 -!macro entry(beg_label, end_label, ts_beg) - [ beg_label : 64] # offset in bytes - [8 * (end_label - beg_label) : 64] # total size in bits - [8 * (end_label - beg_label) : 64] # content size in bits - [ ts_beg : 64] # timestamp begin - [ ts_beg + 1 : 64] # timestamp end - [ 0 : 64] # events discarded - [ 0 : 64] # stream class id -!end - -m:entry(p1_s0, p1_s0_end, p1_s0_ts) -m:entry(p2_s0, p2_s0_end, p2_s0_ts) diff --git a/tests/data/ctf-traces/live/split-metadata/channel0_0 b/tests/data/ctf-traces/live/split-metadata/channel0_0 deleted file mode 100644 index c8e9ddbe..00000000 Binary files a/tests/data/ctf-traces/live/split-metadata/channel0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/live/split-metadata/index/channel0_0.idx b/tests/data/ctf-traces/live/split-metadata/index/channel0_0.idx deleted file mode 100644 index 399ec45a..00000000 Binary files a/tests/data/ctf-traces/live/split-metadata/index/channel0_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/live/split-metadata/metadata b/tests/data/ctf-traces/live/split-metadata/metadata deleted file mode 100644 index b61a4e1c..00000000 --- a/tests/data/ctf-traces/live/split-metadata/metadata +++ /dev/null @@ -1,119 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "0339cd08-892d-404c-9291-64c1a8a74c81"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 12; - tracer_buffering_scheme = "uid"; - tracer_buffering_id = 1000; - architecture_bit_width = 64; - trace_name = "barney_descontie"; - trace_creation_datetime = "20200715T174253-0400"; - hostname = "raton"; -}; - -clock { - name = "monotonic"; - uuid = "81a04b89-9028-4d3e-a28d-5fbd53a8eb9d"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1594406328768346378; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; -}; - -event { - name = "my_app:signe_de_pia$$e"; - id = 0; - stream_id = 0; - loglevel = 13; - fields := struct { - }; -}; - -event { - name = "my_app:signe_de_pia$$e_2"; - id = 1; - stream_id = 0; - loglevel = 13; - fields := struct { - }; -}; diff --git a/tests/data/ctf-traces/live/stored-values.mctf b/tests/data/ctf-traces/live/stored-values.mctf deleted file mode 100644 index 8d198353..00000000 --- a/tests/data/ctf-traces/live/stored-values.mctf +++ /dev/null @@ -1,91 +0,0 @@ ---- metadata -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -struct packet_context { - uint8_t timestamp_begin; - uint8_t timestamp_end; - uint8_t content_size; - uint8_t packet_size; -}; - -struct event_header { - uint8_t id; - uint8_t timestamp; -}; - -stream { - event.header := struct event_header; - packet.context := struct packet_context; -}; - -event { - name = "event1"; - id = 1; - fields := struct { - uint8_t len; - uint8_t seq[len]; - }; -}; - -event { - name = "event2"; - id = 2; - fields := struct { - uint8_t len; - uint8_t seq[len]; - }; -}; - ---- channel0_0 -!macro packet(ts_beg, event_id) - - [ ts_beg : 8] # timestamp begin - [ ts_beg + 1 : 8] # timestamp end - [8 * (end - beg) : 8] # content size in bits - [8 * (end - beg) : 8] # packet size in bits - - [ event_id : 8] # event id - [ ts_beg : 8] # timestamp - [ 0 : 8] # len field - -!end - -{ p1_ts = 10 } -{ p2_ts = 20 } - - -m:packet(p1_ts, 1) - - - -m:packet(p2_ts, 2) - - ---- index/channel0_0.idx -!be - -[0xC1F1DCC1 : 32] # Magic number -[ 1 : 32] # Major -[ 0 : 32] # Minor -[ 56 : 32] # Index entry size (56 bytes) - -!macro entry(beg_label, end_label, ts_beg) - [ beg_label : 64] # offset in bytes - [8 * (end_label - beg_label) : 64] # total size in bits - [8 * (end_label - beg_label) : 64] # content size in bits - [ ts_beg : 64] # timestamp begin - [ ts_beg + 1 : 64] # timestamp end - [ 0 : 64] # events discarded - [ 0 : 64] # stream class id -!end - -m:entry(p1, p1_end, p1_ts) -m:entry(p2, p2_end, p2_ts) diff --git a/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/metadata b/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/metadata deleted file mode 100644 index 36e26cdf..00000000 --- a/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "ad21eeaa-fab9-4692-aab8-ebd68c7feb17"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "d336520f-985d-481e-8e35-d99328655354"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/test_stream_0 b/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/test_stream_0 deleted file mode 100644 index 50d36a46..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/2-lost-before-last/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/metadata b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/metadata deleted file mode 100644 index 525405e2..00000000 --- a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "61db8e6b-2069-40e4-84ed-bc15f42181f0"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "a0a8c252-db03-4f36-a148-80a0a3c4edff"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_0 b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_0 deleted file mode 100644 index 1b362cd4..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_1 b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_1 deleted file mode 100644 index d5114d90..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-1/test_stream_1 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/metadata b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/metadata deleted file mode 100644 index 680d9103..00000000 --- a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "eb5045f7-b471-488e-b963-0221ddf423a7"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "2447a359-1e57-448f-96ef-3c324327047c"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_0 b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_0 deleted file mode 100644 index b0beb6b4..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_1 b/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_1 deleted file mode 100644 index 1ad83201..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/2-streams-lost-in-2/test_stream_1 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx b/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx deleted file mode 100644 index e06d92fb..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/index/stream_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/metadata b/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/metadata deleted file mode 100644 index 37a30308..00000000 --- a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/metadata +++ /dev/null @@ -1,48 +0,0 @@ -/* CTF 1.8 */ - -/* This was generated by a Babeltrace `sink.ctf.fs` component. */ - -trace { - major = 1; - minor = 8; - uuid = "1c810767-575e-4c4e-afa1-5d3e15081cb9"; - byte_order = le; - packet.header := struct { - integer { size = 32; align = 8; base = x; } magic; - integer { size = 8; align = 8; } uuid[16]; - integer { size = 64; align = 8; } stream_id; - integer { size = 64; align = 8; } stream_instance_id; - } align(8); -}; - -clock { - name = default; - freq = 1000000000; - precision = 0; - offset_s = 0; - offset = 0; - absolute = true; -}; - -stream { - id = 0; - packet.context := struct { - integer { size = 64; align = 8; } packet_size; - integer { size = 64; align = 8; } content_size; - integer { size = 64; align = 8; map = clock.default.value; } timestamp_begin; - integer { size = 64; align = 8; map = clock.default.value; } timestamp_end; - integer { size = 64; align = 8; } packet_seq_num; - } align(8); - - event.header := struct { - integer { size = 64; align = 8; } id; - integer { size = 64; align = 8; map = clock.default.value; } timestamp; - } align(8); -}; - -event { - name = "my-event"; - stream_id = 0; - id = 0; -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/stream_0 b/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/stream_0 deleted file mode 100644 index fdfe9e1d..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/7-lost-between-2-with-index/stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/metadata b/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/metadata deleted file mode 100644 index c8f5783d..00000000 --- a/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "0bef2d78-5020-4b09-b520-64480ef5c0e6"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "ae130a0d-e10b-49cb-8b2d-64beaa23814c"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13932323; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 b/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 deleted file mode 100644 index f9639a3a..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/no-lost-not-starting-at-0/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/packet-seq-num/no-lost/metadata b/tests/data/ctf-traces/packet-seq-num/no-lost/metadata deleted file mode 100644 index d562061a..00000000 --- a/tests/data/ctf-traces/packet-seq-num/no-lost/metadata +++ /dev/null @@ -1,58 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - uuid = "b7d90429-287f-45ff-897c-3db7c5ab8b5a"; - byte_order = be; - packet.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } magic; - integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } uuid[16]; - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } stream_id; - } align(8); -}; - -env { - host = "sinkpad"; -}; - -clock { - name = test_clock; - uuid = "004fa3e8-48aa-453a-8be8-9d30ead9ac66"; - description = "This is a test clock"; - freq = 1000000000; - precision = 10; - offset_s = 13515309; - offset = 0; - absolute = TRUE; -}; - -stream { - id = 0; - event.header := struct { - integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } id; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; map = clock.test_clock.value; } timestamp; - } align(8); - - packet.context := struct { - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_begin; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } timestamp_end; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } content_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } packet_size; - integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = be; } events_discarded; - integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_seq_num; - } align(8); -}; - -event { - id = 0; - name = "dummy_event"; - stream_id = 0; - fields := struct { - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } dummy_value; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } tracefile_id; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_begin; - integer { size = 32; align = 1; signed = false; encoding = none; base = decimal; byte_order = be; } packet_end; - } align(1); -}; - diff --git a/tests/data/ctf-traces/packet-seq-num/no-lost/test_stream_0 b/tests/data/ctf-traces/packet-seq-num/no-lost/test_stream_0 deleted file mode 100644 index 15821fb1..00000000 Binary files a/tests/data/ctf-traces/packet-seq-num/no-lost/test_stream_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/2packets/channel0_2 b/tests/data/ctf-traces/succeed/2packets/channel0_2 deleted file mode 100644 index 6f895c9f..00000000 Binary files a/tests/data/ctf-traces/succeed/2packets/channel0_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/2packets/index/channel0_2.idx b/tests/data/ctf-traces/succeed/2packets/index/channel0_2.idx deleted file mode 100644 index 6a4c6da5..00000000 Binary files a/tests/data/ctf-traces/succeed/2packets/index/channel0_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/2packets/metadata b/tests/data/ctf-traces/succeed/2packets/metadata deleted file mode 100644 index 0c7f2e3e..00000000 Binary files a/tests/data/ctf-traces/succeed/2packets/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/array-align-elem/metadata b/tests/data/ctf-traces/succeed/array-align-elem/metadata deleted file mode 100644 index bf2fe258..00000000 --- a/tests/data/ctf-traces/succeed/array-align-elem/metadata +++ /dev/null @@ -1,16 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -event { - name = ev; - fields := struct { - integer { size = 8; } a; - integer { size = 8; align = 16; } b[0]; - integer { size = 8; } c; - }; -}; diff --git a/tests/data/ctf-traces/succeed/array-align-elem/stream b/tests/data/ctf-traces/succeed/array-align-elem/stream deleted file mode 100644 index aed2973e..00000000 --- a/tests/data/ctf-traces/succeed/array-align-elem/stream +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/data/ctf-traces/succeed/barectf-event-before-packet/metadata b/tests/data/ctf-traces/succeed/barectf-event-before-packet/metadata deleted file mode 100644 index 76e60809..00000000 --- a/tests/data/ctf-traces/succeed/barectf-event-before-packet/metadata +++ /dev/null @@ -1,168 +0,0 @@ -/* CTF 1.8 */ - -/* - * The MIT License (MIT) - * - * Copyright (c) 2015-2016 Philippe Proulx - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - * - * The following TSDL code was generated by barectf v2.3.0 - * on 2019-06-21 11:00:09.758512. - * - * For more details, see . - */ - -trace { - major = 1; - minor = 8; - byte_order = le; - uuid = "437748de-9435-11e9-8353-5254007c6857"; - packet.header := struct { - integer { - size = 32; - align = 32; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } magic; - integer { - size = 8; - align = 8; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } uuid[16]; - integer { - size = 8; - align = 8; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } stream_id; - } align(1); -}; - -env { - domain = "bare"; - tracer_name = "barectf"; - tracer_major = 2; - tracer_minor = 3; - tracer_patch = 0; - barectf_gen_date = "2019-06-21T11:00:09.758481"; -}; - -clock { - name = default; - freq = 1000000000; - offset_s = 1434072888; - offset = 0; - precision = 0; - absolute = false; -}; - -/* default */ -stream { - id = 0; - packet.context := struct { - integer { - size = 64; - align = 64; - signed = false; - byte_order = le; - base = 10; - encoding = none; - map = clock.default.value; - } timestamp_begin; - integer { - size = 64; - align = 64; - signed = false; - byte_order = le; - base = 10; - encoding = none; - map = clock.default.value; - } timestamp_end; - integer { - size = 32; - align = 32; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } packet_size; - integer { - size = 32; - align = 32; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } content_size; - integer { - size = 32; - align = 32; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } events_discarded; - } align(1); - event.header := struct { - integer { - size = 64; - align = 64; - signed = false; - byte_order = le; - base = 10; - encoding = none; - map = clock.default.value; - } timestamp; - integer { - size = 16; - align = 16; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } id; - } align(1); -}; - -event { - name = "simple_uint32"; - id = 0; - stream_id = 0; /* default */ - loglevel = 2; /* CRIT */ - fields := struct { - integer { - size = 32; - align = 32; - signed = false; - byte_order = le; - base = 10; - encoding = none; - } value; - } align(1); -}; diff --git a/tests/data/ctf-traces/succeed/barectf-event-before-packet/stream b/tests/data/ctf-traces/succeed/barectf-event-before-packet/stream deleted file mode 100644 index 55f45f20..00000000 Binary files a/tests/data/ctf-traces/succeed/barectf-event-before-packet/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/crlf-metadata/channel0_0 b/tests/data/ctf-traces/succeed/crlf-metadata/channel0_0 deleted file mode 100644 index af542611..00000000 Binary files a/tests/data/ctf-traces/succeed/crlf-metadata/channel0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/crlf-metadata/metadata b/tests/data/ctf-traces/succeed/crlf-metadata/metadata deleted file mode 100644 index 3c1438f2..00000000 --- a/tests/data/ctf-traces/succeed/crlf-metadata/metadata +++ /dev/null @@ -1,114 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "ddb15f3f-a235-444e-9d1b-f131648b5bf1"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 13; - tracer_buffering_scheme = "uid"; - tracer_buffering_id = 1000; - architecture_bit_width = 64; - trace_name = "crlf-metadata"; - trace_creation_datetime = "20231023T193151+0000"; - hostname = "line-endings"; -}; - -clock { - name = "monotonic"; - uuid = "d0367630-5511-4855-a390-afe86f9b4545"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1698076473717549015; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; -}; - -event { - name = "lttng_ust_tracef:event"; - id = 0; - stream_id = 0; - loglevel = 14; - fields := struct { - integer { size = 32; align = 8; signed = 0; encoding = none; base = 10; } __msg_length; - integer { size = 8; align = 8; signed = 1; encoding = UTF8; base = 10; } _msg[ __msg_length ]; - }; -}; - - diff --git a/tests/data/ctf-traces/succeed/debug-info/channel0_0 b/tests/data/ctf-traces/succeed/debug-info/channel0_0 deleted file mode 100644 index 1186c4bc..00000000 Binary files a/tests/data/ctf-traces/succeed/debug-info/channel0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/debug-info/metadata b/tests/data/ctf-traces/succeed/debug-info/metadata deleted file mode 100644 index 1d0228d7..00000000 --- a/tests/data/ctf-traces/succeed/debug-info/metadata +++ /dev/null @@ -1,127 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "d2270f5a-7a70-4521-860b-954f054e046b"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - hostname = "raton"; - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 11; -}; - -clock { - name = "monotonic"; - uuid = "c56ad62a-6a35-4722-9807-d8e0f118a367"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1563264475374722151; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -event { - name = "lttng_ust_statedump:bin_info"; - id = 0; - stream_id = 0; - loglevel = 13; - fields := struct { - integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _baddr; - integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } _memsz; - string _path; - integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _is_pic; - integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_build_id; - integer { size = 8; align = 8; signed = 0; encoding = none; base = 10; } _has_debug_link; - }; -}; - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; - event.context := struct { - integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _vpid; - integer { size = 64; align = 8; signed = 0; encoding = none; base = 16; } _ip; - }; -}; - -event { - name = "my_provider:my_first_tracepoint"; - id = 1; - stream_id = 0; - loglevel = 13; - fields := struct { - string _my_string_field; - integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _my_integer_field; - }; -}; - diff --git a/tests/data/ctf-traces/succeed/env-warning/dummystream b/tests/data/ctf-traces/succeed/env-warning/dummystream deleted file mode 100644 index 53d735e0..00000000 Binary files a/tests/data/ctf-traces/succeed/env-warning/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/env-warning/metadata b/tests/data/ctf-traces/succeed/env-warning/metadata deleted file mode 100644 index 0fb823cb..00000000 --- a/tests/data/ctf-traces/succeed/env-warning/metadata +++ /dev/null @@ -1,30 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; - -trace { - major = 1; - minor = 8; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -env { - dummy = "blah"; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/metadata b/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/metadata deleted file mode 100644 index 1b4803b1..00000000 --- a/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/metadata +++ /dev/null @@ -1,21 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -stream { - packet.context := struct { - integer { size = 8; } packet_size; - integer { size = 8; } events_discarded; - }; -}; - -event { - name = "ev"; - fields := struct { - string s; - }; -}; diff --git a/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/stream b/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/stream deleted file mode 100644 index b42129a0..00000000 Binary files a/tests/data/ctf-traces/succeed/ev-disc-no-ts-begin-end/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lf-metadata/channel0_0 b/tests/data/ctf-traces/succeed/lf-metadata/channel0_0 deleted file mode 100644 index 82dc4585..00000000 Binary files a/tests/data/ctf-traces/succeed/lf-metadata/channel0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lf-metadata/metadata b/tests/data/ctf-traces/succeed/lf-metadata/metadata deleted file mode 100644 index af907ff7..00000000 --- a/tests/data/ctf-traces/succeed/lf-metadata/metadata +++ /dev/null @@ -1,114 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "8c609d38-ed7e-49c3-81df-33cf268062b7"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 13; - tracer_buffering_scheme = "uid"; - tracer_buffering_id = 1000; - architecture_bit_width = 64; - trace_name = "lf-metadata"; - trace_creation_datetime = "20231023T185853+0000"; - hostname = "line-endings"; -}; - -clock { - name = "monotonic"; - uuid = "d0367630-5511-4855-a390-afe86f9b4545"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1698076473717549018; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; -}; - -event { - name = "lttng_ust_tracef:event"; - id = 0; - stream_id = 0; - loglevel = 14; - fields := struct { - integer { size = 32; align = 8; signed = 0; encoding = none; base = 10; } __msg_length; - integer { size = 8; align = 8; signed = 1; encoding = UTF8; base = 10; } _msg[ __msg_length ]; - }; -}; - - diff --git a/tests/data/ctf-traces/succeed/lttng-crash/chan_0 b/tests/data/ctf-traces/succeed/lttng-crash/chan_0 deleted file mode 100644 index a570de85..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-crash/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-crash/metadata b/tests/data/ctf-traces/succeed/lttng-crash/metadata deleted file mode 100644 index 0f329ebd..00000000 --- a/tests/data/ctf-traces/succeed/lttng-crash/metadata +++ /dev/null @@ -1,108 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "a7055065-938f-439c-818e-975c13b30be2"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - hostname = "raton"; - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 11; -}; - -clock { - name = "monotonic"; - uuid = "4d76db72-e40f-409e-ba30-532d309d5048"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1565056443054742594; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; -}; - -event { - name = "my_app:current_temp"; - id = 0; - stream_id = 0; - loglevel = 13; - fields := struct { - integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _temp; - string _status; - }; -}; - diff --git a/tests/data/ctf-traces/succeed/lttng-event-after-packet/chan_0 b/tests/data/ctf-traces/succeed/lttng-event-after-packet/chan_0 deleted file mode 100644 index fffcccd8..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-event-after-packet/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-event-after-packet/metadata b/tests/data/ctf-traces/succeed/lttng-event-after-packet/metadata deleted file mode 100644 index 3127cd57..00000000 --- a/tests/data/ctf-traces/succeed/lttng-event-after-packet/metadata +++ /dev/null @@ -1,108 +0,0 @@ -/* CTF 1.8 */ - -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "e8680f63-336b-4999-9b6b-080f1c1b9f7b"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - uint64_t stream_instance_id; - }; -}; - -env { - hostname = "raton"; - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 10; -}; - -clock { - name = "monotonic"; - uuid = "4d76db72-e40f-409e-ba30-532d309d5048"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1565056443054742596; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - uint64_t packet_seq_num; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_large; - packet.context := struct packet_context; -}; - -event { - name = "my_app:current_temp"; - id = 0; - stream_id = 0; - loglevel = 13; - fields := struct { - integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _temp; - string _status; - }; -}; - diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/README b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/README deleted file mode 100644 index 2cf8b891..00000000 --- a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/README +++ /dev/null @@ -1,10 +0,0 @@ -Trace created with: - - lttng create - lttng enable-channel --kernel --tracefile-size=64k --subbuf-size=64k mychan - lttng enable-event -k --channel=mychan 'sched_*' - lttng start - sleep 2 - lttng stop - - diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx deleted file mode 100644 index 4b33db85..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx deleted file mode 100644 index e203b3a0..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx deleted file mode 100644 index 02b52dad..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_0_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx deleted file mode 100644 index 6c827412..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx deleted file mode 100644 index 3baed678..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx deleted file mode 100644 index 3b11abd8..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_1_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx deleted file mode 100644 index af7bbd77..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx deleted file mode 100644 index 3115bd94..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx deleted file mode 100644 index db75e00c..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_2_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx deleted file mode 100644 index d4dcedb1..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx deleted file mode 100644 index 60e579b3..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/index/mychan_3_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/metadata b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/metadata deleted file mode 100644 index 1d827800..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 deleted file mode 100644 index 66370ed6..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 deleted file mode 100644 index e2676b60..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 deleted file mode 100644 index c05165f6..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_0_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 deleted file mode 100644 index 20f3a76b..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 deleted file mode 100644 index 229df416..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 deleted file mode 100644 index 954309fd..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_1_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 deleted file mode 100644 index 8313952e..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 deleted file mode 100644 index 180c0731..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 deleted file mode 100644 index f38fcdce..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_2_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 deleted file mode 100644 index 652ee9a2..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 b/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 deleted file mode 100644 index 310c8ab8..00000000 Binary files a/tests/data/ctf-traces/succeed/lttng-tracefile-rotation/kernel/mychan_3_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/meta-ctx-sequence/metadata b/tests/data/ctf-traces/succeed/meta-ctx-sequence/metadata deleted file mode 100644 index 247e5f3b..00000000 --- a/tests/data/ctf-traces/succeed/meta-ctx-sequence/metadata +++ /dev/null @@ -1,19 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -stream { - event.context := struct { - uint8_t __evt_ctx_seq_length; - uint8_t _evt_ctx_seq[ __evt_ctx_seq_length ]; - }; - packet.context := struct { - uint8_t __pkt_ctx_seq_length; - uint8_t _pkt_ctx_seq[ __pkt_ctx_seq_length ]; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-ctx-sequence/stream b/tests/data/ctf-traces/succeed/meta-ctx-sequence/stream deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/data/ctf-traces/succeed/meta-variant-no-underscore/metadata b/tests/data/ctf-traces/succeed/meta-variant-no-underscore/metadata deleted file mode 100644 index dd8bcb8d..00000000 --- a/tests/data/ctf-traces/succeed/meta-variant-no-underscore/metadata +++ /dev/null @@ -1,24 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = yo; - fields := struct { - enum : integer { size = 8; } { - COSSETTE, - PELCHAT, - VOISINE, - } tag; - - variant { - string COSSETTE; - string PELCHAT; - string VOISINE; - } var; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-variant-no-underscore/stream b/tests/data/ctf-traces/succeed/meta-variant-no-underscore/stream deleted file mode 100644 index f54d73fe..00000000 Binary files a/tests/data/ctf-traces/succeed/meta-variant-no-underscore/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/meta-variant-one-underscore/metadata b/tests/data/ctf-traces/succeed/meta-variant-one-underscore/metadata deleted file mode 100644 index 0c6206ff..00000000 --- a/tests/data/ctf-traces/succeed/meta-variant-one-underscore/metadata +++ /dev/null @@ -1,24 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = yo; - fields := struct { - enum : integer { size = 8; } { - COSSETTE, - PELCHAT, - _VOISINE, - } tag; - - variant { - string COSSETTE; - string PELCHAT; - string _VOISINE; - } var; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-variant-one-underscore/stream b/tests/data/ctf-traces/succeed/meta-variant-one-underscore/stream deleted file mode 100644 index f54d73fe..00000000 Binary files a/tests/data/ctf-traces/succeed/meta-variant-one-underscore/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/metadata b/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/metadata deleted file mode 100644 index 18af2f9a..00000000 --- a/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/metadata +++ /dev/null @@ -1,74 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = yo; - fields := struct { - enum : integer { size = 8; } { - _align, - _callsite, - _const, - _char, - _clock, - _double, - _enum, - _env, - _event, - _floating_point, - _float, - _integer, - _int, - _long, - _short, - _signed, - _stream, - _string, - _struct, - _trace, - _typealias, - _typedef, - _unsigned, - _variant, - _void, - __Bool, - __Complex, - __Imaginary, - } tag; - - variant { - string _align; - string _callsite; - string _const; - string _char; - string _clock; - string _double; - string _enum; - string _env; - string _event; - string _floating_point; - string _float; - string _integer; - string _int; - string _long; - string _short; - string _signed; - string _stream; - string _string; - string _struct; - string _trace; - string _typealias; - string _typedef; - string _unsigned; - string _variant; - string _void; - string __Bool; - string __Complex; - string __Imaginary; - } var; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/stream b/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/stream deleted file mode 100644 index f54d73fe..00000000 Binary files a/tests/data/ctf-traces/succeed/meta-variant-reserved-keywords/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/metadata b/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/metadata deleted file mode 100644 index be1b0cdf..00000000 --- a/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/metadata +++ /dev/null @@ -1,24 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = yo; - fields := struct { - enum : integer { size = 8; } { - COSSETTE, - _PELCHAT, - __PELCHAT, - } tag; - - variant { - string COSSETTE; - string _PELCHAT; - string __PELCHAT; - } var; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/stream b/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/stream deleted file mode 100644 index f54d73fe..00000000 Binary files a/tests/data/ctf-traces/succeed/meta-variant-same-with-underscore/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/meta-variant-two-underscores/metadata b/tests/data/ctf-traces/succeed/meta-variant-two-underscores/metadata deleted file mode 100644 index 4eb669d2..00000000 --- a/tests/data/ctf-traces/succeed/meta-variant-two-underscores/metadata +++ /dev/null @@ -1,24 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = yo; - fields := struct { - enum : integer { size = 8; } { - COSSETTE, - __PELCHAT, - VOISINE, - } tag; - - variant { - string COSSETTE; - string __PELCHAT; - string VOISINE; - } var; - }; -}; diff --git a/tests/data/ctf-traces/succeed/meta-variant-two-underscores/stream b/tests/data/ctf-traces/succeed/meta-variant-two-underscores/stream deleted file mode 100644 index f54d73fe..00000000 Binary files a/tests/data/ctf-traces/succeed/meta-variant-two-underscores/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_0.idx b/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_0.idx deleted file mode 100644 index a7ef2799..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_1.idx b/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_1.idx deleted file mode 100644 index 2c7d0fc7..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_2.idx b/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_2.idx deleted file mode 100644 index 9a480a03..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_3.idx b/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_3.idx deleted file mode 100644 index 92cd8987..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/index/kernel_channel_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_0 b/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_0 deleted file mode 100644 index a16448d7..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_1 b/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_1 deleted file mode 100644 index 833d511f..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_2 b/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_2 deleted file mode 100644 index 24f014e1..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_3 b/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_3 deleted file mode 100644 index 21a412dc..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/kernel_channel_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/kernel/metadata b/tests/data/ctf-traces/succeed/multi-domains/kernel/metadata deleted file mode 100644 index 0450bb2b..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/kernel/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_0.idx b/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_0.idx deleted file mode 100644 index ae8b5eca..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_1.idx b/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_1.idx deleted file mode 100644 index 0ff21e22..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_2.idx b/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_2.idx deleted file mode 100644 index c506d5af..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_3.idx b/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_3.idx deleted file mode 100644 index be41dad3..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/index/ust2_channel_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/metadata b/tests/data/ctf-traces/succeed/multi-domains/ust/metadata deleted file mode 100644 index 18ad4ff1..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_0 b/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_0 deleted file mode 100644 index 5aa372aa..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_1 b/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_1 deleted file mode 100644 index cc288edd..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_2 b/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_2 deleted file mode 100644 index ff260111..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_3 b/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_3 deleted file mode 100644 index 547501c1..00000000 Binary files a/tests/data/ctf-traces/succeed/multi-domains/ust/ust2_channel_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/no-packet-context/metadata b/tests/data/ctf-traces/succeed/no-packet-context/metadata deleted file mode 100644 index c8114323..00000000 --- a/tests/data/ctf-traces/succeed/no-packet-context/metadata +++ /dev/null @@ -1,14 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = be; -}; - -event { - name = "ev"; - fields := struct { - string s; - }; -}; diff --git a/tests/data/ctf-traces/succeed/no-packet-context/stream b/tests/data/ctf-traces/succeed/no-packet-context/stream deleted file mode 100644 index 0db26329..00000000 Binary files a/tests/data/ctf-traces/succeed/no-packet-context/stream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/sequence/channel0_0 b/tests/data/ctf-traces/succeed/sequence/channel0_0 deleted file mode 100644 index 5038a227..00000000 Binary files a/tests/data/ctf-traces/succeed/sequence/channel0_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/sequence/channel0_1 b/tests/data/ctf-traces/succeed/sequence/channel0_1 deleted file mode 100644 index fd947382..00000000 Binary files a/tests/data/ctf-traces/succeed/sequence/channel0_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/sequence/channel0_2 b/tests/data/ctf-traces/succeed/sequence/channel0_2 deleted file mode 100644 index 9d848fcb..00000000 Binary files a/tests/data/ctf-traces/succeed/sequence/channel0_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/sequence/channel0_3 b/tests/data/ctf-traces/succeed/sequence/channel0_3 deleted file mode 100644 index ef385c38..00000000 Binary files a/tests/data/ctf-traces/succeed/sequence/channel0_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/sequence/metadata b/tests/data/ctf-traces/succeed/sequence/metadata deleted file mode 100644 index 2163abfc..00000000 --- a/tests/data/ctf-traces/succeed/sequence/metadata +++ /dev/null @@ -1,106 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 16; align = 8; signed = false; } := uint16_t; -typealias integer { size = 32; align = 8; signed = false; } := uint32_t; -typealias integer { size = 64; align = 8; signed = false; } := uint64_t; -typealias integer { size = 64; align = 8; signed = false; } := unsigned long; -typealias integer { size = 5; align = 1; signed = false; } := uint5_t; -typealias integer { size = 27; align = 1; signed = false; } := uint27_t; - -trace { - major = 1; - minor = 8; - uuid = "59052333-e490-4ed9-af7a-b652437fba9a"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - uint32_t stream_id; - }; -}; - -env { - hostname = "host"; - domain = "ust"; - tracer_name = "lttng-ust"; - tracer_major = 2; - tracer_minor = 3; -}; - -clock { - name = monotonic; - uuid = "5f3ed925-9d73-4637-b8e4-02077abc8c8f"; - description = "Monotonic Clock"; - freq = 1000000000; /* Frequency, in Hz */ - /* clock value offset from Epoch is: offset * (1/freq) */ - offset = 1375437179542680815; -}; - -typealias integer { - size = 27; align = 1; signed = false; - map = clock.monotonic.value; -} := uint27_clock_monotonic_t; - -typealias integer { - size = 32; align = 8; signed = false; - map = clock.monotonic.value; -} := uint32_clock_monotonic_t; - -typealias integer { - size = 64; align = 8; signed = false; - map = clock.monotonic.value; -} := uint64_clock_monotonic_t; - -struct packet_context { - uint64_clock_monotonic_t timestamp_begin; - uint64_clock_monotonic_t timestamp_end; - uint64_t content_size; - uint64_t packet_size; - unsigned long events_discarded; - uint32_t cpu_id; -}; - -struct event_header_compact { - enum : uint5_t { compact = 0 ... 30, extended = 31 } id; - variant { - struct { - uint27_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -struct event_header_large { - enum : uint16_t { compact = 0 ... 65534, extended = 65535 } id; - variant { - struct { - uint32_clock_monotonic_t timestamp; - } compact; - struct { - uint32_t id; - uint64_clock_monotonic_t timestamp; - } extended; - } v; -} align(8); - -stream { - id = 0; - event.header := struct event_header_compact; - packet.context := struct packet_context; -}; - -event { - name = "sequence event"; - id = 0; - stream_id = 0; - loglevel = 1; - fields := struct { - integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_int_field_length; - integer { size = 32; align = 8; signed = 1; encoding = none; base = 10; } _seq_int_field[ __seq_int_field_length ]; - integer { size = 64; align = 8; signed = 0; encoding = none; base = 10; } __seq_long_field_length; - integer { size = 64; align = 8; signed = 1; encoding = none; base = 10; } _seq_long_field[ __seq_long_field_length ]; - }; -}; diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_0 deleted file mode 100644 index 977d3bb3..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_1 deleted file mode 100644 index 74d07f3c..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_2 deleted file mode 100644 index 5a838d62..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_3 deleted file mode 100644 index e78fc591..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/chan_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx deleted file mode 100644 index 8f5104b3..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx deleted file mode 100644 index 17cc60b6..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx deleted file mode 100644 index a52405f9..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx deleted file mode 100644 index afaa8d76..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/metadata b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/metadata deleted file mode 100644 index 166e9de2..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10352/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_0 deleted file mode 100644 index d30efd70..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_1 deleted file mode 100644 index 88286687..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_2 deleted file mode 100644 index 604e167b..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_3 deleted file mode 100644 index 2080b973..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/chan_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx deleted file mode 100644 index 4247d65b..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx deleted file mode 100644 index 68b94aa6..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx deleted file mode 100644 index eb8a0050..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx deleted file mode 100644 index 65b6968a..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/metadata b/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/metadata deleted file mode 100644 index 82c4c8c3..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/3/ust/pid/10353/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_0 deleted file mode 100644 index 150b931a..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_1 deleted file mode 100644 index 6290fde1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_2 deleted file mode 100644 index f21c3dac..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_3 deleted file mode 100644 index 56449cf5..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/chan_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx deleted file mode 100644 index 7c04f4cf..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx deleted file mode 100644 index 1c2109f1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx deleted file mode 100644 index 43b5be90..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx deleted file mode 100644 index e1aa72f7..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/metadata b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/metadata deleted file mode 100644 index 8844110f..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10352/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_0 deleted file mode 100644 index b941b958..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_1 deleted file mode 100644 index 9950f0b3..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_2 deleted file mode 100644 index 67e30a84..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_3 deleted file mode 100644 index f349fbb2..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/chan_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx deleted file mode 100644 index 70eace6f..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx deleted file mode 100644 index e45c2e66..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx deleted file mode 100644 index d106577d..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx deleted file mode 100644 index 50b2e37f..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/metadata b/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/metadata deleted file mode 100644 index beaacf46..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/1/ust/pid/10353/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_0 deleted file mode 100644 index de2ec8d0..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_1 deleted file mode 100644 index 6b7e8b77..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_2 deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_3 deleted file mode 100644 index 1c04a9f1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/chan_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx deleted file mode 100644 index d4e1b127..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx deleted file mode 100644 index f774db48..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx deleted file mode 100644 index 26d0b0e1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx deleted file mode 100644 index f3086ecb..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/metadata b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/metadata deleted file mode 100644 index bcb74a74..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10352/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_0 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_0 deleted file mode 100644 index 200fa4ce..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_1 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_1 deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_2 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_2 deleted file mode 100644 index 164a6a95..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_3 b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/chan_3 deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx deleted file mode 100644 index 89f19769..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx deleted file mode 100644 index 26d0b0e1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx deleted file mode 100644 index 862e0d5e..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx deleted file mode 100644 index 26d0b0e1..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/index/chan_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/metadata b/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/metadata deleted file mode 100644 index 080ef47d..00000000 Binary files a/tests/data/ctf-traces/succeed/session-rotation/a/2/ust/pid/10353/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/smalltrace/dummystream b/tests/data/ctf-traces/succeed/smalltrace/dummystream deleted file mode 100644 index 469cb9a3..00000000 Binary files a/tests/data/ctf-traces/succeed/smalltrace/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/smalltrace/metadata b/tests/data/ctf-traces/succeed/smalltrace/metadata deleted file mode 100644 index bf356a85..00000000 --- a/tests/data/ctf-traces/succeed/smalltrace/metadata +++ /dev/null @@ -1,19 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; - -trace { - major = 1; - minor = 8; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/struct-array-align-elem/metadata b/tests/data/ctf-traces/succeed/struct-array-align-elem/metadata deleted file mode 100644 index 4b668b6b..00000000 --- a/tests/data/ctf-traces/succeed/struct-array-align-elem/metadata +++ /dev/null @@ -1,19 +0,0 @@ -/* CTF 1.8 */ - -trace { - major = 1; - minor = 8; - byte_order = le; -}; - -event { - name = ev; - fields := struct { - integer { size = 8; } x; - struct { - integer { size = 8; } a; - integer { size = 8; align = 32; } b[0]; - } y; - integer { size = 8; } z; - }; -}; diff --git a/tests/data/ctf-traces/succeed/struct-array-align-elem/stream b/tests/data/ctf-traces/succeed/struct-array-align-elem/stream deleted file mode 100644 index 158cb140..00000000 --- a/tests/data/ctf-traces/succeed/struct-array-align-elem/stream +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/data/ctf-traces/succeed/succeed1/dummystream b/tests/data/ctf-traces/succeed/succeed1/dummystream deleted file mode 100644 index 53d735e0..00000000 Binary files a/tests/data/ctf-traces/succeed/succeed1/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/succeed1/metadata b/tests/data/ctf-traces/succeed/succeed1/metadata deleted file mode 100644 index 2c18b9d0..00000000 --- a/tests/data/ctf-traces/succeed/succeed1/metadata +++ /dev/null @@ -1,26 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; } := uint32_t; - -trace { - major = 1; - minor = 8; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/succeed2/dummystream b/tests/data/ctf-traces/succeed/succeed2/dummystream deleted file mode 100644 index 53d735e0..00000000 Binary files a/tests/data/ctf-traces/succeed/succeed2/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/succeed2/metadata b/tests/data/ctf-traces/succeed/succeed2/metadata deleted file mode 100644 index c52443fc..00000000 --- a/tests/data/ctf-traces/succeed/succeed2/metadata +++ /dev/null @@ -1,26 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; - -trace { - major = 1; - minor = 8; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/succeed3/dummystream b/tests/data/ctf-traces/succeed/succeed3/dummystream deleted file mode 100644 index 53d735e0..00000000 Binary files a/tests/data/ctf-traces/succeed/succeed3/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/succeed3/metadata b/tests/data/ctf-traces/succeed/succeed3/metadata deleted file mode 100644 index 5bcd1c8e..00000000 --- a/tests/data/ctf-traces/succeed/succeed3/metadata +++ /dev/null @@ -1,29 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; - -trace { - major = 1; - minor = 8; - test = "\""; - test2 = "?\x20\040?"; - test3 = '\n'; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/succeed4/metadata b/tests/data/ctf-traces/succeed/succeed4/metadata deleted file mode 100644 index 63979e97..00000000 --- a/tests/data/ctf-traces/succeed/succeed4/metadata +++ /dev/null @@ -1,31 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; } := uint32_t; - -trace { - major = 1; - minor = 8; - test = 0xABC234; /* hexadecimal */ - test1 = 06534; /* octal */ - test2 = 1234; /* decimal */ - test3 = +1234; /* decimal with + unary op */ - test4 = -1234; /* decimal (negated) */ - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; -}; - -event { - name = string; - fields := struct { string str; }; -}; diff --git a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_0.idx b/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_0.idx deleted file mode 100644 index bf42f283..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_0.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_1.idx b/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_1.idx deleted file mode 100644 index ba9bd230..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_1.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_2.idx b/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_2.idx deleted file mode 100644 index 425ba0de..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_2.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_3.idx b/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_3.idx deleted file mode 100644 index 4fc275e1..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/index/ust_channel_3.idx and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/metadata b/tests/data/ctf-traces/succeed/trace-with-index/metadata deleted file mode 100644 index 9667e55a..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_0 b/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_0 deleted file mode 100644 index f26876b9..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_1 b/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_1 deleted file mode 100644 index f0bdf934..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_2 b/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_2 deleted file mode 100644 index 1f0cb5f1..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_3 b/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_3 deleted file mode 100644 index 7f8c7c46..00000000 Binary files a/tests/data/ctf-traces/succeed/trace-with-index/ust_channel_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/warnings/dummystream b/tests/data/ctf-traces/succeed/warnings/dummystream deleted file mode 100644 index 53d735e0..00000000 Binary files a/tests/data/ctf-traces/succeed/warnings/dummystream and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/warnings/metadata b/tests/data/ctf-traces/succeed/warnings/metadata deleted file mode 100644 index 125a5d58..00000000 --- a/tests/data/ctf-traces/succeed/warnings/metadata +++ /dev/null @@ -1,29 +0,0 @@ -/* CTF 1.8 */ -typealias integer { size = 8; align = 8; signed = false; aa = bb; } := uint8_t; -typealias integer { size = 32; align = 32; signed = false; zz = aa; } := uint32_t; - -trace { - major = 1; - minor = 8; - uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; - byte_order = le; - packet.header := struct { - uint32_t magic; - uint8_t uuid[16]; - }; - blah = "aaa"; -}; - -stream { - packet.context := struct { - uint32_t content_size; - uint32_t packet_size; - }; - askdjfhaskdjfh = 1; -}; - -event { - name = string; - fields := struct { string str; }; - asdjfhah := struct { uint8_t ffff; }; -}; diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/metadata b/tests/data/ctf-traces/succeed/wk-heartbeat-u/metadata deleted file mode 100644 index e35f463e..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/metadata and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_0 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_0 deleted file mode 100644 index 3af2cdc1..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_0 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_1 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_1 deleted file mode 100644 index 7b74c035..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_1 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_2 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_2 deleted file mode 100644 index 13a69fc1..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_2 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_3 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_3 deleted file mode 100644 index 1cdde727..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_3 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_4 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_4 deleted file mode 100644 index c1360344..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_4 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_5 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_5 deleted file mode 100644 index a0a58817..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_5 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_6 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_6 deleted file mode 100644 index b1c8520e..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_6 and /dev/null differ diff --git a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_7 b/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_7 deleted file mode 100644 index 05f7393e..00000000 Binary files a/tests/data/ctf-traces/succeed/wk-heartbeat-u/u_7 and /dev/null differ diff --git a/tests/data/plugins/flt.lttng-utils.debug-info/README.md b/tests/data/plugins/flt.lttng-utils.debug-info/README.md index 38045d16..91176730 100644 --- a/tests/data/plugins/flt.lttng-utils.debug-info/README.md +++ b/tests/data/plugins/flt.lttng-utils.debug-info/README.md @@ -66,10 +66,10 @@ To regenerate them, you can use the included Makefile or follow these steps: Test program ------------ -The trace provided in `tests/data/ctf-traces/succeed/debug-info/` was generated -using lttng-ust in a LTTng session configured to contain only the bare minimum -to do the debug-info resolution. You can generate such trace by following these -steps: +The trace provided in `tests/data/ctf-traces/1/succeed/debug-info/` was +generated using lttng-ust in a LTTng session configured to contain only the +bare minimum to do the debug-info resolution. You can generate such trace by +following these steps: 1. Compile the example binary: $ ln -s x86-64-linux-gnu/dwarf-full/libhello-so libhello.so diff --git a/tests/data/plugins/src.ctf.lttng-live/base.json b/tests/data/plugins/src.ctf.lttng-live/base.json index 967645b5..0062b49a 100644 --- a/tests/data/plugins/src.ctf.lttng-live/base.json +++ b/tests/data/plugins/src.ctf.lttng-live/base.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/trace-with-index/" + "path": "1/succeed/trace-with-index/" } ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/inactivity-discarded-packet.json b/tests/data/plugins/src.ctf.lttng-live/inactivity-discarded-packet.json index bec5dc9f..b2ad7c3b 100644 --- a/tests/data/plugins/src.ctf.lttng-live/inactivity-discarded-packet.json +++ b/tests/data/plugins/src.ctf.lttng-live/inactivity-discarded-packet.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "packet-seq-num/7-lost-between-2-with-index/", + "path": "1/packet-seq-num/7-lost-between-2-with-index/", "beacons": { "stream_0": [ 80 ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/list-sessions.json b/tests/data/plugins/src.ctf.lttng-live/list-sessions.json index 0c0091ca..9a3583ec 100644 --- a/tests/data/plugins/src.ctf.lttng-live/list-sessions.json +++ b/tests/data/plugins/src.ctf.lttng-live/list-sessions.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/ust/" + "path": "1/succeed/multi-domains/ust/" } ] }, @@ -19,7 +19,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/kernel/" + "path": "1/succeed/multi-domains/kernel/" } ] }, @@ -31,7 +31,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/trace-with-index/" + "path": "1/succeed/trace-with-index/" } ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/multi-domains-inverse.json b/tests/data/plugins/src.ctf.lttng-live/multi-domains-inverse.json index 71755022..122f3821 100644 --- a/tests/data/plugins/src.ctf.lttng-live/multi-domains-inverse.json +++ b/tests/data/plugins/src.ctf.lttng-live/multi-domains-inverse.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/ust/" + "path": "1/succeed/multi-domains/ust/" } ] }, @@ -19,7 +19,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/kernel/" + "path": "1/succeed/multi-domains/kernel/" } ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/multi-domains.json b/tests/data/plugins/src.ctf.lttng-live/multi-domains.json index 155cacf9..df046a5b 100644 --- a/tests/data/plugins/src.ctf.lttng-live/multi-domains.json +++ b/tests/data/plugins/src.ctf.lttng-live/multi-domains.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/kernel/" + "path": "1/succeed/multi-domains/kernel/" } ] }, @@ -19,7 +19,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/multi-domains/ust/" + "path": "1/succeed/multi-domains/ust/" } ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/rate-limited.json b/tests/data/plugins/src.ctf.lttng-live/rate-limited.json index d7022b10..44b7eb65 100644 --- a/tests/data/plugins/src.ctf.lttng-live/rate-limited.json +++ b/tests/data/plugins/src.ctf.lttng-live/rate-limited.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "succeed/trace-with-index/" + "path": "1/succeed/trace-with-index/" } ] } diff --git a/tests/data/plugins/src.ctf.lttng-live/split-metadata.json b/tests/data/plugins/src.ctf.lttng-live/split-metadata.json index 867e94d7..12968cbe 100644 --- a/tests/data/plugins/src.ctf.lttng-live/split-metadata.json +++ b/tests/data/plugins/src.ctf.lttng-live/split-metadata.json @@ -7,7 +7,7 @@ "client-count": 0, "traces": [ { - "path": "live/split-metadata/", + "path": "1/live/split-metadata/", "beacons": { }, "metadata-sections": [ diff --git a/tests/plugins/flt.lttng-utils.debug-info/test-succeed.sh b/tests/plugins/flt.lttng-utils.debug-info/test-succeed.sh index 430bab3a..053279af 100755 --- a/tests/plugins/flt.lttng-utils.debug-info/test-succeed.sh +++ b/tests/plugins/flt.lttng-utils.debug-info/test-succeed.sh @@ -9,7 +9,7 @@ # This test validates that a `src.ctf.fs` component successfully reads # specific CTF traces and creates the expected messages. # -# Such CTF traces to open either exist (in `tests/ctf-traces/succeed`) +# Such CTF traces to open either exist (in `tests/ctf-traces/1/succeed`) # or are generated by this test using local trace generators. SH_TAP=1 @@ -24,7 +24,7 @@ fi source "$UTILSSH" this_dir_relative="plugins/flt.lttng-utils.debug-info" -succeed_trace_dir="$BT_CTF_TRACES_PATH/succeed" +succeed_trace_dir="$BT_CTF_TRACES_PATH/1/succeed" expect_dir="$BT_TESTS_DATADIR/$this_dir_relative" binary_artefact_dir="$BT_TESTS_DATADIR/$this_dir_relative" data_dir="$BT_TESTS_DATADIR/$this_dir_relative" diff --git a/tests/plugins/sink.ctf.fs/succeed/test-succeed.sh b/tests/plugins/sink.ctf.fs/succeed/test-succeed.sh index 6d47c09e..16e454d0 100755 --- a/tests/plugins/sink.ctf.fs/succeed/test-succeed.sh +++ b/tests/plugins/sink.ctf.fs/succeed/test-succeed.sh @@ -8,7 +8,7 @@ # This test validates that a `src.ctf.fs` component successfully reads # specific CTF traces and creates the expected messages. # -# Such CTF traces to open either exist (in `tests/ctf-traces/succeed`) +# Such CTF traces to open either exist (in `tests/ctf-traces/1/succeed`) # or are generated by this test using local trace generators. SH_TAP=1 @@ -25,7 +25,7 @@ source "$UTILSSH" this_dir_relative="plugins/sink.ctf.fs/succeed" this_dir_build="$BT_TESTS_BUILDDIR/$this_dir_relative" expect_dir="$BT_TESTS_DATADIR/$this_dir_relative" -succeed_traces="$BT_CTF_TRACES_PATH/succeed" +succeed_traces="$BT_CTF_TRACES_PATH/1/succeed" test_ctf_single() { local name="$1" @@ -82,8 +82,8 @@ plan_tests 14 test_ctf_gen_single float test_ctf_gen_single double -test_ctf_existing_single meta-variant-no-underscore -test_ctf_existing_single meta-variant-one-underscore -test_ctf_existing_single meta-variant-reserved-keywords -test_ctf_existing_single meta-variant-same-with-underscore -test_ctf_existing_single meta-variant-two-underscores +test_ctf_existing_single "meta-variant-no-underscore" +test_ctf_existing_single "meta-variant-one-underscore" +test_ctf_existing_single "meta-variant-reserved-keywords" +test_ctf_existing_single "meta-variant-same-with-underscore" +test_ctf_existing_single "meta-variant-two-underscores" diff --git a/tests/plugins/sink.text.details/succeed/test-succeed.sh b/tests/plugins/sink.text.details/succeed/test-succeed.sh index 9c21155d..5329686f 100755 --- a/tests/plugins/sink.text.details/succeed/test-succeed.sh +++ b/tests/plugins/sink.text.details/succeed/test-succeed.sh @@ -24,7 +24,7 @@ test_details() { local trace_name="$2" shift 2 local details_args=("$@") - local trace_dir="$BT_CTF_TRACES_PATH/succeed/$trace_name" + local trace_dir="$BT_CTF_TRACES_PATH/1/succeed/$trace_name" local expect_path="$expect_dir/$test_name.expect" bt_diff_cli "$expect_path" /dev/null \ diff --git a/tests/plugins/src.ctf.fs/fail/test-fail.sh b/tests/plugins/src.ctf.fs/fail/test-fail.sh index ee0f82f7..7c5120ac 100755 --- a/tests/plugins/src.ctf.fs/fail/test-fail.sh +++ b/tests/plugins/src.ctf.fs/fail/test-fail.sh @@ -19,7 +19,7 @@ fi # shellcheck source=../../../utils/utils.sh source "$UTILSSH" -fail_trace_dir="$BT_CTF_TRACES_PATH/fail" +fail_trace_dir="$BT_CTF_TRACES_PATH/1/fail" stdout_file=$(mktemp -t test-ctf-fail-stdout.XXXXXX) stderr_file=$(mktemp -t test-ctf-fail-stderr.XXXXXX) diff --git a/tests/plugins/src.ctf.fs/query/test-query-metadata-info.sh b/tests/plugins/src.ctf.fs/query/test-query-metadata-info.sh index 14a61822..86137c9e 100755 --- a/tests/plugins/src.ctf.fs/query/test-query-metadata-info.sh +++ b/tests/plugins/src.ctf.fs/query/test-query-metadata-info.sh @@ -18,7 +18,7 @@ fi source "$UTILSSH" this_dir_relative="plugins/src.ctf.fs/query" -succeed_trace_dir="$BT_CTF_TRACES_PATH/succeed" +succeed_trace_dir="$BT_CTF_TRACES_PATH/1/succeed" expect_dir="$BT_TESTS_DATADIR/$this_dir_relative" test_query_metadata_info() { diff --git a/tests/plugins/src.ctf.fs/query/test_query_support_info.py b/tests/plugins/src.ctf.fs/query/test_query_support_info.py index 683312f5..0bc0a33a 100644 --- a/tests/plugins/src.ctf.fs/query/test_query_support_info.py +++ b/tests/plugins/src.ctf.fs/query/test_query_support_info.py @@ -9,7 +9,7 @@ import unittest import bt2 session_rotation_trace_path = os.path.join( - os.environ["BT_CTF_TRACES_PATH"], "succeed", "session-rotation" + os.environ["BT_CTF_TRACES_PATH"], "1", "succeed", "session-rotation" ) diff --git a/tests/plugins/src.ctf.fs/query/test_query_trace_info.py b/tests/plugins/src.ctf.fs/query/test_query_trace_info.py index 18a17120..1d688013 100644 --- a/tests/plugins/src.ctf.fs/query/test_query_trace_info.py +++ b/tests/plugins/src.ctf.fs/query/test_query_trace_info.py @@ -23,7 +23,7 @@ class QueryTraceInfoClockOffsetTestCase(unittest.TestCase): self._fs = ctf.source_component_classes["fs"] self._inputs = [ - os.path.join(test_ctf_traces_path, "intersection", "3eventsintersect") + os.path.join(test_ctf_traces_path, "1", "intersection", "3eventsintersect") ] def _check(self, trace, offset): @@ -127,7 +127,7 @@ class QueryTraceInfoPortNameTestCase(unittest.TestCase): { "inputs": [ os.path.join( - test_ctf_traces_path, "intersection", "3eventsintersect" + test_ctf_traces_path, "1", "intersection", "3eventsintersect" ) ] }, @@ -135,10 +135,10 @@ class QueryTraceInfoPortNameTestCase(unittest.TestCase): if os.environ["BT_TESTS_OS_TYPE"] == "mingw": os_stream_path = ( - "\\tests\\data\\ctf-traces\\intersection\\3eventsintersect\\" + "\\tests\\data\\ctf-traces\\1\\intersection\\3eventsintersect\\" ) else: - os_stream_path = "/tests/data/ctf-traces/intersection/3eventsintersect/" + os_stream_path = "/tests/data/ctf-traces/1/intersection/3eventsintersect/" self.assertEqual(len(res), 1) trace = res[0] @@ -161,13 +161,19 @@ class QueryTraceInfoPortNameTestCase(unittest.TestCase): res = bt2.QueryExecutor( self._fs, "babeltrace.trace-infos", - {"inputs": [os.path.join(test_ctf_traces_path, "succeed", "succeed1")]}, + { + "inputs": [ + os.path.join(test_ctf_traces_path, "1", "succeed", "succeed1") + ] + }, ).query() if os.environ["BT_TESTS_OS_TYPE"] == "mingw": - os_stream_path = "\\tests\\data\\ctf-traces\\succeed\\succeed1\\dummystream" + os_stream_path = ( + "\\tests\\data\\ctf-traces\\1\\succeed\\succeed1\\dummystream" + ) else: - os_stream_path = "/tests/data/ctf-traces/succeed/succeed1/dummystream" + os_stream_path = "/tests/data/ctf-traces/1/succeed/succeed1/dummystream" self.assertEqual(len(res), 1) trace = res[0] @@ -195,7 +201,11 @@ class QueryTraceInfoRangeTestCase(unittest.TestCase): res = bt2.QueryExecutor( self._fs, "babeltrace.trace-infos", - {"inputs": [os.path.join(test_ctf_traces_path, "succeed", "succeed1")]}, + { + "inputs": [ + os.path.join(test_ctf_traces_path, "1", "succeed", "succeed1") + ] + }, ).query() self.assertEqual(len(res), 1) @@ -214,6 +224,7 @@ class QueryTraceInfoRangeTestCase(unittest.TestCase): "inputs": [ os.path.join( test_ctf_traces_path, + "1", "succeed", "lttng-tracefile-rotation", "kernel", @@ -248,7 +259,7 @@ class QueryTraceInfoPacketTimestampQuirksTestCase(unittest.TestCase): def setUp(self): ctf = bt2.find_plugin("ctf") self._fs = ctf.source_component_classes["fs"] - self._path = os.path.join(test_ctf_traces_path, "succeed") + self._path = os.path.join(test_ctf_traces_path, "1", "succeed") def _test_lttng_quirks(self, trace_name): res = bt2.QueryExecutor( diff --git a/tests/plugins/src.ctf.fs/succeed/test-succeed.sh b/tests/plugins/src.ctf.fs/succeed/test-succeed.sh index 5a00601c..b0ac4c0e 100755 --- a/tests/plugins/src.ctf.fs/succeed/test-succeed.sh +++ b/tests/plugins/src.ctf.fs/succeed/test-succeed.sh @@ -8,7 +8,7 @@ # This test validates that a `src.ctf.fs` component successfully reads # specific CTF traces and creates the expected messages. # -# Such CTF traces to open either exist (in `tests/ctf-traces/succeed`) +# Such CTF traces to open either exist (in `tests/ctf-traces/1/succeed`) # or are generated by this test using local trace generators. SH_TAP=1 @@ -24,7 +24,7 @@ source "$UTILSSH" this_dir_relative="plugins/src.ctf.fs/succeed" this_dir_build="$BT_TESTS_BUILDDIR/$this_dir_relative" -succeed_trace_dir="$BT_CTF_TRACES_PATH/succeed" +succeed_trace_dir="$BT_CTF_TRACES_PATH/1/succeed" expect_dir="$BT_TESTS_DATADIR/$this_dir_relative" test_ctf_common_details_args=("-p" "with-trace-name=no,with-stream-name=no") diff --git a/tests/plugins/src.ctf.fs/test-deterministic-ordering.sh b/tests/plugins/src.ctf.fs/test-deterministic-ordering.sh index e2cb9cd1..b9dab61c 100755 --- a/tests/plugins/src.ctf.fs/test-deterministic-ordering.sh +++ b/tests/plugins/src.ctf.fs/test-deterministic-ordering.sh @@ -37,7 +37,7 @@ fi # shellcheck source=../../utils/utils.sh source "$UTILSSH" -traces_dir="${BT_CTF_TRACES_PATH}/deterministic-ordering" +traces_dir="${BT_CTF_TRACES_PATH}/1/deterministic-ordering" trace_a_corrupted="${traces_dir}/a-corrupted" trace_b_not_corrupted="${traces_dir}/b-not-corrupted" trace_c_corrupted="${traces_dir}/c-corrupted" diff --git a/tests/plugins/src.ctf.lttng-live/test-live.sh b/tests/plugins/src.ctf.lttng-live/test-live.sh index c53132e7..e77f2711 100755 --- a/tests/plugins/src.ctf.lttng-live/test-live.sh +++ b/tests/plugins/src.ctf.lttng-live/test-live.sh @@ -303,7 +303,7 @@ test_compare_to_ctf_fs() { expected_stdout="$(mktemp -t test-live-compare-stdout-expected.XXXXXX)" expected_stderr="$(mktemp -t test-live-compare-stderr-expected.XXXXXX)" - bt_cli "$expected_stdout" "$expected_stderr" "${trace_dir}/succeed/multi-domains" -c sink.text.details --params "with-trace-name=false,with-stream-name=false" + bt_cli "$expected_stdout" "$expected_stderr" "${trace_dir}/1/succeed/multi-domains" -c sink.text.details --params "with-trace-name=false,with-stream-name=false" bt_remove_cr "${expected_stdout}" bt_remove_cr "${expected_stderr}" @@ -392,7 +392,7 @@ test_stored_values() { tmp_dir=$(mktemp -d -t 'test-stored-value.XXXXXXX') # Generate test trace. - bt_gen_mctf_trace "${trace_dir}/live/stored-values.mctf" "$tmp_dir/stored-values" + bt_gen_mctf_trace "${trace_dir}/1/live/stored-values.mctf" "$tmp_dir/stored-values" run_test "$test_text" "$cli_args_template" "$expected_stdout" \ "$expected_stderr" "$tmp_dir" "${server_args[@]}" @@ -414,8 +414,8 @@ test_live_new_stream_during_inactivity() { tmp_dir=$(mktemp -d -t 'test-new-streams.XXXXXXX') # Generate test trace. - bt_gen_mctf_trace "${trace_dir}/live/new-streams/first-trace.mctf" "$tmp_dir/first-trace" - bt_gen_mctf_trace "${trace_dir}/live/new-streams/second-trace.mctf" "$tmp_dir/second-trace" + bt_gen_mctf_trace "${trace_dir}/1/live/new-streams/first-trace.mctf" "$tmp_dir/first-trace" + bt_gen_mctf_trace "${trace_dir}/1/live/new-streams/second-trace.mctf" "$tmp_dir/second-trace" run_test "$test_text" "$cli_args_template" "$expected_stdout" \ "$expected_stderr" "$tmp_dir" "${server_args[@]}"