Commit | Line | Data |
---|---|---|
2ca134ef JD |
1 | /* CTF 1.8 */ |
2 | ||
3 | trace { | |
4 | major = 1; | |
5 | minor = 8; | |
6 | uuid = "c4f5ad74-2d9a-4a17-9633-3e9e49d5f773"; | |
7 | byte_order = le; | |
8 | packet.header := struct { | |
9 | integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } magic; | |
10 | integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } uuid[16]; | |
11 | integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } stream_id; | |
12 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } stream_instance_id; | |
13 | } align(8); | |
14 | }; | |
15 | ||
16 | env { | |
17 | hostname = "sinkpad"; | |
18 | domain = "ust"; | |
19 | tracer_name = "lttng-ust"; | |
20 | tracer_major = 2; | |
21 | tracer_minor = 10; | |
22 | }; | |
23 | ||
24 | clock { | |
25 | name = monotonic; | |
26 | uuid = "00000000-0000-0000-0000-000000000000"; | |
27 | description = "Monotonic Clock"; | |
28 | freq = 1000000000; | |
29 | precision = 1; | |
30 | offset_s = 0; | |
31 | offset = 1497619475540462738; | |
32 | absolute = TRUE; | |
33 | }; | |
34 | ||
35 | stream { | |
36 | id = 0; | |
37 | event.header := struct { | |
38 | enum : integer { size = 5; align = 1; signed = false; encoding = none; base = decimal; byte_order = le; } { "compact" = 0 ... 30, "extended" = 31 } id; | |
39 | variant <id> { | |
40 | struct { | |
41 | integer { size = 64; align = 1; signed = false; encoding = none; base = decimal; byte_order = le; map = clock.monotonic.value; } timestamp; | |
42 | } align(1) compact; | |
43 | struct { | |
44 | integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } id; | |
45 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; map = clock.monotonic.value; } timestamp; | |
46 | } align(8) extended; | |
47 | } v; | |
48 | } align(8); | |
49 | ||
50 | packet.context := struct { | |
51 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; map = clock.monotonic.value; } timestamp_begin; | |
52 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; map = clock.monotonic.value; } timestamp_end; | |
53 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } content_size; | |
54 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } packet_size; | |
55 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } packet_seq_num; | |
56 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } events_discarded; | |
57 | integer { size = 32; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } cpu_id; | |
58 | } align(8); | |
59 | ||
60 | event.context := struct { | |
61 | integer { size = 32; align = 8; signed = true; encoding = none; base = decimal; byte_order = le; } _vpid; | |
62 | integer { size = 64; align = 8; signed = false; encoding = none; base = hexadecimal; byte_order = le; } _ip; | |
63 | } align(8); | |
64 | }; | |
65 | ||
66 | event { | |
67 | name = "lttng_ust_statedump:bin_info"; | |
68 | id = 0; | |
69 | stream_id = 0; | |
70 | loglevel = 13; | |
71 | fields := struct { | |
72 | integer { size = 64; align = 8; signed = false; encoding = none; base = hexadecimal; byte_order = le; } _baddr; | |
73 | integer { size = 64; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } _memsz; | |
74 | string { encoding = UTF8; } _path; | |
75 | integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } _is_pic; | |
76 | integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } _has_build_id; | |
77 | integer { size = 8; align = 8; signed = false; encoding = none; base = decimal; byte_order = le; } _has_debug_link; | |
78 | } align(8); | |
79 | }; | |
80 | ||
81 | event { | |
82 | name = "my_provider:my_first_tracepoint"; | |
83 | id = 1; | |
84 | stream_id = 0; | |
85 | loglevel = 13; | |
86 | fields := struct { | |
87 | string { encoding = UTF8; } _my_string_field; | |
88 | integer { size = 32; align = 8; signed = true; encoding = none; base = decimal; byte_order = le; } _my_integer_field; | |
89 | } align(8); | |
90 | }; | |
91 |