char hostname[HOST_NAME_MAX]; /* Local hostname. */
struct ltt_kernel_session *kernel_session;
struct ltt_ust_session *ust_session;
char hostname[HOST_NAME_MAX]; /* Local hostname. */
struct ltt_kernel_session *kernel_session;
struct ltt_ust_session *ust_session;
/*
* Protect any read/write on this session data structure. This lock must be
* acquired *before* using any public functions declared below. Use
/*
* Protect any read/write on this session data structure. This lock must be
* acquired *before* using any public functions declared below. Use
struct lttng_ht_node_u64 node;
/*
* The current archive id corresponds to the number of session rotations
struct lttng_ht_node_u64 node;
/*
* The current archive id corresponds to the number of session rotations
* is used to tag the "generation" of a stream. This tag allows the
* consumer and relay daemons to track when a given stream was created
* during the lifetime of a session.
* is used to tag the "generation" of a stream. This tag allows the
* consumer and relay daemons to track when a given stream was created
* during the lifetime of a session.
/*
* Keep a state if this session was rotated after the last stop command.
* We only allow one rotation after a stop. At destroy, we also need to
/*
* Keep a state if this session was rotated after the last stop command.
* We only allow one rotation after a stop. At destroy, we also need to
enum consumer_dst_type session_get_consumer_destination_type(
const struct ltt_session *session);
const char *session_get_net_consumer_hostname(
enum consumer_dst_type session_get_consumer_destination_type(
const struct ltt_session *session);
const char *session_get_net_consumer_hostname(
struct ltt_session *session_find_by_name(const char *name);
struct ltt_session *session_find_by_id(uint64_t id);
struct ltt_session *session_find_by_name(const char *name);
struct ltt_session *session_find_by_id(uint64_t id);