opencl_events.yaml 8.76 KB
Newer Older
Brice Videau's avatar
Brice Videau committed
1
---
Brice Videau's avatar
Brice Videau committed
2
lttng_ust_opencl_build:
Brice Videau's avatar
Brice Videau committed
3
  events:
Brice Videau's avatar
Brice Videau committed
4
  - name: objects
Brice Videau's avatar
Brice Videau committed
5
6
    args:
    - [ cl_program, program ]
Brice Videau's avatar
Brice Videau committed
7
8
9
10
    - [ cl_device_id, device ]
    - [ size_t, size ]
    - [ "char *", path ]
    fields:
11
12
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
Brice Videau's avatar
Brice Videau committed
13
14
15
    - [ ctf_integer, size_t, size, size ]
    - [ ctf_string, path, path ]
  - name: binaries
Brice Videau's avatar
Brice Videau committed
16
17
    args:
    - [ cl_program, program ]
Brice Videau's avatar
Brice Videau committed
18
19
20
21
    - [ cl_device_id, device ]
    - [ size_t, size ]
    - [ "char *", path ]
    fields:
22
23
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
Brice Videau's avatar
Brice Videau committed
24
25
26
    - [ ctf_integer, size_t, size, size ]
    - [ ctf_string, path, path ]
  - name: infos
Brice Videau's avatar
Brice Videau committed
27
28
    args:
    - [ cl_program, program ]
Brice Videau's avatar
Brice Videau committed
29
30
31
32
33
    - [ cl_device_id, device ]
    - [ cl_build_status, build_status ]
    - [ "char *", build_options ]
    - [ "char *", build_log ]
    fields:
34
35
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
Brice Videau's avatar
Brice Videau committed
36
37
38
39
    - [ ctf_integer, cl_build_status, build_status, build_status ]
    - [ ctf_string, build_options, build_options ]
    - [ ctf_string, build_log, build_log ]
  - name: infos_1_2
Brice Videau's avatar
Brice Videau committed
40
41
    args:
    - [ cl_program, program ]
Brice Videau's avatar
Brice Videau committed
42
43
44
    - [ cl_device_id, device ]
    - [ cl_program_binary_type, binary_type ]
    fields:
45
46
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
Brice Videau's avatar
Brice Videau committed
47
48
    - [ ctf_integer, cl_program_binary_type, binary_type, binary_type ]
  - name: infos_2_0
Brice Videau's avatar
Brice Videau committed
49
    args:
Brice Videau's avatar
Brice Videau committed
50
51
52
53
    - [ cl_program, program ]
    - [ cl_device_id, device ]
    - [ size_t, build_global_variable_total_size ]
    fields:
54
55
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
Brice Videau's avatar
Brice Videau committed
56
57
58
59
60
61
    - [ ctf_integer, size_t, build_global_variable_total_size, build_global_variable_total_size ]
lttng_ust_opencl_arguments:
  events:
  - name: argument_info
    args:
    - [ cl_kernel, kernel ]
Brice Videau's avatar
Brice Videau committed
62
    - [ cl_uint, arg_index ]
Brice Videau's avatar
Brice Videau committed
63
64
65
66
67
68
    - [ cl_kernel_arg_address_qualifier, address_qualifier ]
    - [ cl_kernel_arg_access_qualifier, access_qualifier ]
    - [ "char *", type_name ]
    - [ cl_kernel_arg_type_qualifier, type_qualifier ]
    - [ "char *", name ]
    fields:
69
    - [ ctf_integer_hex, uintptr_t, kernel, "(uintptr_t)kernel" ]
Brice Videau's avatar
Brice Videau committed
70
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
Brice Videau's avatar
Brice Videau committed
71
72
73
74
75
76
77
78
79
80
81
82
83
84
    - [ ctf_integer, cl_kernel_arg_address_qualifier, address_qualifier, address_qualifier ]
    - [ ctf_integer, cl_kernel_arg_access_qualifier, access_qualifier, access_qualifier ]
    - [ ctf_string, type_name, type_name ]
    - [ ctf_integer, cl_kernel_arg_type_qualifier, type_qualifier, type_qualifier ]
    - [ ctf_string, name, name ]
  - name: kernel_info
    args:
    - [ cl_kernel, kernel ]
    - [ "char *", function_name ]
    - [ cl_uint, num_args ]
    - [ cl_context, context ]
    - [ cl_program, program ]
    - [ "char *", attibutes ]
    fields:
85
    - [ ctf_integer_hex, uintptr_t, kernel, "(uintptr_t)kernel" ]
Brice Videau's avatar
Brice Videau committed
86
87
    - [ ctf_string, function_name, function_name ]
    - [ ctf_integer, cl_uint, num_args, num_args ]
88
89
    - [ ctf_integer_hex, uintptr_t, context, "(uintptr_t)context" ]
    - [ ctf_integer_hex, uintptr_t, program, "(uintptr_t)program" ]
Brice Videau's avatar
Brice Videau committed
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
    - [ ctf_string, attibutes, attibutes ]
