Commit | Line | Data |
---|---|---|
51489cad MD |
1 | #ifndef _LTTNG_UST_EVENTS_H |
2 | #define _LTTNG_UST_EVENTS_H | |
8020ceb5 MD |
3 | |
4 | /* | |
51489cad | 5 | * lttng/ust-events.h |
8020ceb5 MD |
6 | * |
7 | * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
8 | * | |
9 | * Holds LTTng per-session event registry. | |
10 | * | |
a60d70e6 MD |
11 | * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED |
12 | * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. | |
13 | * | |
14 | * Permission is hereby granted to use or copy this program | |
15 | * for any purpose, provided the above notices are retained on all copies. | |
16 | * Permission to modify the code and to distribute modified code is granted, | |
17 | * provided the above notices are retained, and a notice that the code was | |
18 | * modified is included with the above copyright notice. | |
8020ceb5 MD |
19 | */ |
20 | ||
9f3fdbc6 | 21 | #include <urcu/list.h> |
1f18504e | 22 | #include <urcu/hlist.h> |
578ce73a | 23 | #include <uuid/uuid.h> |
9f3fdbc6 | 24 | #include <stdint.h> |
4318ae1b MD |
25 | #include <lttng/ust-abi.h> |
26 | #include <lttng/ust-tracer.h> | |
a7859af5 | 27 | #include <endian.h> |
20f1eee7 | 28 | #include <float.h> |
8020ceb5 | 29 | |
8020ceb5 MD |
30 | struct ltt_channel; |
31 | struct ltt_session; | |
4cfec15c | 32 | struct lttng_ust_lib_ring_buffer_ctx; |
8020ceb5 | 33 | |
37d5e202 MD |
34 | /* |
35 | * Data structures used by tracepoint event declarations, and by the | |
36 | * tracer. Those structures have padding for future extension. | |
37 | */ | |
38 | ||
c1fca457 MD |
39 | /* |
40 | * LTTng client type enumeration. Used by the consumer to map the | |
41 | * callbacks from its own address space. | |
42 | */ | |
43 | enum lttng_client_types { | |
44 | LTTNG_CLIENT_METADATA = 0, | |
45 | LTTNG_CLIENT_DISCARD = 1, | |
46 | LTTNG_CLIENT_OVERWRITE = 2, | |
47 | LTTNG_NR_CLIENT_TYPES, | |
48 | }; | |
49 | ||
8020ceb5 MD |
50 | /* Type description */ |
51 | ||
52 | /* Update the astract_types name table in lttng-types.c along with this enum */ | |
53 | enum abstract_types { | |
54 | atype_integer, | |
55 | atype_enum, | |
56 | atype_array, | |
57 | atype_sequence, | |
58 | atype_string, | |
20f1eee7 | 59 | atype_float, |
8020ceb5 MD |
60 | NR_ABSTRACT_TYPES, |
61 | }; | |
62 | ||
63 | /* Update the string_encodings name table in lttng-types.c along with this enum */ | |
64 | enum lttng_string_encodings { | |
65 | lttng_encode_none = 0, | |
66 | lttng_encode_UTF8 = 1, | |
67 | lttng_encode_ASCII = 2, | |
68 | NR_STRING_ENCODINGS, | |
69 | }; | |
70 | ||
37d5e202 | 71 | #define LTTNG_UST_ENUM_ENTRY_PADDING 16 |
8020ceb5 MD |
72 | struct lttng_enum_entry { |
73 | unsigned long long start, end; /* start and end are inclusive */ | |
74 | const char *string; | |
37d5e202 | 75 | char padding[LTTNG_UST_ENUM_ENTRY_PADDING]; |
8020ceb5 MD |
76 | }; |
77 | ||
78 | #define __type_integer(_type, _byte_order, _base, _encoding) \ | |
79 | { \ | |
80 | .atype = atype_integer, \ | |
81 | .u.basic.integer = \ | |
82 | { \ | |
83 | .size = sizeof(_type) * CHAR_BIT, \ | |
1dbfff0c MD |
84 | .alignment = lttng_alignof(_type) * CHAR_BIT, \ |
85 | .signedness = lttng_is_signed_type(_type), \ | |
40af798b | 86 | .reverse_byte_order = _byte_order != __BYTE_ORDER, \ |
8020ceb5 MD |
87 | .base = _base, \ |
88 | .encoding = lttng_encode_##_encoding, \ | |
89 | }, \ | |
90 | } \ | |
91 | ||
37d5e202 | 92 | #define LTTNG_UST_INTEGER_TYPE_PADDING 24 |
8020ceb5 MD |
93 | struct lttng_integer_type { |
94 | unsigned int size; /* in bits */ | |
95 | unsigned short alignment; /* in bits */ | |
96 | unsigned int signedness:1; | |
97 | unsigned int reverse_byte_order:1; | |
98 | unsigned int base; /* 2, 8, 10, 16, for pretty print */ | |
99 | enum lttng_string_encodings encoding; | |
37d5e202 | 100 | char padding[LTTNG_UST_INTEGER_TYPE_PADDING]; |
8020ceb5 MD |
101 | }; |
102 | ||
d3ed854b MD |
103 | /* |
104 | * Only float and double are supported. long double is not supported at | |
105 | * the moment. | |
106 | */ | |
20f1eee7 MD |
107 | #define _float_mant_dig(_type) \ |
108 | (sizeof(_type) == sizeof(float) ? FLT_MANT_DIG \ | |
109 | : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG \ | |
d3ed854b | 110 | : 0)) |
20f1eee7 MD |
111 | |
112 | #define __type_float(_type) \ | |
113 | { \ | |
114 | .atype = atype_float, \ | |
115 | .u.basic._float = \ | |
116 | { \ | |
117 | .exp_dig = sizeof(_type) * CHAR_BIT \ | |
118 | - _float_mant_dig(_type), \ | |
119 | .mant_dig = _float_mant_dig(_type), \ | |
1dbfff0c | 120 | .alignment = lttng_alignof(_type) * CHAR_BIT, \ |
7d97fea8 | 121 | .reverse_byte_order = __BYTE_ORDER != __FLOAT_WORD_ORDER, \ |
20f1eee7 MD |
122 | }, \ |
123 | } \ | |
124 | ||
37d5e202 | 125 | #define LTTNG_UST_FLOAT_TYPE_PADDING 24 |
20f1eee7 MD |
126 | struct lttng_float_type { |
127 | unsigned int exp_dig; /* exponent digits, in bits */ | |
128 | unsigned int mant_dig; /* mantissa digits, in bits */ | |
129 | unsigned short alignment; /* in bits */ | |
130 | unsigned int reverse_byte_order:1; | |
37d5e202 | 131 | char padding[LTTNG_UST_FLOAT_TYPE_PADDING]; |
20f1eee7 MD |
132 | }; |
133 | ||
37d5e202 | 134 | #define LTTNG_UST_BASIC_TYPE_PADDING 128 |
8020ceb5 MD |
135 | union _lttng_basic_type { |
136 | struct lttng_integer_type integer; | |
137 | struct { | |
138 | const char *name; | |
139 | } enumeration; | |
140 | struct { | |
141 | enum lttng_string_encodings encoding; | |
142 | } string; | |
20f1eee7 | 143 | struct lttng_float_type _float; |
37d5e202 | 144 | char padding[LTTNG_UST_BASIC_TYPE_PADDING]; |
8020ceb5 MD |
145 | }; |
146 | ||
147 | struct lttng_basic_type { | |
148 | enum abstract_types atype; | |
149 | union { | |
150 | union _lttng_basic_type basic; | |
151 | } u; | |
152 | }; | |
153 | ||
37d5e202 | 154 | #define LTTNG_UST_TYPE_PADDING 128 |
8020ceb5 MD |
155 | struct lttng_type { |
156 | enum abstract_types atype; | |
157 | union { | |
158 | union _lttng_basic_type basic; | |
159 | struct { | |
160 | struct lttng_basic_type elem_type; | |
161 | unsigned int length; /* num. elems. */ | |
162 | } array; | |
163 | struct { | |
164 | struct lttng_basic_type length_type; | |
165 | struct lttng_basic_type elem_type; | |
166 | } sequence; | |
37d5e202 | 167 | char padding[LTTNG_UST_TYPE_PADDING]; |
8020ceb5 MD |
168 | } u; |
169 | }; | |
170 | ||
37d5e202 | 171 | #define LTTNG_UST_ENUM_TYPE_PADDING 24 |
8020ceb5 MD |
172 | struct lttng_enum { |
173 | const char *name; | |
174 | struct lttng_type container_type; | |
175 | const struct lttng_enum_entry *entries; | |
23c8854a | 176 | unsigned int len; |
37d5e202 | 177 | char padding[LTTNG_UST_ENUM_TYPE_PADDING]; |
8020ceb5 MD |
178 | }; |
179 | ||
180 | /* Event field description */ | |
181 | ||
37d5e202 | 182 | #define LTTNG_UST_EVENT_FIELD_PADDING 32 |
8020ceb5 MD |
183 | struct lttng_event_field { |
184 | const char *name; | |
185 | struct lttng_type type; | |
37d5e202 | 186 | char padding[LTTNG_UST_EVENT_FIELD_PADDING]; |
8020ceb5 MD |
187 | }; |
188 | ||
37d5e202 | 189 | #define LTTNG_UST_CTX_FIELD_PADDING 40 |
8020ceb5 MD |
190 | struct lttng_ctx_field { |
191 | struct lttng_event_field event_field; | |
192 | size_t (*get_size)(size_t offset); | |
193 | void (*record)(struct lttng_ctx_field *field, | |
4cfec15c | 194 | struct lttng_ust_lib_ring_buffer_ctx *ctx, |
8020ceb5 MD |
195 | struct ltt_channel *chan); |
196 | union { | |
37d5e202 | 197 | char padding[LTTNG_UST_CTX_FIELD_PADDING]; |
8020ceb5 MD |
198 | } u; |
199 | void (*destroy)(struct lttng_ctx_field *field); | |
200 | }; | |
201 | ||
37d5e202 | 202 | #define LTTNG_UST_CTX_PADDING 24 |
8020ceb5 MD |
203 | struct lttng_ctx { |
204 | struct lttng_ctx_field *fields; | |
205 | unsigned int nr_fields; | |
206 | unsigned int allocated_fields; | |
37d5e202 MD |
207 | char padding[LTTNG_UST_CTX_PADDING]; |
208 | }; | |
209 | ||
210 | #define LTTNG_UST_EVENT_DESC_PADDING 40 | |
211 | struct lttng_event_desc { | |
212 | const char *name; | |
213 | void *probe_callback; | |
214 | const struct lttng_event_ctx *ctx; /* context */ | |
215 | const struct lttng_event_field *fields; /* event payload */ | |
216 | unsigned int nr_fields; | |
217 | const int **loglevel; | |
68755429 | 218 | const char *signature; /* Argument types/names received */ |
37d5e202 MD |
219 | char padding[LTTNG_UST_EVENT_DESC_PADDING]; |
220 | }; | |
221 | ||
222 | #define LTTNG_UST_PROBE_DESC_PADDING 40 | |
223 | struct lttng_probe_desc { | |
224 | const char *provider; | |
225 | const struct lttng_event_desc **event_desc; | |
226 | unsigned int nr_events; | |
227 | struct cds_list_head head; /* chain registered probes */ | |
228 | char padding[LTTNG_UST_PROBE_DESC_PADDING]; | |
8020ceb5 MD |
229 | }; |
230 | ||
37d5e202 MD |
231 | /* Data structures used by the tracer. */ |
232 | ||
e6c12e3d MD |
233 | /* |
234 | * Entry describing a per-session active wildcard, along with the event | |
235 | * attribute and channel information configuring the events that need to | |
236 | * be enabled. | |
237 | */ | |
238 | struct session_wildcard { | |
239 | struct ltt_channel *chan; | |
240 | struct lttng_ctx *ctx; /* TODO */ | |
241 | struct lttng_ust_event event_param; | |
242 | struct cds_list_head events; /* list of events enabled */ | |
243 | struct cds_list_head list; /* per-session list of wildcards */ | |
51c5df09 | 244 | struct cds_list_head session_list; /* node of session wildcard list */ |
e6c12e3d MD |
245 | struct wildcard_entry *entry; |
246 | unsigned int enabled:1; | |
247 | }; | |
248 | ||
249 | /* | |
250 | * Entry describing an active wildcard (per name) for all sessions. | |
251 | */ | |
252 | struct wildcard_entry { | |
51c5df09 | 253 | /* node of global wildcards list */ |
e6c12e3d | 254 | struct cds_list_head list; |
51c5df09 | 255 | /* head of session list to which this wildcard apply */ |
e6c12e3d | 256 | struct cds_list_head session_list; |
457a6b58 MD |
257 | enum lttng_ust_loglevel_type loglevel_type; |
258 | int loglevel; | |
e6c12e3d MD |
259 | char name[0]; |
260 | }; | |
261 | ||
c8fcf224 MD |
262 | struct tp_list_entry { |
263 | struct lttng_ust_tracepoint_iter tp; | |
264 | struct cds_list_head head; | |
265 | }; | |
266 | ||
267 | struct lttng_ust_tracepoint_list { | |
268 | struct tp_list_entry *iter; | |
269 | struct cds_list_head head; | |
8020ceb5 MD |
270 | }; |
271 | ||
8165c8da MD |
272 | struct ust_pending_probe; |
273 | ||
8020ceb5 MD |
274 | /* |
275 | * ltt_event structure is referred to by the tracing fast path. It must be | |
276 | * kept small. | |
277 | */ | |
278 | struct ltt_event { | |
279 | unsigned int id; | |
280 | struct ltt_channel *chan; | |
976fe9ea | 281 | int enabled; |
8020ceb5 MD |
282 | const struct lttng_event_desc *desc; |
283 | void *filter; | |
284 | struct lttng_ctx *ctx; | |
9f3fdbc6 | 285 | enum lttng_ust_instrumentation instrumentation; |
8020ceb5 | 286 | union { |
8020ceb5 | 287 | } u; |
9f3fdbc6 | 288 | struct cds_list_head list; /* Event list */ |
e6c12e3d | 289 | struct cds_list_head wildcard_list; /* Event list for wildcard */ |
8165c8da | 290 | struct ust_pending_probe *pending_probe; |
7c2caf2b | 291 | unsigned int metadata_dumped:1; |
8020ceb5 MD |
292 | }; |
293 | ||
8d8a24c8 | 294 | struct channel; |
38fae1d3 | 295 | struct lttng_ust_shm_handle; |
8d8a24c8 | 296 | |
8020ceb5 | 297 | struct ltt_channel_ops { |
1d498196 | 298 | struct ltt_channel *(*channel_create)(const char *name, |
8020ceb5 MD |
299 | void *buf_addr, |
300 | size_t subbuf_size, size_t num_subbuf, | |
301 | unsigned int switch_timer_interval, | |
193183fb | 302 | unsigned int read_timer_interval, |
ef9ff354 MD |
303 | int **shm_fd, int **wait_fd, |
304 | uint64_t **memory_map_size, | |
d028eddb | 305 | struct ltt_channel *chan_priv_init); |
1d498196 | 306 | void (*channel_destroy)(struct ltt_channel *ltt_chan); |
4cfec15c | 307 | struct lttng_ust_lib_ring_buffer *(*buffer_read_open)(struct channel *chan, |
38fae1d3 | 308 | struct lttng_ust_shm_handle *handle, |
ef9ff354 MD |
309 | int **shm_fd, int **wait_fd, |
310 | uint64_t **memory_map_size); | |
4cfec15c | 311 | void (*buffer_read_close)(struct lttng_ust_lib_ring_buffer *buf, |
38fae1d3 | 312 | struct lttng_ust_shm_handle *handle); |
4cfec15c | 313 | int (*event_reserve)(struct lttng_ust_lib_ring_buffer_ctx *ctx, |
8020ceb5 | 314 | uint32_t event_id); |
4cfec15c MD |
315 | void (*event_commit)(struct lttng_ust_lib_ring_buffer_ctx *ctx); |
316 | void (*event_write)(struct lttng_ust_lib_ring_buffer_ctx *ctx, const void *src, | |
8020ceb5 MD |
317 | size_t len); |
318 | /* | |
319 | * packet_avail_size returns the available size in the current | |
320 | * packet. Note that the size returned is only a hint, since it | |
321 | * may change due to concurrent writes. | |
322 | */ | |
1d498196 | 323 | size_t (*packet_avail_size)(struct channel *chan, |
38fae1d3 | 324 | struct lttng_ust_shm_handle *handle); |
9f3fdbc6 MD |
325 | //wait_queue_head_t *(*get_reader_wait_queue)(struct channel *chan); |
326 | //wait_queue_head_t *(*get_hp_wait_queue)(struct channel *chan); | |
8020ceb5 MD |
327 | int (*is_finalized)(struct channel *chan); |
328 | int (*is_disabled)(struct channel *chan); | |
38fae1d3 | 329 | int (*flush_buffer)(struct channel *chan, struct lttng_ust_shm_handle *handle); |
8020ceb5 MD |
330 | }; |
331 | ||
332 | struct ltt_channel { | |
a3f61e7f MD |
333 | /* |
334 | * The pointers located in this private data are NOT safe to be | |
335 | * dereferenced by the consumer. The only operations the | |
336 | * consumer process is designed to be allowed to do is to read | |
337 | * and perform subbuffer flush. | |
338 | */ | |
8020ceb5 | 339 | struct channel *chan; /* Channel buffers */ |
976fe9ea | 340 | int enabled; |
8020ceb5 MD |
341 | struct lttng_ctx *ctx; |
342 | /* Event ID management */ | |
343 | struct ltt_session *session; | |
0a42beb6 | 344 | int objd; /* Object associated to channel */ |
8020ceb5 | 345 | unsigned int free_event_id; /* Next event ID to allocate */ |
8165c8da | 346 | unsigned int used_event_id; /* Max allocated event IDs */ |
9f3fdbc6 | 347 | struct cds_list_head list; /* Channel list */ |
8020ceb5 MD |
348 | struct ltt_channel_ops *ops; |
349 | int header_type; /* 0: unset, 1: compact, 2: large */ | |
38fae1d3 | 350 | struct lttng_ust_shm_handle *handle; /* shared-memory handle */ |
7c2caf2b | 351 | unsigned int metadata_dumped:1; |
a3f61e7f MD |
352 | |
353 | /* Channel ID, available for consumer too */ | |
354 | unsigned int id; | |
355 | /* Copy of session UUID for consumer (availability through shm) */ | |
578ce73a | 356 | uuid_t uuid; /* Trace session unique ID */ |
8020ceb5 MD |
357 | }; |
358 | ||
359 | struct ltt_session { | |
360 | int active; /* Is trace session active ? */ | |
361 | int been_active; /* Has trace session been active ? */ | |
0a42beb6 | 362 | int objd; /* Object associated to session */ |
8020ceb5 | 363 | struct ltt_channel *metadata; /* Metadata channel */ |
9f3fdbc6 MD |
364 | struct cds_list_head chan; /* Channel list head */ |
365 | struct cds_list_head events; /* Event list head */ | |
e6c12e3d | 366 | struct cds_list_head wildcards; /* Wildcard list head */ |
9f3fdbc6 | 367 | struct cds_list_head list; /* Session list */ |
8020ceb5 | 368 | unsigned int free_chan_id; /* Next chan ID to allocate */ |
578ce73a | 369 | uuid_t uuid; /* Trace session unique ID */ |
7c2caf2b | 370 | unsigned int metadata_dumped:1; |
8020ceb5 MD |
371 | }; |
372 | ||
373 | struct ltt_transport { | |
374 | char *name; | |
9f3fdbc6 | 375 | struct cds_list_head node; |
8020ceb5 MD |
376 | struct ltt_channel_ops ops; |
377 | }; | |
378 | ||
379 | struct ltt_session *ltt_session_create(void); | |
976fe9ea MD |
380 | int ltt_session_enable(struct ltt_session *session); |
381 | int ltt_session_disable(struct ltt_session *session); | |
8020ceb5 MD |
382 | void ltt_session_destroy(struct ltt_session *session); |
383 | ||
384 | struct ltt_channel *ltt_channel_create(struct ltt_session *session, | |
385 | const char *transport_name, | |
386 | void *buf_addr, | |
387 | size_t subbuf_size, size_t num_subbuf, | |
388 | unsigned int switch_timer_interval, | |
193183fb | 389 | unsigned int read_timer_interval, |
ef9ff354 MD |
390 | int **shm_fd, int **wait_fd, |
391 | uint64_t **memory_map_size, | |
d028eddb | 392 | struct ltt_channel *chan_priv_init); |
8020ceb5 MD |
393 | struct ltt_channel *ltt_global_channel_create(struct ltt_session *session, |
394 | int overwrite, void *buf_addr, | |
395 | size_t subbuf_size, size_t num_subbuf, | |
396 | unsigned int switch_timer_interval, | |
193183fb | 397 | unsigned int read_timer_interval, |
ef9ff354 MD |
398 | int **shm_fd, int **wait_fd, |
399 | uint64_t **memory_map_size); | |
8020ceb5 | 400 | |
576599a0 MD |
401 | int ltt_event_create(struct ltt_channel *chan, |
402 | struct lttng_ust_event *event_param, | |
403 | void *filter, | |
404 | struct ltt_event **event); | |
8020ceb5 | 405 | |
976fe9ea MD |
406 | int ltt_channel_enable(struct ltt_channel *channel); |
407 | int ltt_channel_disable(struct ltt_channel *channel); | |
408 | int ltt_event_enable(struct ltt_event *event); | |
409 | int ltt_event_disable(struct ltt_event *event); | |
410 | ||
8020ceb5 MD |
411 | void ltt_transport_register(struct ltt_transport *transport); |
412 | void ltt_transport_unregister(struct ltt_transport *transport); | |
413 | ||
4b4de73e | 414 | void synchronize_trace(void); |
8020ceb5 MD |
415 | |
416 | int ltt_probe_register(struct lttng_probe_desc *desc); | |
417 | void ltt_probe_unregister(struct lttng_probe_desc *desc); | |
8165c8da | 418 | int pending_probe_fix_events(const struct lttng_event_desc *desc); |
8020ceb5 MD |
419 | const struct lttng_event_desc *ltt_event_get(const char *name); |
420 | void ltt_event_put(const struct lttng_event_desc *desc); | |
421 | int ltt_probes_init(void); | |
422 | void ltt_probes_exit(void); | |
8173ec7c MD |
423 | int lttng_find_context(struct lttng_ctx *ctx, const char *name); |
424 | struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p); | |
425 | void lttng_remove_context_field(struct lttng_ctx **ctx_p, | |
8020ceb5 MD |
426 | struct lttng_ctx_field *field); |
427 | void lttng_destroy_context(struct lttng_ctx *ctx); | |
3b402b40 | 428 | int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx); |
c1ef86f0 | 429 | int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx); |
8173ec7c | 430 | int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx); |
4847e9bb | 431 | int lttng_add_procname_to_ctx(struct lttng_ctx **ctx); |
a93bfc45 | 432 | void lttng_context_vtid_reset(void); |
c1ef86f0 | 433 | void lttng_context_vpid_reset(void); |
9f3fdbc6 | 434 | |
7a784989 MD |
435 | const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadata; |
436 | const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard; | |
437 | const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite; | |
c1fca457 | 438 | |
c1fca457 MD |
439 | struct ltt_transport *ltt_transport_find(const char *name); |
440 | ||
c8fcf224 MD |
441 | int ltt_probes_get_event_list(struct lttng_ust_tracepoint_list *list); |
442 | void ltt_probes_prune_event_list(struct lttng_ust_tracepoint_list *list); | |
443 | struct lttng_ust_tracepoint_iter * | |
444 | lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list); | |
445 | ||
e6c12e3d MD |
446 | int ltt_wildcard_enable(struct session_wildcard *wildcard); |
447 | int ltt_wildcard_disable(struct session_wildcard *wildcard); | |
448 | int ltt_wildcard_create(struct ltt_channel *chan, | |
449 | struct lttng_ust_event *event_param, | |
450 | struct session_wildcard **sl); | |
457a6b58 MD |
451 | int ltt_loglevel_match(const struct lttng_event_desc *desc, |
452 | enum lttng_ust_loglevel_type req_type, | |
453 | int req_loglevel); | |
454 | void ltt_probes_create_wildcard_events(struct wildcard_entry *entry, | |
455 | struct session_wildcard *wildcard); | |
e6c12e3d | 456 | |
51489cad | 457 | #endif /* _LTTNG_UST_EVENTS_H */ |