01f611b29c789909f7f933698c1e71b7be8d9cc6
[lttng-ust.git] / include / lttng / ust-events.h
1 #ifndef _LTTNG_UST_EVENTS_H
2 #define _LTTNG_UST_EVENTS_H
3
4 /*
5 * lttng/ust-events.h
6 *
7 * Copyright 2010-2012 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * Holds LTTng per-session event registry.
10 *
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:
17 *
18 * The above copyright notice and this permission notice shall be included in
19 * all copies or substantial portions of the Software.
20 *
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27 * SOFTWARE.
28 */
29
30 #include <urcu/list.h>
31 #include <urcu/hlist.h>
32 #include <stdint.h>
33 #include <lttng/ust-config.h>
34 #include <lttng/ust-abi.h>
35 #include <lttng/ust-tracer.h>
36 #include <lttng/ust-endian.h>
37 #include <float.h>
38 #include <errno.h>
39 #include <urcu/ref.h>
40 #include <pthread.h>
41
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45
46 #define LTTNG_UST_UUID_LEN 16
47
48 /*
49 * Tracepoint provider version. Compatibility based on the major number.
50 * Older tracepoint providers can always register to newer lttng-ust
51 * library, but the opposite is rejected: a newer tracepoint provider is
52 * rejected by an older lttng-ust library.
53 */
54 #define LTTNG_UST_PROVIDER_MAJOR 1
55 #define LTTNG_UST_PROVIDER_MINOR 0
56
57 struct lttng_channel;
58 struct lttng_session;
59 struct lttng_ust_lib_ring_buffer_ctx;
60
61 /*
62 * Data structures used by tracepoint event declarations, and by the
63 * tracer. Those structures have padding for future extension.
64 */
65
66 /*
67 * LTTng client type enumeration. Used by the consumer to map the
68 * callbacks from its own address space.
69 */
70 enum lttng_client_types {
71 LTTNG_CLIENT_METADATA = 0,
72 LTTNG_CLIENT_DISCARD = 1,
73 LTTNG_CLIENT_OVERWRITE = 2,
74 LTTNG_CLIENT_DISCARD_RT = 3,
75 LTTNG_CLIENT_OVERWRITE_RT = 4,
76 LTTNG_NR_CLIENT_TYPES,
77 };
78
79 /* Type description */
80
81 /* Update the astract_types name table in lttng-types.c along with this enum */
82 enum lttng_abstract_types {
83 atype_integer,
84 atype_enum,
85 atype_array,
86 atype_sequence,
87 atype_string,
88 atype_float,
89 NR_ABSTRACT_TYPES,
90 };
91
92 /* Update the string_encodings name table in lttng-types.c along with this enum */
93 enum lttng_string_encodings {
94 lttng_encode_none = 0,
95 lttng_encode_UTF8 = 1,
96 lttng_encode_ASCII = 2,
97 NR_STRING_ENCODINGS,
98 };
99
100 #define LTTNG_UST_ENUM_ENTRY_PADDING 16
101 struct lttng_enum_entry {
102 unsigned long long start, end; /* start and end are inclusive */
103 const char *string;
104 char padding[LTTNG_UST_ENUM_ENTRY_PADDING];
105 };
106
107 #define __type_integer(_type, _byte_order, _base, _encoding) \
108 { \
109 .atype = atype_integer, \
110 .u = \
111 { \
112 .basic = \
113 { \
114 .integer = \
115 { \
116 .size = sizeof(_type) * CHAR_BIT, \
117 .alignment = lttng_alignof(_type) * CHAR_BIT, \
118 .signedness = lttng_is_signed_type(_type), \
119 .reverse_byte_order = _byte_order != BYTE_ORDER, \
120 .base = _base, \
121 .encoding = lttng_encode_##_encoding, \
122 } \
123 } \
124 }, \
125 } \
126
127 #define LTTNG_UST_INTEGER_TYPE_PADDING 24
128 struct lttng_integer_type {
129 unsigned int size; /* in bits */
130 unsigned short alignment; /* in bits */
131 unsigned int signedness:1;
132 unsigned int reverse_byte_order:1;
133 unsigned int base; /* 2, 8, 10, 16, for pretty print */
134 enum lttng_string_encodings encoding;
135 char padding[LTTNG_UST_INTEGER_TYPE_PADDING];
136 };
137
138 /*
139 * Only float and double are supported. long double is not supported at
140 * the moment.
141 */
142 #define _float_mant_dig(_type) \
143 (sizeof(_type) == sizeof(float) ? FLT_MANT_DIG \
144 : (sizeof(_type) == sizeof(double) ? DBL_MANT_DIG \
145 : 0))
146
147 #define __type_float(_type) \
148 { \
149 .atype = atype_float, \
150 .u = \
151 { \
152 .basic = \
153 { \
154 ._float = \
155 { \
156 .exp_dig = sizeof(_type) * CHAR_BIT \
157 - _float_mant_dig(_type), \
158 .mant_dig = _float_mant_dig(_type), \
159 .alignment = lttng_alignof(_type) * CHAR_BIT, \
160 .reverse_byte_order = BYTE_ORDER != FLOAT_WORD_ORDER, \
161 } \
162 } \
163 }, \
164 } \
165
166 #define LTTNG_UST_FLOAT_TYPE_PADDING 24
167 struct lttng_float_type {
168 unsigned int exp_dig; /* exponent digits, in bits */
169 unsigned int mant_dig; /* mantissa digits, in bits */
170 unsigned short alignment; /* in bits */
171 unsigned int reverse_byte_order:1;
172 char padding[LTTNG_UST_FLOAT_TYPE_PADDING];
173 };
174
175 #define LTTNG_UST_BASIC_TYPE_PADDING 128
176 union _lttng_basic_type {
177 struct lttng_integer_type integer;
178 struct {
179 const char *name;
180 } enumeration;
181 struct {
182 enum lttng_string_encodings encoding;
183 } string;
184 struct lttng_float_type _float;
185 char padding[LTTNG_UST_BASIC_TYPE_PADDING];
186 };
187
188 struct lttng_basic_type {
189 enum lttng_abstract_types atype;
190 union {
191 union _lttng_basic_type basic;
192 } u;
193 };
194
195 #define LTTNG_UST_TYPE_PADDING 128
196 struct lttng_type {
197 enum lttng_abstract_types atype;
198 union {
199 union _lttng_basic_type basic;
200 struct {
201 struct lttng_basic_type elem_type;
202 unsigned int length; /* num. elems. */
203 } array;
204 struct {
205 struct lttng_basic_type length_type;
206 struct lttng_basic_type elem_type;
207 } sequence;
208 char padding[LTTNG_UST_TYPE_PADDING];
209 } u;
210 };
211
212 #define LTTNG_UST_ENUM_TYPE_PADDING 24
213 struct lttng_enum {
214 const char *name;
215 struct lttng_type container_type;
216 const struct lttng_enum_entry *entries;
217 unsigned int len;
218 char padding[LTTNG_UST_ENUM_TYPE_PADDING];
219 };
220
221 /*
222 * Event field description
223 *
224 * IMPORTANT: this structure is part of the ABI between the probe and
225 * UST. Fields need to be only added at the end, never reordered, never
226 * removed.
227 */
228
229 #define LTTNG_UST_EVENT_FIELD_PADDING 28
230 struct lttng_event_field {
231 const char *name;
232 struct lttng_type type;
233 unsigned int nowrite; /* do not write into trace */
234 char padding[LTTNG_UST_EVENT_FIELD_PADDING];
235 };
236
237 union lttng_ctx_value {
238 int64_t s64;
239 const char *str;
240 double d;
241 };
242
243 struct lttng_perf_counter_field;
244
245 #define LTTNG_UST_CTX_FIELD_PADDING 40
246 struct lttng_ctx_field {
247 struct lttng_event_field event_field;
248 size_t (*get_size)(size_t offset);
249 void (*record)(struct lttng_ctx_field *field,
250 struct lttng_ust_lib_ring_buffer_ctx *ctx,
251 struct lttng_channel *chan);
252 void (*get_value)(struct lttng_ctx_field *field,
253 union lttng_ctx_value *value);
254 union {
255 struct lttng_perf_counter_field *perf_counter;
256 char padding[LTTNG_UST_CTX_FIELD_PADDING];
257 } u;
258 void (*destroy)(struct lttng_ctx_field *field);
259 };
260
261 #define LTTNG_UST_CTX_PADDING 24
262 struct lttng_ctx {
263 struct lttng_ctx_field *fields;
264 unsigned int nr_fields;
265 unsigned int allocated_fields;
266 char padding[LTTNG_UST_CTX_PADDING];
267 };
268
269 #define LTTNG_UST_EVENT_DESC_PADDING 40
270 struct lttng_event_desc {
271 const char *name;
272 void (*probe_callback)(void);
273 const struct lttng_event_ctx *ctx; /* context */
274 const struct lttng_event_field *fields; /* event payload */
275 unsigned int nr_fields;
276 const int **loglevel;
277 const char *signature; /* Argument types/names received */
278 union {
279 struct {
280 const char **model_emf_uri;
281 } ext;
282 char padding[LTTNG_UST_EVENT_DESC_PADDING];
283 } u;
284 };
285
286 #define LTTNG_UST_PROBE_DESC_PADDING 12
287 struct lttng_probe_desc {
288 const char *provider;
289 const struct lttng_event_desc **event_desc;
290 unsigned int nr_events;
291 struct cds_list_head head; /* chain registered probes */
292 struct cds_list_head lazy_init_head;
293 int lazy; /* lazy registration */
294 uint32_t major;
295 uint32_t minor;
296 char padding[LTTNG_UST_PROBE_DESC_PADDING];
297 };
298
299 /* Data structures used by the tracer. */
300
301 enum lttng_enabler_type {
302 LTTNG_ENABLER_WILDCARD,
303 LTTNG_ENABLER_EVENT,
304 };
305
306 /*
307 * Enabler field, within whatever object is enabling an event. Target of
308 * backward reference.
309 */
310 struct lttng_enabler {
311 enum lttng_enabler_type type;
312
313 /* head list of struct lttng_ust_filter_bytecode_node */
314 struct cds_list_head filter_bytecode_head;
315 /* head list of struct lttng_ust_excluder_node */
316 struct cds_list_head excluder_head;
317 struct cds_list_head node; /* per-session list of enablers */
318
319 struct lttng_ust_event event_param;
320 struct lttng_channel *chan;
321 struct lttng_ctx *ctx;
322 unsigned int enabled:1;
323 };
324
325 struct tp_list_entry {
326 struct lttng_ust_tracepoint_iter tp;
327 struct cds_list_head head;
328 };
329
330 struct lttng_ust_tracepoint_list {
331 struct tp_list_entry *iter;
332 struct cds_list_head head;
333 };
334
335 struct tp_field_list_entry {
336 struct lttng_ust_field_iter field;
337 struct cds_list_head head;
338 };
339
340 struct lttng_ust_field_list {
341 struct tp_field_list_entry *iter;
342 struct cds_list_head head;
343 };
344
345 struct ust_pending_probe;
346 struct lttng_event;
347
348 struct lttng_ust_filter_bytecode_node {
349 struct cds_list_head node;
350 struct lttng_enabler *enabler;
351 /*
352 * struct lttng_ust_filter_bytecode has var. sized array, must
353 * be last field.
354 */
355 struct lttng_ust_filter_bytecode bc;
356 };
357
358 struct lttng_ust_excluder_node {
359 struct cds_list_head node;
360 struct lttng_enabler *enabler;
361 /*
362 * struct lttng_ust_event_exclusion had variable sized array,
363 * must be last field.
364 */
365 struct lttng_ust_event_exclusion excluder;
366 };
367 /*
368 * Filter return value masks.
369 */
370 enum lttng_filter_ret {
371 LTTNG_FILTER_DISCARD = 0,
372 LTTNG_FILTER_RECORD_FLAG = (1ULL << 0),
373 /* Other bits are kept for future use. */
374 };
375
376 struct lttng_bytecode_runtime {
377 /* Associated bytecode */
378 struct lttng_ust_filter_bytecode_node *bc;
379 uint64_t (*filter)(void *filter_data, const char *filter_stack_data);
380 int link_failed;
381 struct cds_list_head node; /* list of bytecode runtime in event */
382 };
383
384 /*
385 * Objects in a linked-list of enablers, owned by an event.
386 */
387 struct lttng_enabler_ref {
388 struct cds_list_head node; /* enabler ref list */
389 struct lttng_enabler *ref; /* backward ref */
390 };
391
392 /*
393 * lttng_event structure is referred to by the tracing fast path. It
394 * must be kept small.
395 *
396 * IMPORTANT: this structure is part of the ABI between the probe and
397 * UST. Fields need to be only added at the end, never reordered, never
398 * removed.
399 */
400 struct lttng_event {
401 /* LTTng-UST 2.0 starts here */
402 unsigned int id;
403 struct lttng_channel *chan;
404 int enabled;
405 const struct lttng_event_desc *desc;
406 void *_deprecated1;
407 struct lttng_ctx *ctx;
408 enum lttng_ust_instrumentation instrumentation;
409 union {
410 } u;
411 struct cds_list_head node; /* Event list in session */
412 struct cds_list_head _deprecated2;
413 void *_deprecated3;
414 unsigned int _deprecated4:1;
415
416 /* LTTng-UST 2.1 starts here */
417 /* list of struct lttng_bytecode_runtime, sorted by seqnum */
418 struct cds_list_head bytecode_runtime_head;
419 int has_enablers_without_bytecode;
420 /* Backward references: list of lttng_enabler_ref (ref to enablers) */
421 struct cds_list_head enablers_ref_head;
422 struct cds_hlist_node hlist; /* session ht of events */
423 int registered; /* has reg'd tracepoint probe */
424 };
425
426 struct channel;
427 struct lttng_ust_shm_handle;
428
429 /*
430 * IMPORTANT: this structure is part of the ABI between the probe and
431 * UST. Fields need to be only added at the end, never reordered, never
432 * removed.
433 */
434 struct lttng_channel_ops {
435 struct lttng_channel *(*channel_create)(const char *name,
436 void *buf_addr,
437 size_t subbuf_size, size_t num_subbuf,
438 unsigned int switch_timer_interval,
439 unsigned int read_timer_interval,
440 unsigned char *uuid,
441 uint32_t chan_id);
442 void (*channel_destroy)(struct lttng_channel *chan);
443 union {
444 void *_deprecated1;
445 unsigned long has_strcpy:1; /* ABI has strcpy */
446 } u;
447 void *_deprecated2;
448 int (*event_reserve)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
449 uint32_t event_id);
450 void (*event_commit)(struct lttng_ust_lib_ring_buffer_ctx *ctx);
451 void (*event_write)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
452 const void *src, size_t len);
453 /*
454 * packet_avail_size returns the available size in the current
455 * packet. Note that the size returned is only a hint, since it
456 * may change due to concurrent writes.
457 */
458 size_t (*packet_avail_size)(struct channel *chan,
459 struct lttng_ust_shm_handle *handle);
460 //wait_queue_head_t *(*get_reader_wait_queue)(struct channel *chan);
461 //wait_queue_head_t *(*get_hp_wait_queue)(struct channel *chan);
462 int (*is_finalized)(struct channel *chan);
463 int (*is_disabled)(struct channel *chan);
464 int (*flush_buffer)(struct channel *chan, struct lttng_ust_shm_handle *handle);
465 void (*event_strcpy)(struct lttng_ust_lib_ring_buffer_ctx *ctx,
466 const char *src, size_t len);
467 };
468
469 /*
470 * IMPORTANT: this structure is part of the ABI between the probe and
471 * UST. Fields need to be only added at the end, never reordered, never
472 * removed.
473 */
474 struct lttng_channel {
475 /*
476 * The pointers located in this private data are NOT safe to be
477 * dereferenced by the consumer. The only operations the
478 * consumer process is designed to be allowed to do is to read
479 * and perform subbuffer flush.
480 */
481 struct channel *chan; /* Channel buffers */
482 int enabled;
483 struct lttng_ctx *ctx;
484 /* Event ID management */
485 struct lttng_session *session;
486 int objd; /* Object associated to channel */
487 unsigned int _deprecated1;
488 unsigned int _deprecated2;
489 struct cds_list_head node; /* Channel list in session */
490 const struct lttng_channel_ops *ops;
491 int header_type; /* 0: unset, 1: compact, 2: large */
492 struct lttng_ust_shm_handle *handle; /* shared-memory handle */
493 unsigned int _deprecated3:1;
494
495 /* Channel ID */
496 unsigned int id;
497 enum lttng_ust_chan_type type;
498 unsigned char uuid[LTTNG_UST_UUID_LEN]; /* Trace session unique ID */
499 int tstate:1; /* Transient enable state */
500 };
501
502 #define LTTNG_UST_EVENT_HT_BITS 12
503 #define LTTNG_UST_EVENT_HT_SIZE (1U << LTTNG_UST_EVENT_HT_BITS)
504
505 struct lttng_ust_event_ht {
506 struct cds_hlist_head table[LTTNG_UST_EVENT_HT_SIZE];
507 };
508
509 /*
510 * IMPORTANT: this structure is part of the ABI between the probe and
511 * UST. Fields need to be only added at the end, never reordered, never
512 * removed.
513 */
514 struct lttng_session {
515 int active; /* Is trace session active ? */
516 int been_active; /* Been active ? */
517 int objd; /* Object associated */
518 void *_deprecated1;
519 struct cds_list_head chan_head; /* Channel list head */
520 struct cds_list_head events_head; /* list of events */
521 struct cds_list_head _deprecated2;
522 struct cds_list_head node; /* Session list */
523 int _deprecated3;
524 unsigned int _deprecated4:1;
525
526 /* New UST 2.1 */
527 /* List of enablers */
528 struct cds_list_head enablers_head;
529 struct lttng_ust_event_ht events_ht; /* ht of events */
530 void *owner; /* object owner */
531 int tstate:1; /* Transient enable state */
532
533 /* New UST 2.4 */
534 int statedump_pending:1;
535 };
536
537 struct lttng_transport {
538 char *name;
539 struct cds_list_head node;
540 struct lttng_channel_ops ops;
541 const struct lttng_ust_lib_ring_buffer_config *client_config;
542 };
543
544 struct lttng_session *lttng_session_create(void);
545 int lttng_session_enable(struct lttng_session *session);
546 int lttng_session_disable(struct lttng_session *session);
547 void lttng_session_destroy(struct lttng_session *session);
548
549 struct lttng_channel *lttng_channel_create(struct lttng_session *session,
550 const char *transport_name,
551 void *buf_addr,
552 size_t subbuf_size, size_t num_subbuf,
553 unsigned int switch_timer_interval,
554 unsigned int read_timer_interval,
555 int **shm_fd, int **wait_fd,
556 uint64_t **memory_map_size,
557 struct lttng_channel *chan_priv_init);
558
559 int lttng_channel_enable(struct lttng_channel *channel);
560 int lttng_channel_disable(struct lttng_channel *channel);
561
562 struct lttng_enabler *lttng_enabler_create(enum lttng_enabler_type type,
563 struct lttng_ust_event *event_param,
564 struct lttng_channel *chan);
565 int lttng_enabler_enable(struct lttng_enabler *enabler);
566 int lttng_enabler_disable(struct lttng_enabler *enabler);
567 int lttng_enabler_attach_bytecode(struct lttng_enabler *enabler,
568 struct lttng_ust_filter_bytecode_node *bytecode);
569 int lttng_enabler_attach_context(struct lttng_enabler *enabler,
570 struct lttng_ust_context *ctx);
571 int lttng_enabler_attach_exclusion(struct lttng_enabler *enabler,
572 struct lttng_ust_excluder_node *excluder);
573
574 int lttng_attach_context(struct lttng_ust_context *context_param,
575 struct lttng_ctx **ctx, struct lttng_session *session);
576 void lttng_context_init(void);
577 void lttng_context_exit(void);
578 extern struct lttng_ctx *lttng_static_ctx; /* Used by filtering */
579
580 void lttng_transport_register(struct lttng_transport *transport);
581 void lttng_transport_unregister(struct lttng_transport *transport);
582
583 void synchronize_trace(void);
584
585 int lttng_probe_register(struct lttng_probe_desc *desc);
586 void lttng_probe_unregister(struct lttng_probe_desc *desc);
587 int lttng_fix_pending_events(void);
588 int lttng_probes_init(void);
589 void lttng_probes_exit(void);
590 int lttng_find_context(struct lttng_ctx *ctx, const char *name);
591 int lttng_get_context_index(struct lttng_ctx *ctx, const char *name);
592 struct lttng_ctx_field *lttng_append_context(struct lttng_ctx **ctx_p);
593 void lttng_remove_context_field(struct lttng_ctx **ctx_p,
594 struct lttng_ctx_field *field);
595 void lttng_destroy_context(struct lttng_ctx *ctx);
596 int lttng_add_vtid_to_ctx(struct lttng_ctx **ctx);
597 int lttng_add_vpid_to_ctx(struct lttng_ctx **ctx);
598 int lttng_add_pthread_id_to_ctx(struct lttng_ctx **ctx);
599 int lttng_add_procname_to_ctx(struct lttng_ctx **ctx);
600 int lttng_add_ip_to_ctx(struct lttng_ctx **ctx);
601 void lttng_context_vtid_reset(void);
602 void lttng_context_vpid_reset(void);
603
604 #ifdef LTTNG_UST_HAVE_PERF_EVENT
605 int lttng_add_perf_counter_to_ctx(uint32_t type,
606 uint64_t config,
607 const char *name,
608 struct lttng_ctx **ctx);
609 int lttng_perf_counter_init(void);
610 void lttng_perf_counter_exit(void);
611 #else /* #ifdef LTTNG_UST_HAVE_PERF_EVENT */
612 static inline
613 int lttng_add_perf_counter_to_ctx(uint32_t type,
614 uint64_t config,
615 const char *name,
616 struct lttng_ctx **ctx)
617 {
618 return -ENOSYS;
619 }
620 static inline
621 int lttng_perf_counter_init(void)
622 {
623 return 0;
624 }
625 static inline
626 void lttng_perf_counter_exit(void)
627 {
628 }
629 #endif /* #else #ifdef LTTNG_UST_HAVE_PERF_EVENT */
630
631 extern const struct lttng_ust_client_lib_ring_buffer_client_cb *lttng_client_callbacks_metadata;
632 extern const struct lttng_ust_client_lib_ring_buffer_client_cb *lttng_client_callbacks_discard;
633 extern const struct lttng_ust_client_lib_ring_buffer_client_cb *lttng_client_callbacks_overwrite;
634
635 struct lttng_transport *lttng_transport_find(const char *name);
636
637 int lttng_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
638 void lttng_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
639 struct lttng_ust_tracepoint_iter *
640 lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
641 int lttng_probes_get_field_list(struct lttng_ust_field_list *list);
642 void lttng_probes_prune_field_list(struct lttng_ust_field_list *list);
643 struct lttng_ust_field_iter *
644 lttng_ust_field_list_get_iter_next(struct lttng_ust_field_list *list);
645
646 void lttng_filter_event_link_bytecode(struct lttng_event *event);
647 void lttng_enabler_event_link_bytecode(struct lttng_event *event,
648 struct lttng_enabler *enabler);
649 void lttng_free_event_filter_runtime(struct lttng_event *event);
650 void lttng_filter_sync_state(struct lttng_bytecode_runtime *runtime);
651
652 struct cds_list_head *lttng_get_probe_list_head(void);
653 int lttng_session_active(void);
654
655 typedef int (*t_statedump_func_ptr)(struct lttng_session *session);
656 void lttng_handle_pending_statedump(void *owner);
657 struct cds_list_head *_lttng_get_sessions(void);
658
659 #ifdef __cplusplus
660 }
661 #endif
662
663 #endif /* _LTTNG_UST_EVENTS_H */
This page took 0.041131 seconds and 3 git commands to generate.