| 1 |
/* CTF 1.8 |
| 2 |
* |
| 3 |
* Architecture with 32-bit pointers, 32-bit integers, 32-bit longs. |
| 4 |
*/ |
| 5 |
|
| 6 |
typealias integer { size = 1; align = 1; signed = false; } := uint1_t; |
| 7 |
typealias integer { size = 8; align = 8; signed = false; } := uint8_t; |
| 8 |
typealias integer { size = 63; align = 1; signed = false; } := timestamp_t; |
| 9 |
|
| 10 |
typealias integer { size = 32; align = 32; signed = false; base = 10; } := uint32_t; |
| 11 |
typealias integer { size = 32; align = 32; signed = false; } := void *; |
| 12 |
|
| 13 |
|
| 14 |
trace { |
| 15 |
major = 0; |
| 16 |
minor = 1; |
| 17 |
uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; |
| 18 |
byte_order = le; |
| 19 |
packet.header := struct { |
| 20 |
uint32_t magic; |
| 21 |
uint8_t uuid[16]; |
| 22 |
uint32_t stream_id; |
| 23 |
}; |
| 24 |
}; |
| 25 |
|
| 26 |
stream { |
| 27 |
event.header := struct { |
| 28 |
uint1_t id; |
| 29 |
timestamp_t timestamp; |
| 30 |
}; |
| 31 |
event.context := struct { |
| 32 |
uint32_t thread_id; |
| 33 |
uint32_t event_count; |
| 34 |
}; |
| 35 |
}; |
| 36 |
|
| 37 |
event { |
| 38 |
name = func_enter; |
| 39 |
id = 0; |
| 40 |
fields := struct { |
| 41 |
void *func_called; |
| 42 |
void *called_from; |
| 43 |
}; |
| 44 |
}; |
| 45 |
|
| 46 |
event { |
| 47 |
name = func_exit; |
| 48 |
id = 1; |
| 49 |
}; |