Fix: handle enablers without bytecode
[lttng-ust.git] / include / lttng / ust-events.h
CommitLineData
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 6 *
e92f3e28 7 * Copyright 2010-2012 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8020ceb5
MD
8 *
9 * Holds LTTng per-session event registry.
10 *
e92f3e28
MD
11 * Permission is hereby granted, free of charge, to any person obtaining a copy
12 * of this software and associated documentation files (the "Software"), to deal
13 * in the Software without restriction, including without limitation the rights
14 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 * copies of the Software, and to permit persons to whom the Software is
16 * furnished to do so, subject to the following conditions:
a60d70e6 17 *
e92f3e28
MD
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
8020ceb5
MD
20 */
21
9f3fdbc6 22#include <urcu/list.h>
1f18504e 23#include <urcu/hlist.h>
9f3fdbc6 24#include <stdint.h>
4318ae1b
MD
25#include <lttng/ust-abi.h>
26#include <lttng/ust-tracer.h>
2ae57758 27#include <lttng/ust-endian.h>
20f1eee7 28#include <float.h>
8020ceb5 29
19d8b1b3
MD
30#define LTTNG_UST_UUID_LEN 16
31
7dd08bec
MD
32struct lttng_channel;
33struct lttng_session;
4cfec15c 34struct lttng_ust_lib_ring_buffer_ctx;
8020ceb5 35
37d5e202
MD
36/*
37 * Data structures used by tracepoint event declarations, and by the
38 * tracer. Those structures have padding for future extension.
39 */
40
c1fca457
MD
41/*
42 * LTTng client type enumeration. Used by the consumer to map the
43 * callbacks from its own address space.
44 */
45enum lttng_client_types {
46 LTTNG_CLIENT_METADATA = 0,
47 LTTNG_CLIENT_DISCARD = 1,
48 LTTNG_CLIENT_OVERWRITE = 2,
49 LTTNG_NR_CLIENT_TYPES,
50};
51
8020ceb5
MD
52/* Type description */
53
54/* Update the astract_types name table in lttng-types.c along with this enum */
7dd08bec 55enum lttng_abstract_types {
8020ceb5
MD
56 atype_integer,
57 atype_enum,
58 atype_array,
59 atype_sequence,
60 atype_string,
20f1eee7 61 atype_float,
8020ceb5
MD
62 NR_ABSTRACT_TYPES,
63};
64
65/* Update the string_encodings name table in lttng-types.c along with this enum */
66enum lttng_string_encodings {
67 lttng_encode_none = 0,
68 lttng_encode_UTF8 = 1,
69 lttng_encode_ASCII = 2,
70 NR_STRING_ENCODINGS,
71};
72
37d5e202 73#define LTTNG_UST_ENUM_ENTRY_PADDING 16
8020ceb5
MD
74struct lttng_enum_entry {
75 unsigned long long start, end; /* start and end are inclusive */
76 const char *string;
37d5e202 77 char padding[LTTNG_UST_ENUM_ENTRY_PADDING];
8020ceb5
MD
78};
79
80#define __type_integer(_type, _byte_order, _base, _encoding) \
81 { \
82 .atype = atype_integer, \
83 .u.basic.integer = \
84 { \
85 .size = sizeof(_type) * CHAR_BIT, \
1dbfff0c
MD
86 .alignment = lttng_alignof(_type) * CHAR_BIT, \
87 .signedness = lttng_is_signed_type(_type), \
8d1d746f 88 .reverse_byte_order = _byte_order != BYTE_ORDER, \
8020ceb5
MD
89 .base = _base, \
90 .encoding = lttng_encode_##_encoding, \
91 }, \
92 } \
93
37d5e202 94#define LTTNG_UST_INTEGER_TYPE_PADDING 24
8020ceb5
MD
95struct lttng_integer_type {
96 unsigned int size; /* in bits */
97 unsigned short alignment; /* in bits */
98 unsigned int signedness:1;
99 unsigned int reverse_byte_order:1;
100 unsigned int base; /* 2, 8, 10, 16, for pretty print */
101 enum lttng_string_encodings encoding;
37d5e202 102 char padding[LTTNG_UST_INTEGER_TYPE_PADDING];
8020ceb5
MD
103};
104
d3ed854b
MD
105/*
106 * Only float and double are supported. long double is not supported at
107 * the moment.
108 */
20f1eee7
MD
109#define _float_mant_dig(_type) \
110 (sizeof(_type) == sizeof(float) ? FLT_MANT_DIG \
111 : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG \
d3ed854b 112 : 0))
20f1eee7
MD
113
114#define __type_float(_type) \
115 { \
116 .atype = atype_float, \
117 .u.basic._float = \
118 { \
119 .exp_dig = sizeof(_type) * CHAR_BIT \
120 - _float_mant_dig(_type), \
121 .mant_dig = _float_mant_dig(_type), \
1dbfff0c 122 .alignment = lttng_alignof(_type) * CHAR_BIT, \
ad496c21 123 .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER, \
20f1eee7
MD
124 }, \
125 } \
126
37d5e202 127#define LTTNG_UST_FLOAT_TYPE_PADDING 24
20f1eee7
MD
128struct lttng_float_type {
129 unsigned int exp_dig; /* exponent digits, in bits */
130 unsigned int mant_dig; /* mantissa digits, in bits */
131 unsigned short alignment; /* in bits */
132 unsigned int reverse_byte_order:1;
37d5e202 133 char padding[LTTNG_UST_FLOAT_TYPE_PADDING];
20f1eee7
MD
134};
135
37d5e202 136#define LTTNG_UST_BASIC_TYPE_PADDING 128
8020ceb5
MD
137union _lttng_basic_type {
138 struct lttng_integer_type integer;
139 struct {
140 const char *name;
141 } enumeration;
142 struct {
143 enum lttng_string_encodings encoding;
144 } string;
20f1eee7 145 struct lttng_float_type _float;
37d5e202 146 char padding[LTTNG_UST_BASIC_TYPE_PADDING];
8020ceb5
MD
147};
148
149struct lttng_basic_type {
7dd08bec 150 enum lttng_abstract_types atype;
8020ceb5
MD
151 union {
152 union _lttng_basic_type basic;
153 } u;
154};
155
37d5e202 156#define LTTNG_UST_TYPE_PADDING 128
8020ceb5 157struct lttng_type {
7dd08bec 158 enum lttng_abstract_types atype;
8020ceb5
MD
159 union {
160 union _lttng_basic_type basic;
161 struct {
162 struct lttng_basic_type elem_type;
163 unsigned int length; /* num. elems. */
164 } array;
165 struct {
166 struct lttng_basic_type length_type;
167 struct lttng_basic_type elem_type;
168 } sequence;
37d5e202 169 char padding[LTTNG_UST_TYPE_PADDING];
8020ceb5
MD
170 } u;
171};
172
37d5e202 173#define LTTNG_UST_ENUM_TYPE_PADDING 24
8020ceb5
MD
174struct lttng_enum {
175 const char *name;
176 struct lttng_type container_type;
177 const struct lttng_enum_entry *entries;
23c8854a 178 unsigned int len;
37d5e202 179 char padding[LTTNG_UST_ENUM_TYPE_PADDING];
8020ceb5
MD
180};
181
180901e6
MD
182/*
183 * Event field description
184 *
185 * IMPORTANT: this structure is part of the ABI between the probe and
186 * UST. Fields need to be only added at the end, never reordered, never
187 * removed.
188 */
8020ceb5 189
4774c8f3 190#define LTTNG_UST_EVENT_FIELD_PADDING 28
8020ceb5
MD
191struct lttng_event_field {
192 const char *name;
193 struct lttng_type type;
180901e6 194 unsigned int nowrite; /* do not write into trace */
37d5e202 195 char padding[LTTNG_UST_EVENT_FIELD_PADDING];
8020ceb5
MD
196};
197
37d5e202 198#define LTTNG_UST_CTX_FIELD_PADDING 40
8020ceb5
MD
199struct lttng_ctx_field {
200 struct lttng_event_field event_field;
201 size_t (*get_size)(size_t offset);
202 void (*record)(struct lttng_ctx_field *field,
4cfec15c 203 struct lttng_ust_lib_ring_buffer_ctx *ctx,
7dd08bec 204 struct lttng_channel *chan);
8020ceb5 205 union {
37d5e202 206 char padding[LTTNG_UST_CTX_FIELD_PADDING];
8020ceb5
MD
207 } u;
208 void (*destroy)(struct lttng_ctx_field *field);
209};
210
37d5e202 211#define LTTNG_UST_CTX_PADDING 24
8020ceb5
MD
212struct lttng_ctx {
213 struct lttng_ctx_field *fields;
214 unsigned int nr_fields;
215 unsigned int allocated_fields;
37d5e202
MD
216 char padding[LTTNG_UST_CTX_PADDING];
217};
218
219#define LTTNG_UST_EVENT_DESC_PADDING 40
220struct lttng_event_desc {
221 const char *name;
fbdeb5ec 222 void (*probe_callback)(void);
37d5e202
MD
223 const struct lttng_event_ctx *ctx; /* context */
224 const struct lttng_event_field *fields; /* event payload */
225 unsigned int nr_fields;
226 const int **loglevel;
68755429 227 const char *signature; /* Argument types/names received */
6ddc916d
MD
228 union {
229 struct {
230 const char **model_emf_uri;
231 } ext;
232 char padding[LTTNG_UST_EVENT_DESC_PADDING];
233 } u;
37d5e202
MD
234};
235
236#define LTTNG_UST_PROBE_DESC_PADDING 40
237struct lttng_probe_desc {
238 const char *provider;
239 const struct lttng_event_desc **event_desc;
240 unsigned int nr_events;
241 struct cds_list_head head; /* chain registered probes */
242 char padding[LTTNG_UST_PROBE_DESC_PADDING];
8020ceb5
MD
243};
244
37d5e202
MD
245/* Data structures used by the tracer. */
246
e58095ef
MD
247enum lttng_enabler_type {
248 LTTNG_ENABLER_WILDCARD,
249 LTTNG_ENABLER_EVENT,
e6c12e3d
MD
250};
251
252/*
e58095ef
MD
253 * Enabler field, within whatever object is enabling an event. Target of
254 * backward reference.
e6c12e3d 255 */
e58095ef
MD
256struct lttng_enabler {
257 enum lttng_enabler_type type;
258
259 /* head list of struct lttng_ust_filter_bytecode_node */
260 struct cds_list_head filter_bytecode_head;
261 struct cds_list_head node; /* per-session list of enablers */
262
263 struct lttng_ust_event event_param;
264 struct lttng_channel *chan;
265 struct lttng_ctx *ctx;
266 unsigned int enabled:1;
e6c12e3d
MD
267};
268
c8fcf224
MD
269struct tp_list_entry {
270 struct lttng_ust_tracepoint_iter tp;
271 struct cds_list_head head;
272};
273
274struct lttng_ust_tracepoint_list {
275 struct tp_list_entry *iter;
276 struct cds_list_head head;
8020ceb5
MD
277};
278
06d4f27e
MD
279struct tp_field_list_entry {
280 struct lttng_ust_field_iter field;
281 struct cds_list_head head;
282};
283
284struct lttng_ust_field_list {
285 struct tp_field_list_entry *iter;
286 struct cds_list_head head;
287};
288
8165c8da 289struct ust_pending_probe;
7dd08bec 290struct lttng_event;
f488575f
MD
291
292struct lttng_ust_filter_bytecode_node {
293 struct cds_list_head node;
e58095ef 294 struct lttng_enabler *enabler;
a543151c
MD
295 /*
296 * struct lttng_ust_filter_bytecode has var. sized array, must
297 * be last field.
298 */
299 struct lttng_ust_filter_bytecode bc;
f488575f
MD
300};
301
8a92ed2a
MD
302/*
303 * Filter return value masks.
304 */
305enum lttng_filter_ret {
306 LTTNG_FILTER_DISCARD = 0,
307 LTTNG_FILTER_RECORD_FLAG = (1ULL << 0),
308 /* Other bits are kept for future use. */
309};
310
f488575f
MD
311struct lttng_bytecode_runtime {
312 /* Associated bytecode */
313 struct lttng_ust_filter_bytecode_node *bc;
8a92ed2a 314 uint64_t (*filter)(void *filter_data, const char *filter_stack_data);
21af05a9 315 int link_failed;
e58095ef
MD
316 struct cds_list_head node; /* list of bytecode runtime in event */
317};
318
319/*
320 * Objects in a linked-list of enablers, owned by an event.
321 */
322struct lttng_enabler_ref {
323 struct cds_list_head node; /* enabler ref list */
324 struct lttng_enabler *ref; /* backward ref */
f488575f 325};
8165c8da 326
8020ceb5 327/*
7dd08bec
MD
328 * lttng_event structure is referred to by the tracing fast path. It
329 * must be kept small.
180901e6
MD
330 *
331 * IMPORTANT: this structure is part of the ABI between the probe and
332 * UST. Fields need to be only added at the end, never reordered, never
333 * removed.
8020ceb5 334 */
7dd08bec 335struct lttng_event {
180901e6 336 /* LTTng-UST 2.0 starts here */
8020ceb5 337 unsigned int id;
7dd08bec 338 struct lttng_channel *chan;
976fe9ea 339 int enabled;
8020ceb5 340 const struct lttng_event_desc *desc;
e58095ef 341 void *_deprecated1;
8020ceb5 342 struct lttng_ctx *ctx;
9f3fdbc6 343 enum lttng_ust_instrumentation instrumentation;
8020ceb5 344 union {
8020ceb5 345 } u;
e58095ef
MD
346 struct cds_list_head node; /* Event list in session */
347 struct cds_list_head _deprecated2;
348 void *_deprecated3;
7c2caf2b 349 unsigned int metadata_dumped:1;
e58095ef 350
180901e6 351 /* LTTng-UST 2.1 starts here */
e58095ef
MD
352 /* list of struct lttng_bytecode_runtime, sorted by seqnum */
353 struct cds_list_head bytecode_runtime_head;
dcdeaff0 354 int has_enablers_without_bytecode;
e58095ef
MD
355 /* Backward references: list of lttng_enabler_ref (ref to enablers) */
356 struct cds_list_head enablers_ref_head;
8020ceb5
MD
357};
358
8d8a24c8 359struct channel;
38fae1d3 360struct lttng_ust_shm_handle;
8d8a24c8 361
180901e6
MD
362/*
363 * IMPORTANT: this structure is part of the ABI between the probe and
364 * UST. Fields need to be only added at the end, never reordered, never
365 * removed.
366 */
7dd08bec
MD
367struct lttng_channel_ops {
368 struct lttng_channel *(*channel_create)(const char *name,
8020ceb5
MD
369 void *buf_addr,
370 size_t subbuf_size, size_t num_subbuf,
371 unsigned int switch_timer_interval,
193183fb 372 unsigned int read_timer_interval,
ef9ff354
MD
373 int **shm_fd, int **wait_fd,
374 uint64_t **memory_map_size,
7dd08bec
MD
375 struct lttng_channel *chan_priv_init);
376 void (*channel_destroy)(struct lttng_channel *lttng_chan);
4cfec15c 377 struct lttng_ust_lib_ring_buffer *(*buffer_read_open)(struct channel *chan,
38fae1d3 378 struct lttng_ust_shm_handle *handle,
ef9ff354
MD
379 int **shm_fd, int **wait_fd,
380 uint64_t **memory_map_size);
4cfec15c 381 void (*buffer_read_close)(struct lttng_ust_lib_ring_buffer *buf,
38fae1d3 382 struct lttng_ust_shm_handle *handle);
4cfec15c 383 int (*event_reserve)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
8020ceb5 384 uint32_t event_id);
4cfec15c
MD
385 void (*event_commit)(struct lttng_ust_lib_ring_buffer_ctx *ctx);
386 void (*event_write)(struct lttng_ust_lib_ring_buffer_ctx *ctx, const void *src,
8020ceb5
MD
387 size_t len);
388 /*
389 * packet_avail_size returns the available size in the current
390 * packet. Note that the size returned is only a hint, since it
391 * may change due to concurrent writes.
392 */
1d498196 393 size_t (*packet_avail_size)(struct channel *chan,
38fae1d3 394 struct lttng_ust_shm_handle *handle);
9f3fdbc6
MD
395 //wait_queue_head_t *(*get_reader_wait_queue)(struct channel *chan);
396 //wait_queue_head_t *(*get_hp_wait_queue)(struct channel *chan);
8020ceb5
MD
397 int (*is_finalized)(struct channel *chan);
398 int (*is_disabled)(struct channel *chan);
38fae1d3 399 int (*flush_buffer)(struct channel *chan, struct lttng_ust_shm_handle *handle);
8020ceb5
MD
400};
401
180901e6
MD
402/*
403 * IMPORTANT: this structure is part of the ABI between the probe and
404 * UST. Fields need to be only added at the end, never reordered, never
405 * removed.
406 */
7dd08bec 407struct lttng_channel {
a3f61e7f
MD
408 /*
409 * The pointers located in this private data are NOT safe to be
410 * dereferenced by the consumer. The only operations the
411 * consumer process is designed to be allowed to do is to read
412 * and perform subbuffer flush.
413 */
8020ceb5 414 struct channel *chan; /* Channel buffers */
976fe9ea 415 int enabled;
8020ceb5
MD
416 struct lttng_ctx *ctx;
417 /* Event ID management */
7dd08bec 418 struct lttng_session *session;
0a42beb6 419 int objd; /* Object associated to channel */
8020ceb5 420 unsigned int free_event_id; /* Next event ID to allocate */
8165c8da 421 unsigned int used_event_id; /* Max allocated event IDs */
e58095ef 422 struct cds_list_head node; /* Channel list in session */
7dd08bec 423 struct lttng_channel_ops *ops;
8020ceb5 424 int header_type; /* 0: unset, 1: compact, 2: large */
38fae1d3 425 struct lttng_ust_shm_handle *handle; /* shared-memory handle */
7c2caf2b 426 unsigned int metadata_dumped:1;
a3f61e7f
MD
427
428 /* Channel ID, available for consumer too */
429 unsigned int id;
430 /* Copy of session UUID for consumer (availability through shm) */
19d8b1b3 431 unsigned char uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */
8020ceb5
MD
432};
433
e58095ef
MD
434#define LTTNG_UST_EVENT_HT_BITS 6
435#define LTTNG_UST_EVENT_HT_SIZE (1U << LTTNG_UST_EVENT_HT_BITS)
436
437struct lttng_ust_event_ht {
438 struct cds_hlist_head table[LTTNG_UST_EVENT_HT_SIZE];
439};
440
180901e6
MD
441/*
442 * IMPORTANT: this structure is part of the ABI between the probe and
443 * UST. Fields need to be only added at the end, never reordered, never
444 * removed.
445 */
7dd08bec 446struct lttng_session {
e58095ef
MD
447 int active; /* Is trace session active ? */
448 int been_active; /* Been active ? */
449 int objd; /* Object associated */
450 struct lttng_channel *metadata; /* Metadata channel */
451 struct cds_list_head chan_head; /* Channel list head */
452 struct cds_list_head events_head; /* list of events */
453 struct cds_list_head _deprecated1;
454 struct cds_list_head node; /* Session list */
455 unsigned int free_chan_id; /* Next chan ID to allocate */
19d8b1b3 456 unsigned char uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */
7c2caf2b 457 unsigned int metadata_dumped:1;
e58095ef
MD
458
459 /* New UST 2.1 */
460 /* List of enablers */
461 struct cds_list_head enablers_head;
8020ceb5
MD
462};
463
7dd08bec 464struct lttng_transport {
8020ceb5 465 char *name;
9f3fdbc6 466 struct cds_list_head node;
7dd08bec 467 struct lttng_channel_ops ops;
8020ceb5
MD
468};
469
7dd08bec
MD
470struct lttng_session *lttng_session_create(void);
471int lttng_session_enable(struct lttng_session *session);
472int lttng_session_disable(struct lttng_session *session);
473void lttng_session_destroy(struct lttng_session *session);
8020ceb5 474
7dd08bec 475struct lttng_channel *lttng_channel_create(struct lttng_session *session,
8020ceb5
MD
476 const char *transport_name,
477 void *buf_addr,
478 size_t subbuf_size, size_t num_subbuf,
479 unsigned int switch_timer_interval,
193183fb 480 unsigned int read_timer_interval,
ef9ff354
MD
481 int **shm_fd, int **wait_fd,
482 uint64_t **memory_map_size,
7dd08bec
MD
483 struct lttng_channel *chan_priv_init);
484struct lttng_channel *lttng_global_channel_create(struct lttng_session *session,
8020ceb5
MD
485 int overwrite, void *buf_addr,
486 size_t subbuf_size, size_t num_subbuf,
487 unsigned int switch_timer_interval,
193183fb 488 unsigned int read_timer_interval,
ef9ff354
MD
489 int **shm_fd, int **wait_fd,
490 uint64_t **memory_map_size);
8020ceb5 491
7dd08bec
MD
492int lttng_channel_enable(struct lttng_channel *channel);
493int lttng_channel_disable(struct lttng_channel *channel);
e58095ef
MD
494
495struct lttng_enabler *lttng_enabler_create(enum lttng_enabler_type type,
496 struct lttng_ust_event *event_param,
497 struct lttng_channel *chan);
498int lttng_enabler_enable(struct lttng_enabler *enabler);
499int lttng_enabler_disable(struct lttng_enabler *enabler);
500int lttng_enabler_attach_bytecode(struct lttng_enabler *enabler,
501 struct lttng_ust_filter_bytecode_node *bytecode);
502int lttng_enabler_attach_context(struct lttng_enabler *enabler,
503 struct lttng_ust_context *ctx);
504
505int lttng_attach_context(struct lttng_ust_context *context_param,
506 struct lttng_ctx **ctx, struct lttng_session *session);
976fe9ea 507
7dd08bec
MD
508void lttng_transport_register(struct lttng_transport *transport);
509void lttng_transport_unregister(struct lttng_transport *transport);
8020ceb5 510
4b4de73e 511void synchronize_trace(void);
8020ceb5 512
7dd08bec
MD
513int lttng_probe_register(struct lttng_probe_desc *desc);
514void lttng_probe_unregister(struct lttng_probe_desc *desc);
e58095ef 515int lttng_fix_pending_event_desc(const struct lttng_event_desc *desc);
7dd08bec
MD
516const struct lttng_event_desc *lttng_event_get(const char *name);
517void lttng_event_put(const struct lttng_event_desc *desc);
518int lttng_probes_init(void);
519void lttng_probes_exit(void);
8173ec7c
MD
520int lttng_find_context(struct lttng_ctx *ctx, const char *name);
521struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p);
522void lttng_remove_context_field(struct lttng_ctx **ctx_p,
8020ceb5
MD
523 struct lttng_ctx_field *field);
524void lttng_destroy_context(struct lttng_ctx *ctx);
3b402b40 525int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx);
c1ef86f0 526int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx);
8173ec7c 527int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx);
4847e9bb 528int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
a93bfc45 529void lttng_context_vtid_reset(void);
c1ef86f0 530void lttng_context_vpid_reset(void);
9f3fdbc6 531
5a821cd6
MD
532extern const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_metadata;
533extern const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_discard;
534extern const struct lttng_ust_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite;
c1fca457 535
7dd08bec 536struct lttng_transport *lttng_transport_find(const char *name);
c1fca457 537
7dd08bec
MD
538int lttng_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
539void lttng_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
c8fcf224
MD
540struct lttng_ust_tracepoint_iter *
541 lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
7dd08bec
MD
542int lttng_probes_get_field_list(struct lttng_ust_field_list *list);
543void lttng_probes_prune_field_list(struct lttng_ust_field_list *list);
06d4f27e
MD
544struct lttng_ust_field_iter *
545 lttng_ust_field_list_get_iter_next(struct lttng_ust_field_list *list);
c8fcf224 546
7dd08bec 547void lttng_filter_event_link_bytecode(struct lttng_event *event);
e58095ef
MD
548void lttng_enabler_event_link_bytecode(struct lttng_event *event,
549 struct lttng_enabler *enabler);
7dd08bec 550void lttng_free_event_filter_runtime(struct lttng_event *event);
e58095ef
MD
551void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime);
552
553struct cds_list_head *lttng_get_probe_list_head(void);
e6c12e3d 554
51489cad 555#endif /* _LTTNG_UST_EVENTS_H */
This page took 0.055786 seconds and 4 git commands to generate.