LTTng control library C API
Loading...
Searching...
No Matches
session-descriptor.h
1/*
2 * SPDX-FileCopyrightText: 2019 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_SESSION_DESCRIPTOR_H
9#define LTTNG_SESSION_DESCRIPTOR_H
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include <lttng/lttng-export.h>
16
29
46
84LTTNG_EXPORT extern struct lttng_session_descriptor *
85lttng_session_descriptor_create(const char *session_name);
86
152LTTNG_EXPORT extern struct lttng_session_descriptor *
153lttng_session_descriptor_local_create(const char *session_name, const char *trace_dir);
154
250 const char *session_name, const char *control_url, const char *data_url);
251
295LTTNG_EXPORT extern struct lttng_session_descriptor *
297
372LTTNG_EXPORT extern struct lttng_session_descriptor *
373lttng_session_descriptor_snapshot_local_create(const char *session_name, const char *trace_dir);
374
489LTTNG_EXPORT extern struct lttng_session_descriptor *
491 const char *control_url,
492 const char *data_url);
493
494/*
495 * NOTE: Not documented with Doxygen as what lttng_create_session_ext()
496 * creates from such a descriptor is useless (a live recording session
497 * without any output). Original documentation follows.
498 *
499 * Create a live session descriptor without an output.
500 *
501 * The 'name' parameter can be left NULL to auto-generate a session name.
502 *
503 * The 'live_timer_interval_us' parameter is the live timer's period, specified
504 * in microseconds.
505 *
506 * This parameter can't be 0. There is no default value defined for a live
507 * timer's period.
508 *
509 * Returns an lttng_session_descriptor instance on success, NULL on error.
510 */
511LTTNG_EXPORT extern struct lttng_session_descriptor *
512lttng_session_descriptor_live_create(const char *name, unsigned long long live_timer_interval_us);
513
613LTTNG_EXPORT extern struct lttng_session_descriptor *
615 const char *control_url,
616 const char *data_url,
617 unsigned long long live_timer_period);
618
659LTTNG_EXPORT extern enum lttng_session_descriptor_status
661 const char **session_name);
662
683LTTNG_EXPORT extern void
685
687
688#ifdef __cplusplus
689}
690#endif
691
692#endif /* LTTNG_SESSION_DESCRIPTOR_H */
lttng_session_descriptor_status
Return type of recording session descriptor fuctions.
Definition session-descriptor.h:36
struct lttng_session_descriptor * lttng_session_descriptor_local_create(const char *session_name, const char *trace_dir)
Creates a recording session descriptor to create a local recording session named session_name.
struct lttng_session_descriptor * lttng_session_descriptor_snapshot_network_create(const char *session_name, const char *control_url, const char *data_url)
Creates a recording session descriptor to create a snapshot recording session named session_name and ...
struct lttng_session_descriptor * lttng_session_descriptor_create(const char *session_name)
Creates a recording session descriptor to create a no-output, local recording session named session_n...
void lttng_session_descriptor_destroy(struct lttng_session_descriptor *session_descriptor)
Destroys the recording session descriptor session_descriptor.
struct lttng_session_descriptor * lttng_session_descriptor_live_network_create(const char *session_name, const char *control_url, const char *data_url, unsigned long long live_timer_period)
Creates a recording session descriptor to create a live recording session named session_name.
enum lttng_session_descriptor_status lttng_session_descriptor_get_session_name(const struct lttng_session_descriptor *session_descriptor, const char **session_name)
Sets *session_name to the name of the recording session which lttng_create_session_ext() created from...
struct lttng_session_descriptor * lttng_session_descriptor_snapshot_create(const char *session_name)
Creates a recording session descriptor to create a snapshot recording session named session_name with...
struct lttng_session_descriptor * lttng_session_descriptor_network_create(const char *session_name, const char *control_url, const char *data_url)
Creates a recording session descriptor to create a network streaming recording session named session_...
struct lttng_session_descriptor * lttng_session_descriptor_snapshot_local_create(const char *session_name, const char *trace_dir)
Creates a recording session descriptor to create a snapshot recording session named session_name and ...
@ LTTNG_SESSION_DESCRIPTOR_STATUS_OK
Success.
Definition session-descriptor.h:38
@ LTTNG_SESSION_DESCRIPTOR_STATUS_UNSET
Recording session descriptor property is not set.
Definition session-descriptor.h:44
@ LTTNG_SESSION_DESCRIPTOR_STATUS_INVALID
Unsatisfied precondition.
Definition session-descriptor.h:41
Recording session descriptor (opaque type).