| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 | 
							- /* CTF 1.8 */
 
- typealias integer { size = 8; align = 8; signed = true; } := int8_t;
 
- 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 = 32; align = 8; signed = true; } := int32_t;
 
- typealias integer { size = 64; align = 8; signed = false; } := uint64_t;
 
- typealias integer { size = 8; align = 8; signed = false; encoding = ASCII; } := ctf_bounded_string_t;
 
- typealias enum : uint32_t {
 
-     MUTEX_INIT = 33,
 
-     MUTEX_UNLOCK = 34,
 
-     MUTEX_LOCK = 35,
 
-     SEMA_INIT = 36,
 
-     SEMA_GIVE = 37,
 
-     SEMA_TAKE = 38,
 
-     SLEEP = 39
 
- } := call_id;
 
- struct event_header {
 
-     uint32_t timestamp;
 
-     uint8_t id;
 
- };
 
- trace {
 
-     major = 1;
 
-     minor = 8;
 
-     byte_order = le;
 
- };
 
- stream {
 
-     event.header := struct event_header;
 
- };
 
- event {
 
-     name = thread_switched_out;
 
-     id = 0x10;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_switched_in;
 
-     id = 0x11;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_priority_set;
 
-     id = 0x12;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-         int8_t prio;
 
-     };
 
- };
 
- event {
 
-     name = thread_create;
 
-     id = 0x13;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_abort;
 
-     id = 0x14;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_suspend;
 
-     id = 0x15;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_resume;
 
-     id = 0x16;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-         name = thread_ready;
 
-         id = 0x17;
 
-         fields := struct {
 
-                 uint32_t thread_id;
 
-                 ctf_bounded_string_t name[20];
 
-         };
 
- };
 
- event {
 
-     name = thread_pending;
 
-     id = 0x18;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = thread_info;
 
-     id = 0x19;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-         uint32_t stack_base;
 
-         uint32_t stack_size;
 
-     };
 
- };
 
- event {
 
-     name = thread_name_set;
 
-     id = 0x1a;
 
-     fields := struct {
 
-         uint32_t thread_id;
 
-         ctf_bounded_string_t name[20];
 
-     };
 
- };
 
- event {
 
-     name = isr_enter;
 
-     id = 0x1B;
 
- };
 
- event {
 
-     name = isr_exit;
 
-     id = 0x1C;
 
- };
 
- event {
 
-     name = isr_exit_to_scheduler;
 
-     id = 0x1D;
 
- };
 
- event {
 
-     name = idle;
 
-     id = 0x1E;
 
- };
 
- event {
 
-     name = start_call;
 
-     id = 0x1F;
 
-     fields := struct {
 
-         call_id id;
 
-     };
 
- };
 
- event {
 
-     name = end_call;
 
-     id = 0x20;
 
-     fields := struct {
 
-         call_id id;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_init;
 
-     id = 0x21;
 
-     fields := struct {
 
-         uint32_t id;
 
-         int32_t ret;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_give_enter;
 
-     id = 0x22;
 
-     fields := struct {
 
-         uint32_t id;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_give_exit;
 
-     id = 0x23;
 
-     fields := struct {
 
-         uint32_t id;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_take_enter;
 
-     id = 0x24;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_take_exit;
 
-     id = 0x26;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-         int32_t ret;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_take_blocking;
 
-     id = 0x25;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-     };
 
- };
 
- event {
 
-     name = semaphore_reset;
 
-     id = 0x27;
 
-     fields := struct {
 
-         uint32_t id;
 
-     };
 
- };
 
- event {
 
-     name = mutex_init;
 
-     id = 0x28;
 
-     fields := struct {
 
-         uint32_t id;
 
-         int32_t ret;
 
-     };
 
- };
 
- event {
 
-     name = mutex_lock_enter;
 
-     id = 0x29;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-     };
 
- };
 
- event {
 
-     name = mutex_lock_blocking;
 
-     id = 0x2A;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-     };
 
- };
 
- event {
 
-     name = mutex_lock_exit;
 
-     id = 0x2B;
 
-     fields := struct {
 
-         uint32_t id;
 
-         uint32_t timeout;
 
-         int32_t ret;
 
-     };
 
- };
 
- event {
 
-     name = mutex_unlock_enter;
 
-     id = 0x2C;
 
-     fields := struct {
 
-         uint32_t id;
 
-     };
 
- };
 
- event {
 
-     name = mutex_unlock_exit;
 
-     id = 0x2D;
 
-     fields := struct {
 
-         uint32_t id;
 
-     };
 
- };
 
 
  |