From 54d785facc63ded43f23e60b8acb46250d82cfbe Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Fri, 20 Sep 2019 05:18:36 -0400 Subject: [PATCH] Add basic `sink.text.details` tests This patch adds very basic `sink.text.details` tests to at least keep track of the generated text's format. The tests test each initialization parameter individually, and some combined with `compact=yes`. As of this patch, all tests pass `with-stream-name=no` to initialize the `sink.text.details` component because the `src.ctf.fs` component uses absolute paths to set stream names and this is not compatible with static expectation files. Future tests should use a custom source to check how `sink.text.details` writes the stream name property. Signed-off-by: Philippe Proulx Change-Id: I79c4956e5d67dd922130443992de9daef2974f4e Reviewed-on: https://review.lttng.org/c/babeltrace/+/2075 CI-Build: Simon Marchi Tested-by: jenkins Reviewed-by: Simon Marchi --- tests/Makefile.am | 4 +- .../default-compact-without-metadata.expect | 52 ++ .../default-compact-without-time.expect | 79 +++ .../succeed/default-compact.expect | 79 +++ .../succeed/default-without-metadata.expect | 467 +++++++++++++++++ .../succeed/default-without-names.expect | 494 ++++++++++++++++++ .../succeed/default-without-time.expect | 442 ++++++++++++++++ .../succeed/default-without-trace-name.expect | 494 ++++++++++++++++++ .../succeed/default-without-uuid.expect | 485 +++++++++++++++++ .../sink.text.details/succeed/default.expect | 494 ++++++++++++++++++ .../succeed/no-packet-context.expect | 39 ++ .../sink.text.details/succeed/test_succeed | 70 +++ 12 files changed, 3198 insertions(+), 1 deletion(-) create mode 100644 tests/data/plugins/sink.text.details/succeed/default-compact-without-metadata.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-compact-without-time.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-compact.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-without-metadata.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-without-names.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-without-time.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-without-trace-name.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default-without-uuid.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/default.expect create mode 100644 tests/data/plugins/sink.text.details/succeed/no-packet-context.expect create mode 100755 tests/plugins/sink.text.details/succeed/test_succeed diff --git a/tests/Makefile.am b/tests/Makefile.am index 73d96ae5..6142a03b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -42,6 +42,7 @@ dist_check_SCRIPTS = \ cli/test_trace_copy \ cli/test_trace_read \ cli/test_trimmer \ + plugins/sink.text.details/succeed/test_succeed \ plugins/src.ctf.lttng-live/test_live \ python-plugin-provider/bt_plugin_test_python_plugin_provider.py \ python-plugin-provider/test_python_plugin_provider \ @@ -84,7 +85,8 @@ endif TESTS_PLUGINS = \ plugins/src.ctf.fs/succeed/test_succeed \ - plugins/sink.ctf.fs/succeed/test_succeed + plugins/sink.ctf.fs/succeed/test_succeed \ + plugins/sink.text.details/succeed/test_succeed if !ENABLE_BUILT_IN_PLUGINS if ENABLE_PYTHON_BINDINGS diff --git a/tests/data/plugins/sink.text.details/succeed/default-compact-without-metadata.expect b/tests/data/plugins/sink.text.details/succeed/default-compact-without-metadata.expect new file mode 100644 index 00000000..38552c9f --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-compact-without-metadata.expect @@ -0,0 +1,52 @@ +[Unknown] {0 0 0} Stream beginning +[Unknown] {0 0 1} Stream beginning +[Unknown] {0 0 2} Stream beginning +[Unknown] {0 0 3} Stream beginning +[Unknown] {0 0 4} Stream beginning +[Unknown] {0 0 5} Stream beginning +[Unknown] {0 0 6} Stream beginning +[Unknown] {0 0 7} Stream beginning +[1,967,630,439,868 1,351,532,897,576,264,191] {0 0 0} Packet beginning +[1,967,630,514,179 1,351,532,897,576,338,502] {0 0 1} Packet beginning +[1,967,630,597,709 1,351,532,897,576,422,032] {0 0 2} Packet beginning +[1,967,630,652,186 1,351,532,897,576,476,509] {0 0 3} Packet beginning +[1,967,630,732,363 1,351,532,897,576,556,686] {0 0 4} Packet beginning +[1,967,630,781,252 1,351,532,897,576,605,575] {0 0 5} Packet beginning +[1,967,630,859,475 1,351,532,897,576,683,798] {0 0 6} Packet beginning +[1,967,630,908,922 1,351,532,897,576,733,245] {0 0 7} Packet beginning +[1,967,640,734,196 1,351,532,897,586,558,519] {0 0 2} Event `heartbeat:msg` (0) +[1,967,640,810,463 1,351,532,897,586,634,786] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,205,206 1,351,532,897,587,029,529] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,294,603 1,351,532,897,587,118,926] {0 0 2} Event `heartbeat:msg` (0) +[1,967,641,618,387 1,351,532,897,587,442,710] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,825,676 1,351,532,897,587,649,999] {0 0 2} Event `heartbeat:msg` (0) +[1,967,642,034,082 1,351,532,897,587,858,405] {0 0 4} Event `heartbeat:msg` (0) +[1,967,642,404,241 1,351,532,897,588,228,564] {0 0 4} Event `heartbeat:msg` (0) +[1,967,642,855,695 1,351,532,897,588,680,018] {0 0 2} Event `heartbeat:msg` (0) +[1,967,642,893,409 1,351,532,897,588,717,732] {0 0 4} Event `heartbeat:msg` (0) +[1,967,643,224,457 1,351,532,897,589,048,780] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,244,013 1,351,532,897,589,068,336] {0 0 4} Event `heartbeat:msg` (0) +[1,967,643,554,667 1,351,532,897,589,378,990] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,897,727 1,351,532,897,589,722,050] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,936,280 1,351,532,897,589,760,603] {0 0 4} Event `heartbeat:msg` (0) +[1,967,644,416,509 1,351,532,897,590,240,832] {0 0 2} Event `heartbeat:msg` (0) +[1,967,644,443,328 1,351,532,897,590,267,651] {0 0 4} Event `heartbeat:msg` (0) +[1,967,644,995,912 1,351,532,897,590,820,235] {0 0 6} Event `heartbeat:msg` (0) +[1,967,645,166,884 1,351,532,897,590,991,207] {0 0 2} Event `heartbeat:msg` (0) +[1,967,645,506,871 1,351,532,897,591,331,194] {0 0 2} Event `heartbeat:msg` (0) +[1,967,647,072,992 1,351,532,897,592,897,315] {0 0 0} Packet end +[Unknown] {0 0 0} Stream end +[1,967,651,262,073 1,351,532,897,597,086,396] {0 0 5} Packet end +[Unknown] {0 0 5} Stream end +[1,967,651,296,715 1,351,532,897,597,121,038] {0 0 3} Packet end +[Unknown] {0 0 3} Stream end +[1,967,651,374,099 1,351,532,897,597,198,422] {0 0 2} Packet end +[Unknown] {0 0 2} Stream end +[1,967,651,624,689 1,351,532,897,597,449,012] {0 0 1} Packet end +[Unknown] {0 0 1} Stream end +[1,967,652,165,820 1,351,532,897,597,990,143] {0 0 4} Packet end +[Unknown] {0 0 4} Stream end +[1,967,655,287,446 1,351,532,897,601,111,769] {0 0 6} Packet end +[Unknown] {0 0 6} Stream end +[1,967,655,586,926 1,351,532,897,601,411,249] {0 0 7} Packet end +[Unknown] {0 0 7} Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-compact-without-time.expect b/tests/data/plugins/sink.text.details/succeed/default-compact-without-time.expect new file mode 100644 index 00000000..562afc9f --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-compact-without-time.expect @@ -0,0 +1,79 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +{0 0 0} Stream beginning +{0 0 1} Stream beginning +{0 0 2} Stream beginning +{0 0 3} Stream beginning +{0 0 4} Stream beginning +{0 0 5} Stream beginning +{0 0 6} Stream beginning +{0 0 7} Stream beginning +{0 0 0} Packet beginning +{0 0 1} Packet beginning +{0 0 2} Packet beginning +{0 0 3} Packet beginning +{0 0 4} Packet beginning +{0 0 5} Packet beginning +{0 0 6} Packet beginning +{0 0 7} Packet beginning +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 4} Event `heartbeat:msg` (0) +{0 0 6} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 2} Event `heartbeat:msg` (0) +{0 0 0} Packet end +{0 0 0} Stream end +{0 0 5} Packet end +{0 0 5} Stream end +{0 0 3} Packet end +{0 0 3} Stream end +{0 0 2} Packet end +{0 0 2} Stream end +{0 0 1} Packet end +{0 0 1} Stream end +{0 0 4} Packet end +{0 0 4} Stream end +{0 0 6} Packet end +{0 0 6} Stream end +{0 0 7} Packet end +{0 0 7} Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-compact.expect b/tests/data/plugins/sink.text.details/succeed/default-compact.expect new file mode 100644 index 00000000..ddb4d12b --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-compact.expect @@ -0,0 +1,79 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +[Unknown] {0 0 0} Stream beginning +[Unknown] {0 0 1} Stream beginning +[Unknown] {0 0 2} Stream beginning +[Unknown] {0 0 3} Stream beginning +[Unknown] {0 0 4} Stream beginning +[Unknown] {0 0 5} Stream beginning +[Unknown] {0 0 6} Stream beginning +[Unknown] {0 0 7} Stream beginning +[1,967,630,439,868 1,351,532,897,576,264,191] {0 0 0} Packet beginning +[1,967,630,514,179 1,351,532,897,576,338,502] {0 0 1} Packet beginning +[1,967,630,597,709 1,351,532,897,576,422,032] {0 0 2} Packet beginning +[1,967,630,652,186 1,351,532,897,576,476,509] {0 0 3} Packet beginning +[1,967,630,732,363 1,351,532,897,576,556,686] {0 0 4} Packet beginning +[1,967,630,781,252 1,351,532,897,576,605,575] {0 0 5} Packet beginning +[1,967,630,859,475 1,351,532,897,576,683,798] {0 0 6} Packet beginning +[1,967,630,908,922 1,351,532,897,576,733,245] {0 0 7} Packet beginning +[1,967,640,734,196 1,351,532,897,586,558,519] {0 0 2} Event `heartbeat:msg` (0) +[1,967,640,810,463 1,351,532,897,586,634,786] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,205,206 1,351,532,897,587,029,529] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,294,603 1,351,532,897,587,118,926] {0 0 2} Event `heartbeat:msg` (0) +[1,967,641,618,387 1,351,532,897,587,442,710] {0 0 4} Event `heartbeat:msg` (0) +[1,967,641,825,676 1,351,532,897,587,649,999] {0 0 2} Event `heartbeat:msg` (0) +[1,967,642,034,082 1,351,532,897,587,858,405] {0 0 4} Event `heartbeat:msg` (0) +[1,967,642,404,241 1,351,532,897,588,228,564] {0 0 4} Event `heartbeat:msg` (0) +[1,967,642,855,695 1,351,532,897,588,680,018] {0 0 2} Event `heartbeat:msg` (0) +[1,967,642,893,409 1,351,532,897,588,717,732] {0 0 4} Event `heartbeat:msg` (0) +[1,967,643,224,457 1,351,532,897,589,048,780] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,244,013 1,351,532,897,589,068,336] {0 0 4} Event `heartbeat:msg` (0) +[1,967,643,554,667 1,351,532,897,589,378,990] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,897,727 1,351,532,897,589,722,050] {0 0 2} Event `heartbeat:msg` (0) +[1,967,643,936,280 1,351,532,897,589,760,603] {0 0 4} Event `heartbeat:msg` (0) +[1,967,644,416,509 1,351,532,897,590,240,832] {0 0 2} Event `heartbeat:msg` (0) +[1,967,644,443,328 1,351,532,897,590,267,651] {0 0 4} Event `heartbeat:msg` (0) +[1,967,644,995,912 1,351,532,897,590,820,235] {0 0 6} Event `heartbeat:msg` (0) +[1,967,645,166,884 1,351,532,897,590,991,207] {0 0 2} Event `heartbeat:msg` (0) +[1,967,645,506,871 1,351,532,897,591,331,194] {0 0 2} Event `heartbeat:msg` (0) +[1,967,647,072,992 1,351,532,897,592,897,315] {0 0 0} Packet end +[Unknown] {0 0 0} Stream end +[1,967,651,262,073 1,351,532,897,597,086,396] {0 0 5} Packet end +[Unknown] {0 0 5} Stream end +[1,967,651,296,715 1,351,532,897,597,121,038] {0 0 3} Packet end +[Unknown] {0 0 3} Stream end +[1,967,651,374,099 1,351,532,897,597,198,422] {0 0 2} Packet end +[Unknown] {0 0 2} Stream end +[1,967,651,624,689 1,351,532,897,597,449,012] {0 0 1} Packet end +[Unknown] {0 0 1} Stream end +[1,967,652,165,820 1,351,532,897,597,990,143] {0 0 4} Packet end +[Unknown] {0 0 4} Stream end +[1,967,655,287,446 1,351,532,897,601,111,769] {0 0 6} Packet end +[Unknown] {0 0 6} Stream end +[1,967,655,586,926 1,351,532,897,601,411,249] {0 0 7} Packet end +[Unknown] {0 0 7} Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-without-metadata.expect b/tests/data/plugins/sink.text.details/succeed/default-without-metadata.expect new file mode 100644 index 00000000..59381000 --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-without-metadata.expect @@ -0,0 +1,467 @@ +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[1,967,630,439,868 cycles, 1,351,532,897,576,264,191 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +[1,967,630,514,179 cycles, 1,351,532,897,576,338,502 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +[1,967,630,597,709 cycles, 1,351,532,897,576,422,032 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +[1,967,630,652,186 cycles, 1,351,532,897,576,476,509 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +[1,967,630,732,363 cycles, 1,351,532,897,576,556,686 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +[1,967,630,781,252 cycles, 1,351,532,897,576,605,575 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +[1,967,630,859,475 cycles, 1,351,532,897,576,683,798 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +[1,967,630,908,922 cycles, 1,351,532,897,576,733,245 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +[1,967,640,734,196 cycles, 1,351,532,897,586,558,519 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,640,810,463 cycles, 1,351,532,897,586,634,786 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,205,206 cycles, 1,351,532,897,587,029,529 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,294,603 cycles, 1,351,532,897,587,118,926 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,618,387 cycles, 1,351,532,897,587,442,710 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,825,676 cycles, 1,351,532,897,587,649,999 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,034,082 cycles, 1,351,532,897,587,858,405 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,404,241 cycles, 1,351,532,897,588,228,564 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,855,695 cycles, 1,351,532,897,588,680,018 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,893,409 cycles, 1,351,532,897,588,717,732 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,224,457 cycles, 1,351,532,897,589,048,780 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,244,013 cycles, 1,351,532,897,589,068,336 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,554,667 cycles, 1,351,532,897,589,378,990 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,897,727 cycles, 1,351,532,897,589,722,050 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,936,280 cycles, 1,351,532,897,589,760,603 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,416,509 cycles, 1,351,532,897,590,240,832 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,443,328 cycles, 1,351,532,897,590,267,651 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,995,912 cycles, 1,351,532,897,590,820,235 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,166,884 cycles, 1,351,532,897,590,991,207 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,506,871 cycles, 1,351,532,897,591,331,194 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,647,072,992 cycles, 1,351,532,897,592,897,315 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +[1,967,651,262,073 cycles, 1,351,532,897,597,086,396 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +[1,967,651,296,715 cycles, 1,351,532,897,597,121,038 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +[1,967,651,374,099 cycles, 1,351,532,897,597,198,422 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +[1,967,651,624,689 cycles, 1,351,532,897,597,449,012 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +[1,967,652,165,820 cycles, 1,351,532,897,597,990,143 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +[1,967,655,287,446 cycles, 1,351,532,897,601,111,769 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +[1,967,655,586,926 cycles, 1,351,532,897,601,411,249 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-without-names.expect b/tests/data/plugins/sink.text.details/succeed/default-without-names.expect new file mode 100644 index 00000000..783e09db --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-without-names.expect @@ -0,0 +1,494 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[1,967,630,439,868 cycles, 1,351,532,897,576,264,191 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +[1,967,630,514,179 cycles, 1,351,532,897,576,338,502 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +[1,967,630,597,709 cycles, 1,351,532,897,576,422,032 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +[1,967,630,652,186 cycles, 1,351,532,897,576,476,509 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +[1,967,630,732,363 cycles, 1,351,532,897,576,556,686 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +[1,967,630,781,252 cycles, 1,351,532,897,576,605,575 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +[1,967,630,859,475 cycles, 1,351,532,897,576,683,798 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +[1,967,630,908,922 cycles, 1,351,532,897,576,733,245 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +[1,967,640,734,196 cycles, 1,351,532,897,586,558,519 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,640,810,463 cycles, 1,351,532,897,586,634,786 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,205,206 cycles, 1,351,532,897,587,029,529 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,294,603 cycles, 1,351,532,897,587,118,926 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,618,387 cycles, 1,351,532,897,587,442,710 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,825,676 cycles, 1,351,532,897,587,649,999 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,034,082 cycles, 1,351,532,897,587,858,405 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,404,241 cycles, 1,351,532,897,588,228,564 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,855,695 cycles, 1,351,532,897,588,680,018 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,893,409 cycles, 1,351,532,897,588,717,732 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,224,457 cycles, 1,351,532,897,589,048,780 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,244,013 cycles, 1,351,532,897,589,068,336 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,554,667 cycles, 1,351,532,897,589,378,990 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,897,727 cycles, 1,351,532,897,589,722,050 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,936,280 cycles, 1,351,532,897,589,760,603 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,416,509 cycles, 1,351,532,897,590,240,832 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,443,328 cycles, 1,351,532,897,590,267,651 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,995,912 cycles, 1,351,532,897,590,820,235 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,166,884 cycles, 1,351,532,897,590,991,207 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,506,871 cycles, 1,351,532,897,591,331,194 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,647,072,992 cycles, 1,351,532,897,592,897,315 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +[1,967,651,262,073 cycles, 1,351,532,897,597,086,396 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +[1,967,651,296,715 cycles, 1,351,532,897,597,121,038 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +[1,967,651,374,099 cycles, 1,351,532,897,597,198,422 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +[1,967,651,624,689 cycles, 1,351,532,897,597,449,012 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +[1,967,652,165,820 cycles, 1,351,532,897,597,990,143 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +[1,967,655,287,446 cycles, 1,351,532,897,601,111,769 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +[1,967,655,586,926 cycles, 1,351,532,897,601,411,249 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-without-time.expect b/tests/data/plugins/sink.text.details/succeed/default-without-time.expect new file mode 100644 index 00000000..8a304439 --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-without-time.expect @@ -0,0 +1,442 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-without-trace-name.expect b/tests/data/plugins/sink.text.details/succeed/default-without-trace-name.expect new file mode 100644 index 00000000..783e09db --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-without-trace-name.expect @@ -0,0 +1,494 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[1,967,630,439,868 cycles, 1,351,532,897,576,264,191 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +[1,967,630,514,179 cycles, 1,351,532,897,576,338,502 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +[1,967,630,597,709 cycles, 1,351,532,897,576,422,032 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +[1,967,630,652,186 cycles, 1,351,532,897,576,476,509 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +[1,967,630,732,363 cycles, 1,351,532,897,576,556,686 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +[1,967,630,781,252 cycles, 1,351,532,897,576,605,575 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +[1,967,630,859,475 cycles, 1,351,532,897,576,683,798 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +[1,967,630,908,922 cycles, 1,351,532,897,576,733,245 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +[1,967,640,734,196 cycles, 1,351,532,897,586,558,519 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,640,810,463 cycles, 1,351,532,897,586,634,786 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,205,206 cycles, 1,351,532,897,587,029,529 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,294,603 cycles, 1,351,532,897,587,118,926 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,618,387 cycles, 1,351,532,897,587,442,710 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,825,676 cycles, 1,351,532,897,587,649,999 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,034,082 cycles, 1,351,532,897,587,858,405 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,404,241 cycles, 1,351,532,897,588,228,564 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,855,695 cycles, 1,351,532,897,588,680,018 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,893,409 cycles, 1,351,532,897,588,717,732 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,224,457 cycles, 1,351,532,897,589,048,780 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,244,013 cycles, 1,351,532,897,589,068,336 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,554,667 cycles, 1,351,532,897,589,378,990 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,897,727 cycles, 1,351,532,897,589,722,050 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,936,280 cycles, 1,351,532,897,589,760,603 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,416,509 cycles, 1,351,532,897,590,240,832 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,443,328 cycles, 1,351,532,897,590,267,651 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,995,912 cycles, 1,351,532,897,590,820,235 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,166,884 cycles, 1,351,532,897,590,991,207 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,506,871 cycles, 1,351,532,897,591,331,194 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,647,072,992 cycles, 1,351,532,897,592,897,315 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +[1,967,651,262,073 cycles, 1,351,532,897,597,086,396 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +[1,967,651,296,715 cycles, 1,351,532,897,597,121,038 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +[1,967,651,374,099 cycles, 1,351,532,897,597,198,422 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +[1,967,651,624,689 cycles, 1,351,532,897,597,449,012 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +[1,967,652,165,820 cycles, 1,351,532,897,597,990,143 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +[1,967,655,287,446 cycles, 1,351,532,897,601,111,769 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +[1,967,655,586,926 cycles, 1,351,532,897,601,411,249 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default-without-uuid.expect b/tests/data/plugins/sink.text.details/succeed/default-without-uuid.expect new file mode 100644 index 00000000..6aa76778 --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default-without-uuid.expect @@ -0,0 +1,485 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace `the-trace`: + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[1,967,630,439,868 cycles, 1,351,532,897,576,264,191 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +[1,967,630,514,179 cycles, 1,351,532,897,576,338,502 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +[1,967,630,597,709 cycles, 1,351,532,897,576,422,032 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +[1,967,630,652,186 cycles, 1,351,532,897,576,476,509 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +[1,967,630,732,363 cycles, 1,351,532,897,576,556,686 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +[1,967,630,781,252 cycles, 1,351,532,897,576,605,575 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +[1,967,630,859,475 cycles, 1,351,532,897,576,683,798 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +[1,967,630,908,922 cycles, 1,351,532,897,576,733,245 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +[1,967,640,734,196 cycles, 1,351,532,897,586,558,519 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,640,810,463 cycles, 1,351,532,897,586,634,786 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,205,206 cycles, 1,351,532,897,587,029,529 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,294,603 cycles, 1,351,532,897,587,118,926 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,618,387 cycles, 1,351,532,897,587,442,710 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,825,676 cycles, 1,351,532,897,587,649,999 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,034,082 cycles, 1,351,532,897,587,858,405 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,404,241 cycles, 1,351,532,897,588,228,564 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,855,695 cycles, 1,351,532,897,588,680,018 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,893,409 cycles, 1,351,532,897,588,717,732 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,224,457 cycles, 1,351,532,897,589,048,780 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,244,013 cycles, 1,351,532,897,589,068,336 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,554,667 cycles, 1,351,532,897,589,378,990 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,897,727 cycles, 1,351,532,897,589,722,050 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,936,280 cycles, 1,351,532,897,589,760,603 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,416,509 cycles, 1,351,532,897,590,240,832 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,443,328 cycles, 1,351,532,897,590,267,651 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,995,912 cycles, 1,351,532,897,590,820,235 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,166,884 cycles, 1,351,532,897,590,991,207 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,506,871 cycles, 1,351,532,897,591,331,194 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,647,072,992 cycles, 1,351,532,897,592,897,315 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +[1,967,651,262,073 cycles, 1,351,532,897,597,086,396 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +[1,967,651,296,715 cycles, 1,351,532,897,597,121,038 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +[1,967,651,374,099 cycles, 1,351,532,897,597,198,422 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +[1,967,651,624,689 cycles, 1,351,532,897,597,449,012 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +[1,967,652,165,820 cycles, 1,351,532,897,597,990,143 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +[1,967,655,287,446 cycles, 1,351,532,897,601,111,769 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +[1,967,655,586,926 cycles, 1,351,532,897,601,411,249 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/default.expect b/tests/data/plugins/sink.text.details/succeed/default.expect new file mode 100644 index 00000000..82b58c75 --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/default.expect @@ -0,0 +1,494 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: Yes + Packets have end default clock snapshot: Yes + Supports discarded events: Yes + Discarded events have default clock snapshots: Yes + Supports discarded packets: No + Default clock class: + Name: monotonic + Description: Monotonic Clock + Frequency (Hz): 1,000,000,000 + Precision (cycles): 0 + Offset (s): 1,351,530,929 + Offset (cycles): 945,824,323 + Origin is Unix epoch: Yes + UUID: c19b5ac9-b8e6-4f78-be95-a605d04e34c6 + Packet context field class: Structure (1 member): + cpu_id: Unsigned integer (32-bit, Base 10) + Event common context field class: Structure (2 members): + vtid: Signed integer (32-bit, Base 10) + vpid: Signed integer (32-bit, Base 10) + Event class `heartbeat:msg` (ID 0): + Log level: Debug (line) + Payload field class: Structure (1 member): + msg: String + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream beginning: + Trace `the-trace`: + UUID: 624b19d9-19cd-4eae-bab8-8342e1b96a5d + Environment (7 entries): + domain: ust + procname: wk-heartbeat + tracer_major: 2 + tracer_minor: 0 + tracer_name: lttng-ust + tracer_patchlevel: 2 + vpid: 3208 + Stream (ID 0, Class ID 0) + Stream (ID 1, Class ID 0) + Stream (ID 2, Class ID 0) + Stream (ID 3, Class ID 0) + Stream (ID 4, Class ID 0) + Stream (ID 5, Class ID 0) + Stream (ID 6, Class ID 0) + Stream (ID 7, Class ID 0) + +[1,967,630,439,868 cycles, 1,351,532,897,576,264,191 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning: + Context: + cpu_id: 0 + +[1,967,630,514,179 cycles, 1,351,532,897,576,338,502 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet beginning: + Context: + cpu_id: 1 + +[1,967,630,597,709 cycles, 1,351,532,897,576,422,032 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet beginning: + Context: + cpu_id: 2 + +[1,967,630,652,186 cycles, 1,351,532,897,576,476,509 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet beginning: + Context: + cpu_id: 3 + +[1,967,630,732,363 cycles, 1,351,532,897,576,556,686 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet beginning: + Context: + cpu_id: 4 + +[1,967,630,781,252 cycles, 1,351,532,897,576,605,575 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet beginning: + Context: + cpu_id: 5 + +[1,967,630,859,475 cycles, 1,351,532,897,576,683,798 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet beginning: + Context: + cpu_id: 6 + +[1,967,630,908,922 cycles, 1,351,532,897,576,733,245 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet beginning: + Context: + cpu_id: 7 + +[1,967,640,734,196 cycles, 1,351,532,897,586,558,519 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,640,810,463 cycles, 1,351,532,897,586,634,786 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,205,206 cycles, 1,351,532,897,587,029,529 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,294,603 cycles, 1,351,532,897,587,118,926 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,618,387 cycles, 1,351,532,897,587,442,710 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,641,825,676 cycles, 1,351,532,897,587,649,999 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,034,082 cycles, 1,351,532,897,587,858,405 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,404,241 cycles, 1,351,532,897,588,228,564 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,855,695 cycles, 1,351,532,897,588,680,018 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,642,893,409 cycles, 1,351,532,897,588,717,732 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,224,457 cycles, 1,351,532,897,589,048,780 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,244,013 cycles, 1,351,532,897,589,068,336 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,554,667 cycles, 1,351,532,897,589,378,990 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,897,727 cycles, 1,351,532,897,589,722,050 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,643,936,280 cycles, 1,351,532,897,589,760,603 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,416,509 cycles, 1,351,532,897,590,240,832 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,443,328 cycles, 1,351,532,897,590,267,651 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,644,995,912 cycles, 1,351,532,897,590,820,235 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3215 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,166,884 cycles, 1,351,532,897,590,991,207 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,645,506,871 cycles, 1,351,532,897,591,331,194 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Event `heartbeat:msg` (Class ID 0): + Common context: + vtid: 3214 + vpid: 3208 + Payload: + msg: heartbeat + +[1,967,647,072,992 cycles, 1,351,532,897,592,897,315 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end + +[1,967,651,262,073 cycles, 1,351,532,897,597,086,396 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 5} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 5} +Stream end + +[1,967,651,296,715 cycles, 1,351,532,897,597,121,038 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 3} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 3} +Stream end + +[1,967,651,374,099 cycles, 1,351,532,897,597,198,422 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 2} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 2} +Stream end + +[1,967,651,624,689 cycles, 1,351,532,897,597,449,012 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 1} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 1} +Stream end + +[1,967,652,165,820 cycles, 1,351,532,897,597,990,143 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 4} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 4} +Stream end + +[1,967,655,287,446 cycles, 1,351,532,897,601,111,769 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 6} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 6} +Stream end + +[1,967,655,586,926 cycles, 1,351,532,897,601,411,249 ns from origin] +{Trace 0, Stream class ID 0, Stream ID 7} +Packet end + +[Unknown] +{Trace 0, Stream class ID 0, Stream ID 7} +Stream end diff --git a/tests/data/plugins/sink.text.details/succeed/no-packet-context.expect b/tests/data/plugins/sink.text.details/succeed/no-packet-context.expect new file mode 100644 index 00000000..7ea2c5a5 --- /dev/null +++ b/tests/data/plugins/sink.text.details/succeed/no-packet-context.expect @@ -0,0 +1,39 @@ +Trace class: + Stream class (ID 0): + Supports packets: Yes + Packets have beginning default clock snapshot: No + Packets have end default clock snapshot: No + Supports discarded events: No + Supports discarded packets: No + Event class `ev` (ID 0): + Payload field class: Structure (1 member): + s: String + +{Trace 0, Stream class ID 0, Stream ID 0} +Stream beginning: + Trace `the-trace`: + Stream (ID 0, Class ID 0) + +{Trace 0, Stream class ID 0, Stream ID 0} +Packet beginning + +{Trace 0, Stream class ID 0, Stream ID 0} +Event `ev` (Class ID 0): + Payload: + s: hello + +{Trace 0, Stream class ID 0, Stream ID 0} +Event `ev` (Class ID 0): + Payload: + s: how are you? + +{Trace 0, Stream class ID 0, Stream ID 0} +Event `ev` (Class ID 0): + Payload: + s: I'm fine, you? + +{Trace 0, Stream class ID 0, Stream ID 0} +Packet end + +{Trace 0, Stream class ID 0, Stream ID 0} +Stream end diff --git a/tests/plugins/sink.text.details/succeed/test_succeed b/tests/plugins/sink.text.details/succeed/test_succeed new file mode 100755 index 00000000..ae4e77d4 --- /dev/null +++ b/tests/plugins/sink.text.details/succeed/test_succeed @@ -0,0 +1,70 @@ +#!/bin/bash +# +# Copyright (C) 2019 Philippe Proulx +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; only version 2 +# of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +SH_TAP=1 + +if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then + UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" +else + UTILSSH="$(dirname "$0")/../../../utils/utils.sh" +fi + +# shellcheck source=../../../utils/utils.sh +source "$UTILSSH" + +this_dir_relative="plugins/sink.text.details/succeed" +expect_dir="$BT_TESTS_DATADIR/$this_dir_relative" + +test_details() { + local test_name="$1" + local trace_name="$2" + shift 2 + local details_args=("$@") + local trace_dir="$BT_CTF_TRACES_PATH/succeed/$trace_name" + local expect_path="$expect_dir/$test_name.expect" + + bt_diff_cli "$expect_path" /dev/null \ + "$trace_dir" -p trace-name=the-trace \ + -c sink.text.details "${details_args[@]+${details_args[@]}}" + ok $? "'$test_name' test has the expected output" +} + +# This is used for the moment because the source is `src.ctf.fs` and +# such a component can make its stream names contain absolute paths. +test_details_no_stream_name() { + local test_name="$1" + local trace_name="$2" + shift 2 + local details_args=("$@") + + test_details "$test_name" "$trace_name" \ + "${details_args[@]+${details_args[@]}}" -p with-stream-name=no +} + +plan_tests 10 + +test_details_no_stream_name default wk-heartbeat-u +test_details_no_stream_name default-compact wk-heartbeat-u -p compact=yes +test_details_no_stream_name default-compact-without-metadata wk-heartbeat-u -p compact=yes,with-metadata=no +test_details_no_stream_name default-compact-without-time wk-heartbeat-u -p compact=yes,with-time=no +test_details_no_stream_name default-without-metadata wk-heartbeat-u -p with-metadata=no +test_details_no_stream_name default-without-names wk-heartbeat-u -p with-stream-name=no,with-trace-name=no,with-stream-class-name=no +test_details_no_stream_name default-without-time wk-heartbeat-u -p with-time=no +test_details_no_stream_name default-without-trace-name wk-heartbeat-u -p with-trace-name=no +test_details_no_stream_name default-without-uuid wk-heartbeat-u -p with-uuid=no +test_details_no_stream_name no-packet-context no-packet-context -- 2.34.1