4 * Copyright 2010-2011 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Mimic system calls for:
9 * - session creation, returns an object descriptor or failure.
10 * - channel creation, returns an object descriptor or failure.
11 * - Operates on a session object descriptor
12 * - Takes all channel options as parameters.
13 * - stream get, returns an object descriptor or failure.
14 * - Operates on a channel object descriptor.
15 * - stream notifier get, returns an object descriptor or failure.
16 * - Operates on a channel object descriptor.
17 * - event creation, returns an object descriptor or failure.
18 * - Operates on a channel object descriptor
19 * - Takes an event name as parameter
20 * - Takes an instrumentation source as parameter
21 * - e.g. tracepoints, dynamic_probes...
22 * - Takes instrumentation source specific arguments.
24 * Dual LGPL v2.1/GPL v2 license.
27 #include <lttng/ust-abi.h>
28 #include <urcu/compiler.h>
29 #include <urcu/list.h>
30 #include <lttng/ust-events.h>
31 #include <lttng/ust-version.h>
32 #include <usterr-signal-safe.h>
34 #include "ltt-tracer.h"
35 #include "tracepoint-internal.h"
37 static int lttng_ust_abi_close_in_progress
;
40 int lttng_abi_tracepoint_list(void);
43 * Object descriptor table. Should be protected from concurrent access
47 struct lttng_ust_obj
{
51 const struct lttng_ust_objd_ops
*ops
;
54 int freelist_next
; /* offset freelist. end is -1. */
58 struct lttng_ust_objd_table
{
59 struct lttng_ust_obj
*array
;
60 unsigned int len
, allocated_len
;
61 int freelist_head
; /* offset freelist head. end is -1 */
64 static struct lttng_ust_objd_table objd_table
= {
69 int objd_alloc(void *private_data
, const struct lttng_ust_objd_ops
*ops
)
71 struct lttng_ust_obj
*obj
;
73 if (objd_table
.freelist_head
!= -1) {
74 obj
= &objd_table
.array
[objd_table
.freelist_head
];
75 objd_table
.freelist_head
= obj
->u
.freelist_next
;
79 if (objd_table
.len
>= objd_table
.allocated_len
) {
80 unsigned int new_allocated_len
, old_allocated_len
;
81 struct lttng_ust_obj
*new_table
, *old_table
;
83 old_allocated_len
= objd_table
.allocated_len
;
84 old_table
= objd_table
.array
;
85 if (!old_allocated_len
)
86 new_allocated_len
= 1;
88 new_allocated_len
= old_allocated_len
<< 1;
89 new_table
= zmalloc(sizeof(struct lttng_ust_obj
) * new_allocated_len
);
92 memcpy(new_table
, old_table
,
93 sizeof(struct lttng_ust_obj
) * old_allocated_len
);
95 objd_table
.array
= new_table
;
96 objd_table
.allocated_len
= new_allocated_len
;
98 obj
= &objd_table
.array
[objd_table
.len
];
101 obj
->u
.s
.private_data
= private_data
;
103 obj
->u
.s
.f_count
= 2; /* count == 1 : object is allocated */
104 /* count == 2 : allocated + hold ref */
105 return obj
- objd_table
.array
;
109 struct lttng_ust_obj
*_objd_get(int id
)
111 if (id
>= objd_table
.len
)
113 if (!objd_table
.array
[id
].u
.s
.f_count
)
115 return &objd_table
.array
[id
];
119 void *objd_private(int id
)
121 struct lttng_ust_obj
*obj
= _objd_get(id
);
123 return obj
->u
.s
.private_data
;
127 void objd_set_private(int id
, void *private_data
)
129 struct lttng_ust_obj
*obj
= _objd_get(id
);
131 obj
->u
.s
.private_data
= private_data
;
134 const struct lttng_ust_objd_ops
*objd_ops(int id
)
136 struct lttng_ust_obj
*obj
= _objd_get(id
);
144 void objd_free(int id
)
146 struct lttng_ust_obj
*obj
= _objd_get(id
);
149 obj
->u
.freelist_next
= objd_table
.freelist_head
;
150 objd_table
.freelist_head
= obj
- objd_table
.array
;
151 assert(obj
->u
.s
.f_count
== 1);
152 obj
->u
.s
.f_count
= 0; /* deallocated */
156 void objd_ref(int id
)
158 struct lttng_ust_obj
*obj
= _objd_get(id
);
162 int lttng_ust_objd_unref(int id
)
164 struct lttng_ust_obj
*obj
= _objd_get(id
);
168 if (obj
->u
.s
.f_count
== 1) {
169 ERR("Reference counting error\n");
172 if ((--obj
->u
.s
.f_count
) == 1) {
173 const struct lttng_ust_objd_ops
*ops
= objd_ops(id
);
183 void objd_table_destroy(void)
187 for (i
= 0; i
< objd_table
.allocated_len
; i
++)
188 (void) lttng_ust_objd_unref(i
);
189 free(objd_table
.array
);
190 objd_table
.array
= NULL
;
192 objd_table
.allocated_len
= 0;
193 objd_table
.freelist_head
= -1;
197 * This is LTTng's own personal way to create an ABI for sessiond.
198 * We send commands over a socket.
201 static const struct lttng_ust_objd_ops lttng_ops
;
202 static const struct lttng_ust_objd_ops lttng_session_ops
;
203 static const struct lttng_ust_objd_ops lttng_channel_ops
;
204 static const struct lttng_ust_objd_ops lttng_metadata_ops
;
205 static const struct lttng_ust_objd_ops lttng_event_ops
;
206 static const struct lttng_ust_objd_ops lttng_loglevel_ops
;
207 static const struct lttng_ust_objd_ops lib_ring_buffer_objd_ops
;
208 static const struct lttng_ust_objd_ops lttng_tracepoint_list_ops
;
215 int lttng_abi_create_root_handle(void)
219 root_handle
= objd_alloc(NULL
, <tng_ops
);
224 int lttng_abi_create_session(void)
226 struct ltt_session
*session
;
227 int session_objd
, ret
;
229 session
= ltt_session_create();
232 session_objd
= objd_alloc(session
, <tng_session_ops
);
233 if (session_objd
< 0) {
237 session
->objd
= session_objd
;
241 ltt_session_destroy(session
);
246 long lttng_abi_tracer_version(int objd
,
247 struct lttng_ust_tracer_version
*v
)
249 v
->major
= LTTNG_UST_MAJOR_VERSION
;
250 v
->minor
= LTTNG_UST_MINOR_VERSION
;
251 v
->patchlevel
= LTTNG_UST_PATCHLEVEL_VERSION
;
256 long lttng_abi_add_context(int objd
,
257 struct lttng_ust_context
*context_param
,
258 struct lttng_ctx
**ctx
, struct ltt_session
*session
)
260 if (session
->been_active
)
263 switch (context_param
->ctx
) {
264 case LTTNG_UST_CONTEXT_PTHREAD_ID
:
265 return lttng_add_pthread_id_to_ctx(ctx
);
266 case LTTNG_UST_CONTEXT_VTID
:
267 return lttng_add_vtid_to_ctx(ctx
);
268 case LTTNG_UST_CONTEXT_VPID
:
269 return lttng_add_vpid_to_ctx(ctx
);
270 case LTTNG_UST_CONTEXT_PROCNAME
:
271 return lttng_add_procname_to_ctx(ctx
);
278 * lttng_cmd - lttng control through socket commands
280 * @objd: the object descriptor
284 * This descriptor implements lttng commands:
286 * Returns a LTTng trace session object descriptor
287 * LTTNG_UST_TRACER_VERSION
288 * Returns the LTTng kernel tracer version
289 * LTTNG_UST_TRACEPOINT_LIST
290 * Returns a file descriptor listing available tracepoints
291 * LTTNG_UST_WAIT_QUIESCENT
292 * Returns after all previously running probes have completed
294 * The returned session will be deleted when its file descriptor is closed.
297 long lttng_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
300 case LTTNG_UST_SESSION
:
301 return lttng_abi_create_session();
302 case LTTNG_UST_TRACER_VERSION
:
303 return lttng_abi_tracer_version(objd
,
304 (struct lttng_ust_tracer_version
*) arg
);
305 case LTTNG_UST_TRACEPOINT_LIST
:
306 return lttng_abi_tracepoint_list();
307 case LTTNG_UST_WAIT_QUIESCENT
:
315 static const struct lttng_ust_objd_ops lttng_ops
= {
320 * We tolerate no failure in this function (if one happens, we print a dmesg
321 * error, but cannot return any error, because the channel information is
325 void lttng_metadata_create_events(int channel_objd
)
327 struct ltt_channel
*channel
= objd_private(channel_objd
);
328 static struct lttng_ust_event metadata_params
= {
329 .instrumentation
= LTTNG_UST_TRACEPOINT
,
330 .name
= "lttng_ust:metadata",
332 struct ltt_event
*event
;
336 * We tolerate no failure path after event creation. It will stay
337 * invariant for the rest of the session.
339 ret
= ltt_event_create(channel
, &metadata_params
, NULL
, &event
);
347 return; /* not allowed to return error */
350 int lttng_abi_create_channel(int session_objd
,
351 struct lttng_ust_channel
*chan_param
,
352 enum channel_type channel_type
)
354 struct ltt_session
*session
= objd_private(session_objd
);
355 const struct lttng_ust_objd_ops
*ops
;
356 const char *transport_name
;
357 struct ltt_channel
*chan
;
360 struct ltt_channel chan_priv_init
;
362 switch (channel_type
) {
363 case PER_CPU_CHANNEL
:
364 if (chan_param
->output
== LTTNG_UST_MMAP
) {
365 transport_name
= chan_param
->overwrite
?
366 "relay-overwrite-mmap" : "relay-discard-mmap";
370 ops
= <tng_channel_ops
;
372 case METADATA_CHANNEL
:
373 if (chan_param
->output
== LTTNG_UST_MMAP
)
374 transport_name
= "relay-metadata-mmap";
377 ops
= <tng_metadata_ops
;
380 transport_name
= "<unknown>";
383 chan_objd
= objd_alloc(NULL
, ops
);
388 memset(&chan_priv_init
, 0, sizeof(chan_priv_init
));
389 /* Copy of session UUID for consumer (availability through shm) */
390 memcpy(chan_priv_init
.uuid
, session
->uuid
, sizeof(session
->uuid
));
393 * We tolerate no failure path after channel creation. It will stay
394 * invariant for the rest of the session.
396 chan
= ltt_channel_create(session
, transport_name
, NULL
,
397 chan_param
->subbuf_size
,
398 chan_param
->num_subbuf
,
399 chan_param
->switch_timer_interval
,
400 chan_param
->read_timer_interval
,
402 &chan_param
->wait_fd
,
403 &chan_param
->memory_map_size
,
409 objd_set_private(chan_objd
, chan
);
410 chan
->objd
= chan_objd
;
411 if (channel_type
== METADATA_CHANNEL
) {
412 session
->metadata
= chan
;
413 lttng_metadata_create_events(chan_objd
);
415 /* The channel created holds a reference on the session */
416 objd_ref(session_objd
);
424 err
= lttng_ust_objd_unref(chan_objd
);
432 * lttng_session_cmd - lttng session object command
438 * This descriptor implements lttng commands:
440 * Returns a LTTng channel object descriptor
442 * Enables tracing for a session (weak enable)
444 * Disables tracing for a session (strong disable)
446 * Returns a LTTng metadata object descriptor
448 * The returned channel will be deleted when its file descriptor is closed.
451 long lttng_session_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
453 struct ltt_session
*session
= objd_private(objd
);
456 case LTTNG_UST_CHANNEL
:
457 return lttng_abi_create_channel(objd
,
458 (struct lttng_ust_channel
*) arg
,
460 case LTTNG_UST_SESSION_START
:
461 case LTTNG_UST_ENABLE
:
462 return ltt_session_enable(session
);
463 case LTTNG_UST_SESSION_STOP
:
464 case LTTNG_UST_DISABLE
:
465 return ltt_session_disable(session
);
466 case LTTNG_UST_METADATA
:
467 return lttng_abi_create_channel(objd
,
468 (struct lttng_ust_channel
*) arg
,
476 * Called when the last file reference is dropped.
478 * Big fat note: channels and events are invariant for the whole session after
479 * their creation. So this session destruction also destroys all channel and
480 * event structures specific to this session (they are not destroyed when their
481 * individual file is released).
484 int lttng_release_session(int objd
)
486 struct ltt_session
*session
= objd_private(objd
);
489 ltt_session_destroy(session
);
496 static const struct lttng_ust_objd_ops lttng_session_ops
= {
497 .release
= lttng_release_session
,
498 .cmd
= lttng_session_cmd
,
502 long lttng_tracepoint_list_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
504 struct lttng_ust_tracepoint_list
*list
= objd_private(objd
);
505 struct lttng_ust_tracepoint_iter
*tp
=
506 (struct lttng_ust_tracepoint_iter
*) arg
;
507 struct lttng_ust_tracepoint_iter
*iter
;
510 case LTTNG_UST_TRACEPOINT_LIST_GET
:
513 iter
= lttng_ust_tracepoint_list_get_iter_next(list
);
516 if (!strcmp(iter
->name
, "lttng_ust:metadata"))
518 memcpy(tp
, iter
, sizeof(*tp
));
527 int lttng_abi_tracepoint_list(void)
530 struct lttng_ust_tracepoint_list
*list
;
532 list_objd
= objd_alloc(NULL
, <tng_tracepoint_list_ops
);
537 list
= zmalloc(sizeof(*list
));
542 objd_set_private(list_objd
, list
);
544 /* populate list by walking on all registered probes. */
545 ret
= ltt_probes_get_event_list(list
);
557 err
= lttng_ust_objd_unref(list_objd
);
565 int lttng_release_tracepoint_list(int objd
)
567 struct lttng_ust_tracepoint_list
*list
= objd_private(objd
);
570 ltt_probes_prune_event_list(list
);
578 static const struct lttng_ust_objd_ops lttng_tracepoint_list_ops
= {
579 .release
= lttng_release_tracepoint_list
,
580 .cmd
= lttng_tracepoint_list_cmd
,
583 struct stream_priv_data
{
584 struct lttng_ust_lib_ring_buffer
*buf
;
585 struct ltt_channel
*ltt_chan
;
589 int lttng_abi_open_stream(int channel_objd
, struct lttng_ust_stream
*info
)
591 struct ltt_channel
*channel
= objd_private(channel_objd
);
592 struct lttng_ust_lib_ring_buffer
*buf
;
593 struct stream_priv_data
*priv
;
594 int stream_objd
, ret
;
596 buf
= channel
->ops
->buffer_read_open(channel
->chan
, channel
->handle
,
597 &info
->shm_fd
, &info
->wait_fd
, &info
->memory_map_size
);
601 priv
= zmalloc(sizeof(*priv
));
607 priv
->ltt_chan
= channel
;
608 stream_objd
= objd_alloc(priv
, &lib_ring_buffer_objd_ops
);
609 if (stream_objd
< 0) {
613 /* Hold a reference on the channel object descriptor */
614 objd_ref(channel_objd
);
620 channel
->ops
->buffer_read_close(buf
, channel
->handle
);
625 int lttng_abi_create_event(int channel_objd
,
626 struct lttng_ust_event
*event_param
)
628 struct ltt_channel
*channel
= objd_private(channel_objd
);
629 struct ltt_event
*event
;
632 event_param
->name
[LTTNG_UST_SYM_NAME_LEN
- 1] = '\0';
633 event_objd
= objd_alloc(NULL
, <tng_event_ops
);
634 if (event_objd
< 0) {
639 * We tolerate no failure path after event creation. It will stay
640 * invariant for the rest of the session.
642 ret
= ltt_event_create(channel
, event_param
, NULL
, &event
);
646 objd_set_private(event_objd
, event
);
647 /* The event holds a reference on the channel */
648 objd_ref(channel_objd
);
655 err
= lttng_ust_objd_unref(event_objd
);
663 int lttng_abi_create_loglevel(int channel_objd
,
664 struct lttng_ust_event
*event_param
)
666 struct ltt_channel
*channel
= objd_private(channel_objd
);
667 struct session_loglevel
*loglevel
;
668 int loglevel_objd
, ret
;
670 event_param
->name
[LTTNG_UST_SYM_NAME_LEN
- 1] = '\0';
671 loglevel_objd
= objd_alloc(NULL
, <tng_loglevel_ops
);
672 if (loglevel_objd
< 0) {
677 * We tolerate no failure path after loglevel creation. It will
678 * stay invariant for the rest of the session.
680 ret
= ltt_loglevel_create(channel
, event_param
, &loglevel
);
684 objd_set_private(loglevel_objd
, loglevel
);
685 /* The loglevel holds a reference on the channel */
686 objd_ref(channel_objd
);
687 return loglevel_objd
;
693 err
= lttng_ust_objd_unref(loglevel_objd
);
701 * lttng_channel_cmd - lttng control through object descriptors
703 * @objd: the object descriptor
707 * This object descriptor implements lttng commands:
709 * Returns an event stream object descriptor or failure.
710 * (typically, one event stream records events from one CPU)
712 * Returns an event object descriptor or failure.
714 * Prepend a context field to each event in the channel
716 * Enable recording for events in this channel (weak enable)
718 * Disable recording for events in this channel (strong disable)
720 * Channel and event file descriptors also hold a reference on the session.
723 long lttng_channel_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
725 struct ltt_channel
*channel
= objd_private(objd
);
728 case LTTNG_UST_STREAM
:
730 struct lttng_ust_stream
*stream
;
732 stream
= (struct lttng_ust_stream
*) arg
;
733 /* stream used as output */
734 return lttng_abi_open_stream(objd
, stream
);
736 case LTTNG_UST_EVENT
:
738 struct lttng_ust_event
*event_param
=
739 (struct lttng_ust_event
*) arg
;
740 if (event_param
->instrumentation
== LTTNG_UST_TRACEPOINT_LOGLEVEL
) {
741 return lttng_abi_create_loglevel(objd
, event_param
);
743 return lttng_abi_create_event(objd
, event_param
);
746 case LTTNG_UST_CONTEXT
:
747 return lttng_abi_add_context(objd
,
748 (struct lttng_ust_context
*) arg
,
749 &channel
->ctx
, channel
->session
);
750 case LTTNG_UST_ENABLE
:
751 return ltt_channel_enable(channel
);
752 case LTTNG_UST_DISABLE
:
753 return ltt_channel_disable(channel
);
754 case LTTNG_UST_FLUSH_BUFFER
:
755 return channel
->ops
->flush_buffer(channel
->chan
, channel
->handle
);
762 * lttng_metadata_cmd - lttng control through object descriptors
764 * @objd: the object descriptor
768 * This object descriptor implements lttng commands:
770 * Returns an event stream file descriptor or failure.
772 * Channel and event file descriptors also hold a reference on the session.
775 long lttng_metadata_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
777 struct ltt_channel
*channel
= objd_private(objd
);
780 case LTTNG_UST_STREAM
:
782 struct lttng_ust_stream
*stream
;
784 stream
= (struct lttng_ust_stream
*) arg
;
785 /* stream used as output */
786 return lttng_abi_open_stream(objd
, stream
);
788 case LTTNG_UST_FLUSH_BUFFER
:
789 return channel
->ops
->flush_buffer(channel
->chan
, channel
->handle
);
797 * lttng_channel_poll - lttng stream addition/removal monitoring
802 unsigned int lttng_channel_poll(struct file
*file
, poll_table
*wait
)
804 struct ltt_channel
*channel
= file
->private_data
;
805 unsigned int mask
= 0;
807 if (file
->f_mode
& FMODE_READ
) {
808 poll_wait_set_exclusive(wait
);
809 poll_wait(file
, channel
->ops
->get_hp_wait_queue(channel
->chan
),
812 if (channel
->ops
->is_disabled(channel
->chan
))
814 if (channel
->ops
->is_finalized(channel
->chan
))
816 if (channel
->ops
->buffer_has_read_closed_stream(channel
->chan
))
817 return POLLIN
| POLLRDNORM
;
826 int lttng_channel_release(int objd
)
828 struct ltt_channel
*channel
= objd_private(objd
);
831 return lttng_ust_objd_unref(channel
->session
->objd
);
835 static const struct lttng_ust_objd_ops lttng_channel_ops
= {
836 .release
= lttng_channel_release
,
837 //.poll = lttng_channel_poll,
838 .cmd
= lttng_channel_cmd
,
841 static const struct lttng_ust_objd_ops lttng_metadata_ops
= {
842 .release
= lttng_channel_release
,
843 .cmd
= lttng_metadata_cmd
,
847 * lttng_rb_cmd - lttng ring buffer control through object descriptors
849 * @objd: the object descriptor
853 * This object descriptor implements lttng commands:
854 * (None for now. Access is done directly though shm.)
857 long lttng_rb_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
866 int lttng_rb_release(int objd
)
868 struct stream_priv_data
*priv
= objd_private(objd
);
869 struct lttng_ust_lib_ring_buffer
*buf
;
870 struct ltt_channel
*channel
;
874 channel
= priv
->ltt_chan
;
877 * If we are at ABI exit, we don't want to close the
878 * buffer opened for read: it is being shared between
879 * the parent and child (right after fork), and we don't
880 * want the child to close it for the parent. For a real
881 * exit, we don't care about marking it as closed, as
882 * the consumer daemon (if there is one) will do fine
883 * even if we don't mark it as "closed" for reading on
885 * We only mark it as closed if it is being explicitely
886 * released by the session daemon with an explicit
889 if (!lttng_ust_abi_close_in_progress
)
890 channel
->ops
->buffer_read_close(buf
, channel
->handle
);
892 return lttng_ust_objd_unref(channel
->objd
);
897 static const struct lttng_ust_objd_ops lib_ring_buffer_objd_ops
= {
898 .release
= lttng_rb_release
,
903 * lttng_event_cmd - lttng control through object descriptors
905 * @objd: the object descriptor
909 * This object descriptor implements lttng commands:
911 * Prepend a context field to each record of this event
913 * Enable recording for this event (weak enable)
915 * Disable recording for this event (strong disable)
918 long lttng_event_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
920 struct ltt_event
*event
= objd_private(objd
);
923 case LTTNG_UST_CONTEXT
:
924 return lttng_abi_add_context(objd
,
925 (struct lttng_ust_context
*) arg
,
926 &event
->ctx
, event
->chan
->session
);
927 case LTTNG_UST_ENABLE
:
928 return ltt_event_enable(event
);
929 case LTTNG_UST_DISABLE
:
930 return ltt_event_disable(event
);
937 int lttng_event_release(int objd
)
939 struct ltt_event
*event
= objd_private(objd
);
942 return lttng_ust_objd_unref(event
->chan
->objd
);
946 /* TODO: filter control ioctl */
947 static const struct lttng_ust_objd_ops lttng_event_ops
= {
948 .release
= lttng_event_release
,
949 .cmd
= lttng_event_cmd
,
953 * lttng_loglevel_cmd - lttng control through object descriptors
955 * @objd: the object descriptor
959 * This object descriptor implements lttng commands:
961 * Prepend a context field to each record of events of this
964 * Enable recording for these loglevel events (weak enable)
966 * Disable recording for these loglevel events (strong disable)
969 long lttng_loglevel_cmd(int objd
, unsigned int cmd
, unsigned long arg
)
971 struct session_loglevel
*loglevel
= objd_private(objd
);
974 case LTTNG_UST_CONTEXT
:
975 return -ENOSYS
; /* not implemented yet */
977 return lttng_abi_add_context(objd
,
978 (struct lttng_ust_context
*) arg
,
979 &loglevel
->ctx
, loglevel
->chan
->session
);
981 case LTTNG_UST_ENABLE
:
982 return ltt_loglevel_enable(loglevel
);
983 case LTTNG_UST_DISABLE
:
984 return ltt_loglevel_disable(loglevel
);
991 int lttng_loglevel_release(int objd
)
993 struct session_loglevel
*loglevel
= objd_private(objd
);
996 return lttng_ust_objd_unref(loglevel
->chan
->objd
);
1000 /* TODO: filter control ioctl */
1001 static const struct lttng_ust_objd_ops lttng_loglevel_ops
= {
1002 .release
= lttng_loglevel_release
,
1003 .cmd
= lttng_loglevel_cmd
,
1006 void lttng_ust_abi_exit(void)
1008 lttng_ust_abi_close_in_progress
= 1;
1009 objd_table_destroy();
1010 lttng_ust_abi_close_in_progress
= 0;