Add structure align() attribute, fix empty string support in definition paths
[babeltrace.git] / formats / ctf / metadata / ctf-test / succeed / ctf-embedded-1.txt
CommitLineData
3470ca79
MD
1trace {
2 major = 0;
55d7cf31 3 minor = 1;
3470ca79 4 uuid = "f816d884-6cea-11e0-ac7a-8f5f4e9f7724";
0f980a35 5 byte_order = be; /* Assuming big endian streams */
3470ca79
MD
6};
7
8/* Architecture with 32-bit pointers, 32-bit integers, 32-bit longs */
9
a030d084
MD
10typealias integer { size = 32; align = 32; signed = false; } := uint32_t;
11typealias integer { size = 64; align = 64; signed = false; } := uint64_t;
12typealias integer { size = 32; align = 32; signed = false; } := void *;
3470ca79
MD
13
14stream {
3470ca79
MD
15 event.header := struct {
16 uint32_t id;
17 uint64_t timestamp;
18 };
19 event.context := struct { /*
20 uint32_t thread_id; * This context belongs to all
21 void *func_called; * events in this stream.
22 void *called_from; */
23 uint32_t event_count; /* for debug */
b7e35bad 24 };
3470ca79
MD
25};
26
27/*
28 * All events have empty context/fields, because their field layout is
29 * replicated for all events of the stream (in this particular trace
30 * layout). See ctf-embedded-2.txt for a more compact layout.
31 */
32
f0751d06
MD
33event { name = invalid; id = 0; };
34event { name = func_enter; id = 1; };
35event { name = func_exit; id = 2; };
This page took 0.024529 seconds and 4 git commands to generate.