lttng_ust_opencl_dump:
  enums:
  - name: dump_enum
    values:
    - [ ctf_enum_value, BEFORE, 0 ]
    - [ ctf_enum_value, AFTER, 1 ]
  events:
  - name: enqueue_counter
    args:
    - [ uint64_t, enqueue_counter ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
  - name: kernel_arg_value
    args:
    - [ uint64_t, enqueue_counter ]
    - [ cl_uint, arg_index ]
    - [ size_t, arg_size ]
    - [ "void *", arg_value ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
    - [ ctf_integer, size_t, arg_size, arg_size ]
    - [ ctf_sequence_text, uint8_t, arg_value, arg_value, size_t, "arg_value == NULL ? 0 : arg_size" ]
  - name: svmptr_dump_event
    args:
    - [ uint64_t, enqueue_counter ]
    - [ cl_uint, arg_index ]
    - [ int, direction ]
    - [ "void *", buffer ]
    - [ int, status ]
    - [ cl_event, event ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
    - [ ctf_enum, lttng_ust_opencl_dump, dump_enum, int, direction, direction ]
126
    - [ ctf_integer_hex, uintptr_t, buffer, "(uintptr_t)buffer" ]
Brice Videau's avatar
Brice Videau committed
127
    - [ ctf_integer, int, status, status ]
128
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
129
130
131
132
133
  - name: svmptr_dump_result
    args:
    - [ uint64_t, enqueue_counter ]
    - [ cl_uint, arg_index ]
    - [ int, direction ]
Brice Videau's avatar
Brice Videau committed
134
    - [ cl_event, event ]
Brice Videau's avatar
Brice Videau committed
135
136
137
138
139
140
141
    - [ cl_int, status ]
    - [ size_t, size ]
    - [ "char *", path ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
    - [ ctf_enum, lttng_ust_opencl_dump, dump_enum, int, direction, direction ]
142
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
    - [ ctf_integer, int, status, status ]
    - [ ctf_integer, size_t, size, size ]
    - [ ctf_string, path, path ]
  - name: buffer_dump_event
    args:
    - [ uint64_t, enqueue_counter ]
    - [ cl_uint, arg_index ]
    - [ int, direction ]
    - [ cl_mem, buffer ]
    - [ int, status ]
    - [ cl_event, event ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
    - [ ctf_enum, lttng_ust_opencl_dump, dump_enum, int, direction, direction ]
158
    - [ ctf_integer_hex, uintptr_t, buffer, "(uintptr_t)buffer" ]
Brice Videau's avatar
Brice Videau committed
159
    - [ ctf_integer, int, status, status ]
160
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
161
162
163
164
165
166
167
168
169
170
171
172
173
  - name: buffer_dump_result
    args:
    - [ uint64_t, enqueue_counter ]
    - [ cl_uint, arg_index ]
    - [ int, direction ]
    - [ cl_event, event ]
    - [ cl_int, status ]
    - [ size_t, size ]
    - [ "char *", path ]
    fields:
    - [ ctf_integer, uint64_t, enqueue_counter, enqueue_counter ]
    - [ ctf_integer, cl_uint, arg_index, arg_index ]
    - [ ctf_enum, lttng_ust_opencl_dump, dump_enum, int, direction, direction ]
174
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
175
176
177
178
179
180
181
182
183
184
185
    - [ ctf_integer, int, status, status ]
    - [ ctf_integer, size_t, size, size ]
    - [ ctf_string, path, path ]
lttng_ust_opencl_profiling:
  events:
  - name: event_profiling
    args:
    - [ int, status ]
    - [ cl_event, event ]
    fields:
    - [ ctf_integer, int, status, status ]
186
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
187
188
189
190
191
192
193
194
195
196
197
198
199
  - name: event_profiling_results
    args:
    - [ cl_event, event ]
    - [ cl_int, event_command_exec_status ]
    - [ cl_int, queued_status ]
    - [ cl_ulong, queued ]
    - [ cl_int, submit_status ]
    - [ cl_ulong, submit ]
    - [ cl_int, start_status ]
    - [ cl_ulong, start ]
    - [ cl_int, end_status ]
    - [ cl_ulong, end ]
    fields:
200
    - [ ctf_integer_hex, uintptr_t, event, "(uintptr_t)event" ]
Brice Videau's avatar
Brice Videau committed
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
    - [ ctf_integer, int, event_command_exec_status, event_command_exec_status ]
    - [ ctf_integer, cl_int, queued_status, queued_status ]
    - [ ctf_integer, cl_ulong, queued, queued ]
    - [ ctf_integer, cl_int, submit_status, submit_status ]
    - [ ctf_integer, cl_ulong, submit, submit ]
    - [ ctf_integer, cl_int, start_status, start_status ]
    - [ ctf_integer, cl_ulong, start, start ]
    - [ ctf_integer, cl_int, end_status, end_status ]
    - [ ctf_integer, cl_ulong, end, end ]
lttng_ust_opencl_source:
  events:
  - name: program_string
    args:
    - [ int, index ]
    - [ size_t , length ]
    - [ "char *", path ]
    fields:
    - [ ctf_integer, int, index, index ]
    - [ ctf_integer, size_t, length, length ]
    - [ ctf_string, path, path ]
  - name: program_binary
    args:
    - [ int, index ]
    - [ size_t , length ]
    - [ char *, path ]
    fields:
    - [ ctf_integer, int, index, index ]
    - [ ctf_integer, size_t, length, length ]
    - [ ctf_string, path, path ]
  - name: program_il
    args:
232
    - [ size_t, length ]
Brice Videau's avatar
Brice Videau committed
233
234
235
236
    - [ "char *", path ]
    fields:
    - [ ctf_integer, size_t, length, length ]
    - [ ctf_string, path, path ]
237
238
239
240
241
242
243
lttng_ust_opencl_devices:
  events:
  - name: device_name
    args:
    - [ cl_device_id, device]
    - [ "char *", name ]
    fields:
244
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
245
    - [ ctf_string, name, name ]
246
247
248
249
250
251
252
253
254
  - name: device_timer
    args:
    - [ cl_device_id, device ]
    - [ cl_ulong, device_timestamp ]
    - [ cl_ulong, host_timestamp ]
    fields:
    - [ ctf_integer_hex, uintptr_t, device, "(uintptr_t)device" ]
    - [ ctf_integer, cl_ulong, device_timestamp, device_timestamp ]
    - [ ctf_integer, cl_ulong, host_timestamp, host_timestamp ]