| 1 |
/* CTF 1.8 */ |
| 2 |
|
| 3 |
/* |
| 4 |
* The MIT License (MIT) |
| 5 |
* |
| 6 |
* |
| 7 |
* Permission is hereby granted, free of charge, to any person obtaining |
| 8 |
* a copy of this software and associated documentation files (the |
| 9 |
* "Software"), to deal in the Software without restriction, including |
| 10 |
* without limitation the rights to use, copy, modify, merge, publish, |
| 11 |
* distribute, sublicense, and/or sell copies of the Software, and to |
| 12 |
* permit persons to whom the Software is furnished to do so, subject to |
| 13 |
* the following conditions: |
| 14 |
* |
| 15 |
* The above copyright notice and this permission notice shall be |
| 16 |
* included in all copies or substantial portions of the Software. |
| 17 |
* |
| 18 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 19 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 20 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 21 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 22 |
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 23 |
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 24 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 25 |
* SOFTWARE. |
| 26 |
* |
| 27 |
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| 28 |
* |
| 29 |
* |
| 30 |
* For more details, see <https://barectf.org/>. |
| 31 |
*/ |
| 32 |
|
| 33 |
trace { |
| 34 |
major = 1; |
| 35 |
minor = 8; |
| 36 |
byte_order = le; |
| 37 |
packet.header := struct { |
| 38 |
integer { |
| 39 |
signed = false; |
| 40 |
size = 64; |
| 41 |
align = 8; |
| 42 |
byte_order = native; |
| 43 |
base = 10; |
| 44 |
} stream_id; |
| 45 |
} align(8); |
| 46 |
}; |
| 47 |
|
| 48 |
env { |
| 49 |
domain = "bare"; |
| 50 |
tracer_name = "barectf"; |
| 51 |
}; |
| 52 |
|
| 53 |
clock { |
| 54 |
name = default; |
| 55 |
freq = 1000000000; |
| 56 |
precision = 0; |
| 57 |
offset_s = 0; |
| 58 |
offset = 0; |
| 59 |
absolute = false; |
| 60 |
}; |
| 61 |
|
| 62 |
/* Data stream type `default` */ |
| 63 |
stream { |
| 64 |
id = 0; |
| 65 |
packet.context := struct { |
| 66 |
integer { |
| 67 |
signed = false; |
| 68 |
size = 64; |
| 69 |
align = 8; |
| 70 |
byte_order = native; |
| 71 |
base = 10; |
| 72 |
} packet_size; |
| 73 |
integer { |
| 74 |
signed = false; |
| 75 |
size = 64; |
| 76 |
align = 8; |
| 77 |
byte_order = native; |
| 78 |
base = 10; |
| 79 |
} content_size; |
| 80 |
} align(8); |
| 81 |
event.header := struct { |
| 82 |
integer { |
| 83 |
signed = false; |
| 84 |
size = 64; |
| 85 |
align = 8; |
| 86 |
byte_order = native; |
| 87 |
base = 10; |
| 88 |
} id; |
| 89 |
integer { |
| 90 |
signed = false; |
| 91 |
size = 32; |
| 92 |
align = 32; |
| 93 |
byte_order = native; |
| 94 |
base = 10; |
| 95 |
map = clock.default.value; |
| 96 |
} timestamp; |
| 97 |
} align(8); |
| 98 |
}; |
| 99 |
|
| 100 |
event { |
| 101 |
stream_id = 0; |
| 102 |
id = 0; |
| 103 |
name = "dummy"; |
| 104 |
fields := struct { |
| 105 |
string { |
| 106 |
encoding = UTF8; |
| 107 |
} u; |
| 108 |
} align(1); |
| 109 |
}; |