| 1 | /* CTF 1.8 */ |
| 2 | |
| 3 | trace { |
| 4 | major = 0; |
| 5 | minor = 1; |
| 6 | uuid = "f816d884-6cea-11e0-ac7a-8f5f4e9f7724"; |
| 7 | byte_order = be; /* Assuming big endian streams */ |
| 8 | }; |
| 9 | |
| 10 | /* Architecture with 32-bit pointers, 32-bit integers, 32-bit longs */ |
| 11 | |
| 12 | typealias integer { size = 32; align = 32; signed = false; } := uint32_t; |
| 13 | typealias integer { size = 64; align = 64; signed = false; } := uint64_t; |
| 14 | typealias integer { size = 32; align = 32; signed = false; } := void *; |
| 15 | |
| 16 | stream { |
| 17 | event.header := struct { |
| 18 | uint32_t id; |
| 19 | uint64_t timestamp; |
| 20 | }; |
| 21 | event.context := struct { /* |
| 22 | uint32_t thread_id; * This context belongs to all |
| 23 | void *func_called; * events in this stream. |
| 24 | void *called_from; */ |
| 25 | uint32_t event_count; /* for debug */ |
| 26 | }; |
| 27 | }; |
| 28 | |
| 29 | /* |
| 30 | * All events have empty context/fields, because their field layout is |
| 31 | * replicated for all events of the stream (in this particular trace |
| 32 | * layout). See ctf-embedded-2.txt for a more compact layout. |
| 33 | */ |
| 34 | |
| 35 | event { name = invalid; id = 0; }; |
| 36 | event { name = func_enter; id = 1; }; |
| 37 | event { name = func_exit; id = 2; }; |