Add test traces
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 15:35:17 +0000 (11:35 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 7 May 2011 15:35:17 +0000 (11:35 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/ctf-traces/fail/fail1/dummystream [new file with mode: 0644]
tests/ctf-traces/fail/fail1/metadata [new file with mode: 0644]
tests/ctf-traces/succeed/succeed1/dummystream [new file with mode: 0644]
tests/ctf-traces/succeed/succeed1/metadata [new file with mode: 0644]
tests/ctf-traces/succeed/succeed2/dummystream [new file with mode: 0644]
tests/ctf-traces/succeed/succeed2/metadata [new file with mode: 0644]

diff --git a/tests/ctf-traces/fail/fail1/dummystream b/tests/ctf-traces/fail/fail1/dummystream
new file mode 100644 (file)
index 0000000..87d8c06
Binary files /dev/null and b/tests/ctf-traces/fail/fail1/dummystream differ
diff --git a/tests/ctf-traces/fail/fail1/metadata b/tests/ctf-traces/fail/fail1/metadata
new file mode 100644 (file)
index 0000000..9e34537
--- /dev/null
@@ -0,0 +1,46 @@
+/* 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; } := 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  trace_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/ctf-traces/succeed/succeed1/dummystream b/tests/ctf-traces/succeed/succeed1/dummystream
new file mode 100644 (file)
index 0000000..53d735e
Binary files /dev/null and b/tests/ctf-traces/succeed/succeed1/dummystream differ
diff --git a/tests/ctf-traces/succeed/succeed1/metadata b/tests/ctf-traces/succeed/succeed1/metadata
new file mode 100644 (file)
index 0000000..c8cf5d2
--- /dev/null
@@ -0,0 +1,25 @@
+typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
+typealias integer { size = 32; align = 32; signed = false; } := uint32_t;
+
+trace {
+       major = 0;
+       minor = 1;
+       uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
+       byte_order = le;
+       packet.header := struct {
+               uint32_t magic;
+               uint8_t  trace_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/ctf-traces/succeed/succeed2/dummystream b/tests/ctf-traces/succeed/succeed2/dummystream
new file mode 100644 (file)
index 0000000..53d735e
Binary files /dev/null and b/tests/ctf-traces/succeed/succeed2/dummystream differ
diff --git a/tests/ctf-traces/succeed/succeed2/metadata b/tests/ctf-traces/succeed/succeed2/metadata
new file mode 100644 (file)
index 0000000..c8cf5d2
--- /dev/null
@@ -0,0 +1,25 @@
+typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
+typealias integer { size = 32; align = 32; signed = false; } := uint32_t;
+
+trace {
+       major = 0;
+       minor = 1;
+       uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564";
+       byte_order = le;
+       packet.header := struct {
+               uint32_t magic;
+               uint8_t  trace_uuid[16];
+       };
+};
+
+stream {
+       packet.context := struct {
+               uint32_t content_size;
+               uint32_t packet_size;
+       };
+};
+
+event {
+       name = string;
+       fields := struct { string str; };
+};
This page took 0.02665 seconds and 4 git commands to generate.