Namespace private ABI lttng_transport_find symbol
[lttng-ust.git] / liblttng-ust / ust-events-internal.h
CommitLineData
d871c65b 1/*
c0c0989a 2 * SPDX-License-Identifier: MIT
d871c65b 3 *
c0c0989a 4 * Copyright 2019 (c) Francis Deslauriers <francis.deslauriers@efficios.com>
d871c65b
FD
5 */
6
c0c0989a
MJ
7#ifndef _LTTNG_UST_EVENTS_INTERNAL_H
8#define _LTTNG_UST_EVENTS_INTERNAL_H
9
d871c65b
FD
10#include <stdint.h>
11
12#include <urcu/list.h>
13#include <urcu/hlist.h>
14
d871c65b
FD
15#include <lttng/ust-events.h>
16
fd17d7ce
MD
17
18struct lttng_ust_abi_obj;
19
20union lttng_ust_abi_args {
21 struct {
22 void *chan_data;
23 int wakeup_fd;
24 } channel;
25 struct {
26 int shm_fd;
27 int wakeup_fd;
28 } stream;
29 struct {
30 struct lttng_ust_abi_field_iter entry;
31 } field_list;
32 struct {
33 char *ctxname;
34 } app_context;
35 struct {
36 int event_notifier_notif_fd;
37 } event_notifier_handle;
38 struct {
39 void *counter_data;
40 } counter;
41 struct {
42 int shm_fd;
43 } counter_shm;
44};
45
46struct lttng_ust_abi_objd_ops {
47 long (*cmd)(int objd, unsigned int cmd, unsigned long arg,
48 union lttng_ust_abi_args *args, void *owner);
49 int (*release)(int objd);
50};
51
8665f6a4
MJ
52enum lttng_enabler_format_type {
53 LTTNG_ENABLER_FORMAT_STAR_GLOB,
54 LTTNG_ENABLER_FORMAT_EVENT,
55};
56
57/*
58 * Enabler field, within whatever object is enabling an event. Target of
59 * backward reference.
60 */
61struct lttng_enabler {
62 enum lttng_enabler_format_type format_type;
63
64 /* head list of struct lttng_ust_filter_bytecode_node */
65 struct cds_list_head filter_bytecode_head;
66 /* head list of struct lttng_ust_excluder_node */
67 struct cds_list_head excluder_head;
68
fd17d7ce 69 struct lttng_ust_abi_event event_param;
8665f6a4
MJ
70 unsigned int enabled:1;
71};
72
d871c65b
FD
73struct lttng_event_enabler {
74 struct lttng_enabler base;
75 struct cds_list_head node; /* per-session list of enablers */
76 struct lttng_channel *chan;
77 /*
78 * Unused, but kept around to make it explicit that the tracer can do
79 * it.
80 */
81 struct lttng_ctx *ctx;
82};
83
d8d2416d
FD
84struct lttng_event_notifier_enabler {
85 struct lttng_enabler base;
6566528b 86 uint64_t error_counter_index;
d37ecb3f
FD
87 struct cds_list_head node; /* per-app list of event_notifier enablers */
88 struct cds_list_head capture_bytecode_head;
d8d2416d
FD
89 struct lttng_event_notifier_group *group; /* weak ref */
90 uint64_t user_token; /* User-provided token */
d37ecb3f 91 uint64_t num_captures;
d8d2416d
FD
92};
93
ab249ecf
FD
94enum lttng_ust_bytecode_node_type {
95 LTTNG_UST_BYTECODE_NODE_TYPE_FILTER,
d37ecb3f 96 LTTNG_UST_BYTECODE_NODE_TYPE_CAPTURE,
ab249ecf
FD
97};
98
99struct lttng_ust_bytecode_node {
100 enum lttng_ust_bytecode_node_type type;
92495593
FD
101 struct cds_list_head node;
102 struct lttng_enabler *enabler;
ab249ecf
FD
103 struct {
104 uint32_t len;
105 uint32_t reloc_offset;
106 uint64_t seqnum;
107 char data[];
108 } bc;
92495593
FD
109};
110
111struct lttng_ust_excluder_node {
112 struct cds_list_head node;
113 struct lttng_enabler *enabler;
114 /*
115 * struct lttng_ust_event_exclusion had variable sized array,
116 * must be last field.
117 */
fd17d7ce 118 struct lttng_ust_abi_event_exclusion excluder;
92495593
FD
119};
120
bb7ad29d
MJ
121/* Data structures used by the tracer. */
122
123struct tp_list_entry {
fd17d7ce 124 struct lttng_ust_abi_tracepoint_iter tp;
bb7ad29d
MJ
125 struct cds_list_head head;
126};
127
128struct lttng_ust_tracepoint_list {
129 struct tp_list_entry *iter;
130 struct cds_list_head head;
131};
132
133struct tp_field_list_entry {
fd17d7ce 134 struct lttng_ust_abi_field_iter field;
bb7ad29d
MJ
135 struct cds_list_head head;
136};
137
138struct lttng_ust_field_list {
139 struct tp_field_list_entry *iter;
140 struct cds_list_head head;
141};
142
143/*
144 * Objects in a linked-list of enablers, owned by an event or event_notifier.
145 * This is used because an event (or a event_notifier) can be enabled by more
146 * than one enabler and we want a quick way to iterate over all enablers of an
147 * object.
148 *
149 * For example, event rules "my_app:a*" and "my_app:ab*" will both match the
150 * event with the name "my_app:abc".
151 */
152struct lttng_enabler_ref {
153 struct cds_list_head node; /* enabler ref list */
154 struct lttng_enabler *ref; /* backward ref */
155};
156
157#define LTTNG_COUNTER_DIMENSION_MAX 8
158struct lttng_counter_dimension {
159 uint64_t size;
160 uint64_t underflow_index;
161 uint64_t overflow_index;
162 uint8_t has_underflow;
163 uint8_t has_overflow;
164};
165
b5863ea7
MD
166struct lttng_counter_ops {
167 struct lib_counter *(*counter_create)(size_t nr_dimensions,
168 const struct lttng_counter_dimension *dimensions,
169 int64_t global_sum_step,
170 int global_counter_fd,
171 int nr_counter_cpu_fds,
172 const int *counter_cpu_fds,
173 bool is_daemon);
174 void (*counter_destroy)(struct lib_counter *counter);
175 int (*counter_add)(struct lib_counter *counter,
176 const size_t *dimension_indexes, int64_t v);
177 int (*counter_read)(struct lib_counter *counter,
178 const size_t *dimension_indexes, int cpu,
179 int64_t *value, bool *overflow, bool *underflow);
180 int (*counter_aggregate)(struct lib_counter *counter,
181 const size_t *dimension_indexes, int64_t *value,
182 bool *overflow, bool *underflow);
183 int (*counter_clear)(struct lib_counter *counter, const size_t *dimension_indexes);
184};
185
bb7ad29d
MJ
186struct lttng_counter {
187 int objd;
188 struct lttng_event_notifier_group *event_notifier_group; /* owner */
189 struct lttng_counter_transport *transport;
190 struct lib_counter *counter;
191 struct lttng_counter_ops *ops;
192};
193
681f6001
MD
194#define LTTNG_UST_EVENT_HT_BITS 12
195#define LTTNG_UST_EVENT_HT_SIZE (1U << LTTNG_UST_EVENT_HT_BITS)
196
197struct lttng_ust_event_ht {
198 struct cds_hlist_head table[LTTNG_UST_EVENT_HT_SIZE];
199};
200
201#define LTTNG_UST_EVENT_NOTIFIER_HT_BITS 12
202#define LTTNG_UST_EVENT_NOTIFIER_HT_SIZE (1U << LTTNG_UST_EVENT_NOTIFIER_HT_BITS)
203struct lttng_ust_event_notifier_ht {
204 struct cds_hlist_head table[LTTNG_UST_EVENT_NOTIFIER_HT_SIZE];
205};
206
207#define LTTNG_UST_ENUM_HT_BITS 12
208#define LTTNG_UST_ENUM_HT_SIZE (1U << LTTNG_UST_ENUM_HT_BITS)
209
210struct lttng_ust_enum_ht {
211 struct cds_hlist_head table[LTTNG_UST_ENUM_HT_SIZE];
212};
213
bb7ad29d
MJ
214struct lttng_event_notifier_group {
215 int objd;
216 void *owner;
217 int notification_fd;
218 struct cds_list_head node; /* Event notifier group handle list */
219 struct cds_list_head enablers_head;
220 struct cds_list_head event_notifiers_head; /* list of event_notifiers */
221 struct lttng_ust_event_notifier_ht event_notifiers_ht; /* hashtable of event_notifiers */
222 struct lttng_ctx *ctx; /* contexts for filters. */
223
224 struct lttng_counter *error_counter;
225 size_t error_counter_len;
226};
227
228struct lttng_transport {
229 char *name;
230 struct cds_list_head node;
49926dbd 231 struct lttng_ust_channel_ops ops;
bb7ad29d
MJ
232 const struct lttng_ust_lib_ring_buffer_config *client_config;
233};
234
235struct lttng_counter_transport {
236 char *name;
237 struct cds_list_head node;
238 struct lttng_counter_ops ops;
239 const struct lib_counter_config *client_config;
240};
241
80333dfa 242struct lttng_ust_event_common_private {
7ee76145 243 struct lttng_ust_event_common *pub; /* Public event interface */
68bb7559 244
dc11f93f 245 const struct lttng_ust_event_desc *desc;
68bb7559
MD
246 /* Backward references: list of lttng_enabler_ref (ref to enablers) */
247 struct cds_list_head enablers_ref_head;
68bb7559 248 int registered; /* has reg'd tracepoint probe */
115db533 249 uint64_t user_token;
68bb7559
MD
250};
251
2e70391c 252struct lttng_ust_event_recorder_private {
80333dfa
MD
253 struct lttng_ust_event_common_private parent;
254
2e70391c 255 struct lttng_ust_event_recorder *pub; /* Public event interface */
ba99fbe2
MD
256 struct cds_list_head node; /* Event recorder list */
257 struct cds_hlist_node hlist; /* Hash table of event recorders */
80333dfa
MD
258};
259
115db533
MD
260struct lttng_ust_event_notifier_private {
261 struct lttng_ust_event_common_private parent;
262
d7d45c0d 263 struct lttng_ust_event_notifier *pub; /* Public event notifier interface */
115db533
MD
264 struct lttng_event_notifier_group *group; /* weak ref */
265 size_t num_captures; /* Needed to allocate the msgpack array. */
266 uint64_t error_counter_index;
ba99fbe2
MD
267 struct cds_list_head node; /* Event notifier list */
268 struct cds_hlist_node hlist; /* Hash table of event notifiers */
115db533
MD
269};
270
362a65de
MD
271struct lttng_ust_bytecode_runtime_private {
272 struct bytecode_runtime *pub; /* Public bytecode runtime interface */
273
274 struct lttng_ust_bytecode_node *bc;
275 int link_failed;
276 /*
277 * Pointer to a URCU-protected pointer owned by an `struct
278 * lttng_session`or `struct lttng_event_notifier_group`.
279 */
280 struct lttng_ctx **pctx;
281};
282
bdb12629
MD
283struct lttng_ust_session_private {
284 struct lttng_session *pub; /* Public session interface */
285
286 int been_active; /* Been active ? */
287 int objd; /* Object associated */
288 struct cds_list_head chan_head; /* Channel list head */
289 struct cds_list_head events_head; /* list of events */
290 struct cds_list_head node; /* Session list */
291
292 /* New UST 2.1 */
293 /* List of enablers */
294 struct cds_list_head enablers_head;
295 struct lttng_ust_event_ht events_ht; /* ht of events */
296 void *owner; /* object owner */
297 int tstate:1; /* Transient enable state */
298
299 /* New UST 2.4 */
300 int statedump_pending:1;
301
302 /* New UST 2.8 */
303 struct lttng_ust_enum_ht enums_ht; /* ht of enumerations */
304 struct cds_list_head enums_head;
305 struct lttng_ctx *ctx; /* contexts for filters. */
306};
307
036d17fb
MD
308struct lttng_enum {
309 const struct lttng_ust_enum_desc *desc;
310 struct lttng_session *session;
311 struct cds_list_head node; /* Enum list in session */
312 struct cds_hlist_node hlist; /* Session ht of enums */
313 uint64_t id; /* Enumeration ID in sessiond */
314};
315
d871c65b
FD
316static inline
317struct lttng_enabler *lttng_event_enabler_as_enabler(
318 struct lttng_event_enabler *event_enabler)
319{
320 return &event_enabler->base;
321}
322
d8d2416d
FD
323static inline
324struct lttng_enabler *lttng_event_notifier_enabler_as_enabler(
325 struct lttng_event_notifier_enabler *event_notifier_enabler)
326{
327 return &event_notifier_enabler->base;
328}
d871c65b
FD
329
330/*
331 * Allocate and initialize a `struct lttng_event_enabler` object.
332 *
333 * On success, returns a `struct lttng_event_enabler`,
334 * On memory error, returns NULL.
335 */
ddabe860 336__attribute__((visibility("hidden")))
d871c65b
FD
337struct lttng_event_enabler *lttng_event_enabler_create(
338 enum lttng_enabler_format_type format_type,
fd17d7ce 339 struct lttng_ust_abi_event *event_param,
d871c65b
FD
340 struct lttng_channel *chan);
341
342/*
343 * Destroy a `struct lttng_event_enabler` object.
344 */
ddabe860 345__attribute__((visibility("hidden")))
d871c65b
FD
346void lttng_event_enabler_destroy(struct lttng_event_enabler *enabler);
347
348/*
349 * Enable a `struct lttng_event_enabler` object and all events related to this
350 * enabler.
351 */
ddabe860 352__attribute__((visibility("hidden")))
d871c65b
FD
353int lttng_event_enabler_enable(struct lttng_event_enabler *enabler);
354
355/*
356 * Disable a `struct lttng_event_enabler` object and all events related to this
357 * enabler.
358 */
ddabe860 359__attribute__((visibility("hidden")))
d871c65b
FD
360int lttng_event_enabler_disable(struct lttng_event_enabler *enabler);
361
362/*
363 * Attach filter bytecode program to `struct lttng_event_enabler` and all
364 * events related to this enabler.
365 */
ddabe860 366__attribute__((visibility("hidden")))
a56fd376
FD
367int lttng_event_enabler_attach_filter_bytecode(
368 struct lttng_event_enabler *enabler,
ab89263e 369 struct lttng_ust_bytecode_node **bytecode);
d871c65b
FD
370
371/*
372 * Attach an application context to an event enabler.
373 *
374 * Not implemented.
375 */
ddabe860 376__attribute__((visibility("hidden")))
d871c65b 377int lttng_event_enabler_attach_context(struct lttng_event_enabler *enabler,
fd17d7ce 378 struct lttng_ust_abi_context *ctx);
d871c65b
FD
379
380/*
381 * Attach exclusion list to `struct lttng_event_enabler` and all
382 * events related to this enabler.
383 */
ddabe860 384__attribute__((visibility("hidden")))
d871c65b 385int lttng_event_enabler_attach_exclusion(struct lttng_event_enabler *enabler,
e9fe6aad 386 struct lttng_ust_excluder_node **excluder);
d871c65b
FD
387
388/*
d37ecb3f
FD
389 * Synchronize bytecodes for the enabler and the instance (event or
390 * event_notifier).
d871c65b 391 *
621c07fc 392 * This function goes over all bytecode programs of the enabler (event or
d37ecb3f 393 * event_notifier enabler) to ensure each is linked to the provided instance.
d871c65b 394 */
ddabe860 395__attribute__((visibility("hidden")))
dc11f93f 396void lttng_enabler_link_bytecode(const struct lttng_ust_event_desc *event_desc,
53b9d7db 397 struct lttng_ctx **ctx,
621c07fc
FD
398 struct cds_list_head *instance_bytecode_runtime_head,
399 struct cds_list_head *enabler_bytecode_runtime_head);
d871c65b 400
d8d2416d
FD
401/*
402 * Allocate and initialize a `struct lttng_event_notifier_group` object.
403 *
404 * On success, returns a `struct lttng_triggre_group`,
405 * on memory error, returns NULL.
406 */
ddabe860 407__attribute__((visibility("hidden")))
d8d2416d
FD
408struct lttng_event_notifier_group *lttng_event_notifier_group_create(void);
409
410/*
411 * Destroy a `struct lttng_event_notifier_group` object.
412 */
ddabe860 413__attribute__((visibility("hidden")))
d8d2416d
FD
414void lttng_event_notifier_group_destroy(
415 struct lttng_event_notifier_group *event_notifier_group);
416
417/*
418 * Allocate and initialize a `struct lttng_event_notifier_enabler` object.
419 *
420 * On success, returns a `struct lttng_event_notifier_enabler`,
421 * On memory error, returns NULL.
422 */
ddabe860 423__attribute__((visibility("hidden")))
d8d2416d
FD
424struct lttng_event_notifier_enabler *lttng_event_notifier_enabler_create(
425 struct lttng_event_notifier_group *event_notifier_group,
426 enum lttng_enabler_format_type format_type,
fd17d7ce 427 struct lttng_ust_abi_event_notifier *event_notifier_param);
d8d2416d
FD
428
429/*
430 * Destroy a `struct lttng_event_notifier_enabler` object.
431 */
ddabe860 432__attribute__((visibility("hidden")))
d8d2416d
FD
433void lttng_event_notifier_enabler_destroy(
434 struct lttng_event_notifier_enabler *event_notifier_enabler);
435
436/*
437 * Enable a `struct lttng_event_notifier_enabler` object and all event
438 * notifiers related to this enabler.
439 */
ddabe860 440__attribute__((visibility("hidden")))
d8d2416d
FD
441int lttng_event_notifier_enabler_enable(
442 struct lttng_event_notifier_enabler *event_notifier_enabler);
443
444/*
445 * Disable a `struct lttng_event_notifier_enabler` object and all event
446 * notifiers related to this enabler.
447 */
ddabe860 448__attribute__((visibility("hidden")))
d8d2416d
FD
449int lttng_event_notifier_enabler_disable(
450 struct lttng_event_notifier_enabler *event_notifier_enabler);
451
452/*
453 * Attach filter bytecode program to `struct lttng_event_notifier_enabler` and
454 * all event notifiers related to this enabler.
455 */
ddabe860 456__attribute__((visibility("hidden")))
a56fd376 457int lttng_event_notifier_enabler_attach_filter_bytecode(
d8d2416d 458 struct lttng_event_notifier_enabler *event_notifier_enabler,
ab89263e 459 struct lttng_ust_bytecode_node **bytecode);
d8d2416d 460
d37ecb3f
FD
461/*
462 * Attach capture bytecode program to `struct lttng_event_notifier_enabler` and
463 * all event_notifiers related to this enabler.
464 */
ddabe860 465__attribute__((visibility("hidden")))
d37ecb3f
FD
466int lttng_event_notifier_enabler_attach_capture_bytecode(
467 struct lttng_event_notifier_enabler *event_notifier_enabler,
49cde654 468 struct lttng_ust_bytecode_node **bytecode);
d37ecb3f 469
d8d2416d
FD
470/*
471 * Attach exclusion list to `struct lttng_event_notifier_enabler` and all
472 * event notifiers related to this enabler.
473 */
ddabe860 474__attribute__((visibility("hidden")))
d8d2416d
FD
475int lttng_event_notifier_enabler_attach_exclusion(
476 struct lttng_event_notifier_enabler *event_notifier_enabler,
e9fe6aad 477 struct lttng_ust_excluder_node **excluder);
d8d2416d 478
ddabe860 479__attribute__((visibility("hidden")))
b1f720f0 480void lttng_free_event_filter_runtime(struct lttng_ust_event_common *event);
d8d2416d
FD
481
482/*
483 * Connect the probe on all enablers matching this event description.
484 * Called on library load.
485 */
ddabe860 486__attribute__((visibility("hidden")))
d8d2416d
FD
487int lttng_fix_pending_event_notifiers(void);
488
ddabe860 489__attribute__((visibility("hidden")))
67d4e8f5
MJ
490struct lttng_counter *lttng_ust_counter_create(
491 const char *counter_transport_name,
492 size_t number_dimensions, const struct lttng_counter_dimension *dimensions);
493
bd8c1787
MJ
494#ifdef HAVE_PERF_EVENT
495
ddabe860 496__attribute__((visibility("hidden")))
bd8c1787
MJ
497int lttng_add_perf_counter_to_ctx(uint32_t type,
498 uint64_t config,
499 const char *name,
500 struct lttng_ctx **ctx);
ddabe860
MJ
501
502__attribute__((visibility("hidden")))
bd8c1787 503int lttng_perf_counter_init(void);
ddabe860
MJ
504
505__attribute__((visibility("hidden")))
bd8c1787
MJ
506void lttng_perf_counter_exit(void);
507
508#else /* #ifdef HAVE_PERF_EVENT */
509
510static inline
511int lttng_add_perf_counter_to_ctx(uint32_t type,
512 uint64_t config,
513 const char *name,
514 struct lttng_ctx **ctx)
515{
516 return -ENOSYS;
517}
518static inline
519int lttng_perf_counter_init(void)
520{
521 return 0;
522}
523static inline
524void lttng_perf_counter_exit(void)
525{
526}
527#endif /* #else #ifdef HAVE_PERF_EVENT */
528
ddabe860 529__attribute__((visibility("hidden")))
7753d283 530int lttng_probes_get_event_list(struct lttng_ust_tracepoint_list *list);
ddabe860
MJ
531
532__attribute__((visibility("hidden")))
7753d283
MJ
533void lttng_probes_prune_event_list(struct lttng_ust_tracepoint_list *list);
534
ddabe860 535__attribute__((visibility("hidden")))
7753d283 536int lttng_probes_get_field_list(struct lttng_ust_field_list *list);
ddabe860
MJ
537
538__attribute__((visibility("hidden")))
7753d283
MJ
539void lttng_probes_prune_field_list(struct lttng_ust_field_list *list);
540
ddabe860 541__attribute__((visibility("hidden")))
fd17d7ce 542struct lttng_ust_abi_tracepoint_iter *
7753d283 543 lttng_ust_tracepoint_list_get_iter_next(struct lttng_ust_tracepoint_list *list);
ddabe860
MJ
544
545__attribute__((visibility("hidden")))
fd17d7ce 546struct lttng_ust_abi_field_iter *
7753d283
MJ
547 lttng_ust_field_list_get_iter_next(struct lttng_ust_field_list *list);
548
ddabe860 549__attribute__((visibility("hidden")))
7753d283 550struct lttng_session *lttng_session_create(void);
ddabe860
MJ
551
552__attribute__((visibility("hidden")))
7753d283 553int lttng_session_enable(struct lttng_session *session);
ddabe860
MJ
554
555__attribute__((visibility("hidden")))
7753d283 556int lttng_session_disable(struct lttng_session *session);
ddabe860
MJ
557
558__attribute__((visibility("hidden")))
7753d283 559int lttng_session_statedump(struct lttng_session *session);
ddabe860
MJ
560
561__attribute__((visibility("hidden")))
7753d283
MJ
562void lttng_session_destroy(struct lttng_session *session);
563
a5ae46cc
MJ
564/*
565 * Called with ust lock held.
566 */
567__attribute__((visibility("hidden")))
568int lttng_session_active(void);
569
ddabe860 570__attribute__((visibility("hidden")))
7753d283
MJ
571struct cds_list_head *lttng_get_sessions(void);
572
ddabe860 573__attribute__((visibility("hidden")))
7753d283
MJ
574void lttng_handle_pending_statedump(void *owner);
575
ddabe860 576__attribute__((visibility("hidden")))
7753d283
MJ
577struct lttng_channel *lttng_channel_create(struct lttng_session *session,
578 const char *transport_name,
579 void *buf_addr,
580 size_t subbuf_size, size_t num_subbuf,
581 unsigned int switch_timer_interval,
582 unsigned int read_timer_interval,
583 int **shm_fd, int **wait_fd,
584 uint64_t **memory_map_size,
585 struct lttng_channel *chan_priv_init);
586
ddabe860 587__attribute__((visibility("hidden")))
7753d283 588int lttng_channel_enable(struct lttng_channel *channel);
ddabe860
MJ
589
590__attribute__((visibility("hidden")))
7753d283
MJ
591int lttng_channel_disable(struct lttng_channel *channel);
592
ddabe860 593__attribute__((visibility("hidden")))
7753d283 594void lttng_transport_register(struct lttng_transport *transport);
ddabe860
MJ
595
596__attribute__((visibility("hidden")))
7753d283
MJ
597void lttng_transport_unregister(struct lttng_transport *transport);
598
65c48d6a
MJ
599/* This is ABI between liblttng-ust and liblttng-ust-ctl */
600struct lttng_transport *lttng_ust_transport_find(const char *name);
601
ddabe860 602__attribute__((visibility("hidden")))
dc11f93f 603void lttng_probe_provider_unregister_events(struct lttng_ust_probe_desc *desc);
7753d283 604
ddabe860 605__attribute__((visibility("hidden")))
7753d283
MJ
606int lttng_fix_pending_events(void);
607
ddabe860 608__attribute__((visibility("hidden")))
7753d283
MJ
609struct cds_list_head *lttng_get_probe_list_head(void);
610
ddabe860 611__attribute__((visibility("hidden")))
7753d283 612struct lttng_enum *lttng_ust_enum_get_from_desc(struct lttng_session *session,
891d6b55 613 const struct lttng_ust_enum_desc *enum_desc);
7753d283 614
ddabe860 615__attribute__((visibility("hidden")))
fd17d7ce
MD
616int lttng_abi_create_root_handle(void);
617
ddabe860 618__attribute__((visibility("hidden")))
fd17d7ce 619const struct lttng_ust_abi_objd_ops *lttng_ust_abi_objd_ops(int id);
ddabe860
MJ
620
621__attribute__((visibility("hidden")))
fd17d7ce 622int lttng_ust_abi_objd_unref(int id, int is_owner);
ddabe860
MJ
623
624__attribute__((visibility("hidden")))
fd17d7ce 625void lttng_ust_abi_exit(void);
ddabe860
MJ
626
627__attribute__((visibility("hidden")))
fd17d7ce 628void lttng_ust_abi_events_exit(void);
ddabe860
MJ
629
630__attribute__((visibility("hidden")))
fd17d7ce
MD
631void lttng_ust_abi_objd_table_owner_cleanup(void *owner);
632
d871c65b 633#endif /* _LTTNG_UST_EVENTS_INTERNAL_H */
This page took 0.056906 seconds and 4 git commands to generate.