[PATCH] CTF TSDL
Ravindra Meena
rmeena840 at gmail.com
Fri Jun 14 11:21:26 UTC 2019
---
misc/CTF/record-ctf.ref | 54 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 misc/CTF/record-ctf.ref
diff --git a/misc/CTF/record-ctf.ref b/misc/CTF/record-ctf.ref
new file mode 100644
index 0000000..a27757c
--- /dev/null
+++ b/misc/CTF/record-ctf.ref
@@ -0,0 +1,54 @@
+/* CTF 1.8 */
+
+typealias integer { size = 8; align = 8; signed = false; } := uint8_t;
+typealias integer { size = 16; align = 8; signed = false; } := uint16_t;
+typealias integer { size = 32; align = 8; signed = false; } := uint32_t;
+typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
+typealias integer { size = 5; align = 1; signed = false; } := uint5_t;
+typealias integer { size = 27; align = 1; signed = false; } := uint27_t;
+
+trace {
+ major = 1;
+ minor = 8;
+ byte_order = le;
+ packet.header := struct {
+ uint32_t magic;
+ uint32_t stream_id;
+ };
+};
+
+clock {
+ name = ctf_clock;
+ freq = 1000;
+ offset_s = 1421703448;
+};
+
+typealias integer {
+ size = 64;
+ map = clock.ctf_clock.value;
+} := ctf_clock_int_t;
+
+stream {
+ id = 0;
+ packet.context := struct {
+ ctf_clock_int_t timestamp;
+ uint32_t cpu;
+ uint32_t event;
+ uint64_t data;
+ };
+ event.header := struct {
+ uint32_t id;
+ ctf_clock_int_t timestamp;
+ };
+};
+
+event {
+ id = 0;
+ name = "ctf_event";
+ stream_id = 0;
+ fields := struct {
+ uint32_t a;
+ uint16_t b;
+ string c;
+ };
+};
--
2.7.4
More information about the devel
mailing list