#define HEALTH_POLL_VALUE (1UL << 0)
#define HEALTH_CODE_VALUE (1UL << 1)
-#define HEALTH_IS_IN_POLL(x) ((x) & HEALTH_POLL_VALUE)
+#define HEALTH_IS_IN_POLL(x) ((x) &HEALTH_POLL_VALUE)
struct health_app;
/* LTTng ring buffer defines (copied) */
-#define HALF_ULONG_BITS(wl) (((wl) * CHAR_BIT) >> 1)
+#define HALF_ULONG_BITS(wl) (((wl) *CHAR_BIT) >> 1)
#define SB_ID_OFFSET_SHIFT(wl) (HALF_ULONG_BITS(wl) + 1)
#define SB_ID_OFFSET_COUNT(wl) (1UL << SB_ID_OFFSET_SHIFT(wl))
index->index_n.key);
node_ptr = cds_lfht_add_unique(stream->indexes_ht->ht,
- stream->indexes_ht->hash_fct(&index->index_n.key, lttng_ht_seed),
+ stream->indexes_ht->hash_fct(&index->index_n.key,
+ lttng_ht_seed),
stream->indexes_ht->match_fct,
&index->index_n.key,
&index->index_n.node);
#ifndef lttng_ust_stringify
#define lttng_ust_stringify1(x) #x
-#define lttng_ust_stringify(x) lttng_ust_stringify1(x)
+#define lttng_ust_stringify(x) lttng_ust_stringify1(x)
#endif /* lttng_ust_stringify */
#define LTTNG_UST_ABI_SYM_NAME_LEN 256
};
struct lttng_ust_abi_key_token {
- uint32_t len; /* length of child structure. */
- uint32_t type; /* enum lttng_ust_abi_key_token_type */
+ uint32_t len; /* length of child structure. */
+ uint32_t type; /* enum lttng_ust_abi_key_token_type */
/*
* The size of this structure is fixed because it is embedded into
* children structures.
/* Length of this structure excludes the following string. */
struct lttng_ust_abi_key_token_string {
struct lttng_ust_abi_key_token parent;
- uint32_t string_len; /* string length (includes \0) */
+ uint32_t string_len; /* string length (includes \0) */
- char str[]; /* Null-terminated string following this structure. */
+ char str[]; /* Null-terminated string following this structure. */
} LTTNG_PACKED;
/*
* a given map dimension.
*/
enum lttng_ust_abi_key_type {
- LTTNG_UST_ABI_KEY_TYPE_TOKENS = 0, /* Dimension key is a set of tokens. */
- LTTNG_UST_ABI_KEY_TYPE_INTEGER = 1, /* Dimension key is an integer value. */
+ LTTNG_UST_ABI_KEY_TYPE_TOKENS = 0, /* Dimension key is a set of tokens. */
+ LTTNG_UST_ABI_KEY_TYPE_INTEGER = 1, /* Dimension key is an integer value. */
};
struct lttng_ust_abi_counter_key_dimension {
- uint32_t len; /* length of child structure */
- uint32_t key_type; /* enum lttng_ust_abi_key_type */
+ uint32_t len; /* length of child structure */
+ uint32_t key_type; /* enum lttng_ust_abi_key_type */
/*
* The size of this structure is fixed because it is embedded into
* children structures.
};
struct lttng_ust_abi_counter_event {
- uint32_t len; /* length of this structure */
- uint32_t action; /* enum lttng_ust_abi_counter_action */
+ uint32_t len; /* length of this structure */
+ uint32_t action; /* enum lttng_ust_abi_counter_action */
struct lttng_ust_abi_event event;
- uint32_t number_key_dimensions; /* array of dimensions is an array of var. len. elements. */
+ uint32_t number_key_dimensions; /* array of dimensions is an array of var. len. elements. */
/*
* Followed by additional data specific to the action, and by a
};
struct lttng_ust_abi_counter_dimension {
- uint32_t key_type; /* enum lttng_ust_abi_key_type */
- uint32_t flags; /* enum lttng_ust_abi_counter_dimension_flags */
- uint64_t size; /* dimension size (count of entries) */
+ uint32_t key_type; /* enum lttng_ust_abi_key_type */
+ uint32_t flags; /* enum lttng_ust_abi_counter_dimension_flags */
+ uint64_t size; /* dimension size (count of entries) */
uint64_t underflow_index;
uint64_t overflow_index;
} LTTNG_PACKED;
#include <common/scope-exit.hpp>
#include <common/uuid.hpp>
-#include <stdint.h>
#include <list>
+#include <stdint.h>
#define UST_APP_EVENT_LIST_SIZE 32
* Returns 0 on success, negative UST or system error value on error.
*/
int lttng_ust_ctl_recv_register_key(int sock,
- int *session_objd, /* session descriptor (output) */
- int *map_objd, /* map descriptor (output) */
- uint32_t *dimension, /*
- * Against which dimension is
- * this key expressed. (output)
- */
- uint64_t **dimension_indexes, /*
- * Indexes (output,
- * dynamically
- * allocated, must be
- * free(3)'d by the
- * caller if function
- * returns success.)
- * Contains @dimension
- * elements.
- */
- char **key_string, /*
- * key string (output,
- * dynamically allocated, must
- * be free(3)'d by the caller if
- * function returns success.)
- */
- uint64_t *user_token);
+ int *session_objd, /* session descriptor (output) */
+ int *map_objd, /* map descriptor (output) */
+ uint32_t *dimension, /*
+ * Against which dimension is
+ * this key expressed. (output)
+ */
+ uint64_t **dimension_indexes, /*
+ * Indexes (output,
+ * dynamically
+ * allocated, must be
+ * free(3)'d by the
+ * caller if function
+ * returns success.)
+ * Contains @dimension
+ * elements.
+ */
+ char **key_string, /*
+ * key string (output,
+ * dynamically allocated, must
+ * be free(3)'d by the caller if
+ * function returns success.)
+ */
+ uint64_t *user_token);
/*
* Returns 0 on success, negative error value on error.
*/
int lttng_ust_ctl_reply_register_key(int sock,
- uint64_t index, /* Index within dimension (input) */
- int ret_code); /* return code. 0 ok, negative error */
+ uint64_t index, /* Index within dimension (input) */
+ int ret_code); /* return code. 0 ok, negative error */
/*
* Returns 0 on success, negative UST or system error value on error.
lttng::sessiond::trace::trace_class_visitor& visitor) const
{
const lttng::urcu::lfht_iteration_adapter<lsu::registry_event,
- decltype(lsu::registry_event::_node),
- &lsu::registry_event::_node>
+ decltype(lsu::registry_event::_node),
+ &lsu::registry_event::_node>
events_view(*_events->ht);
/* Copy the event ptrs from the _events ht to this vector which we'll sort. */
ASSERT_LOCKED(_lock);
const lttng::urcu::lfht_iteration_adapter<lsu::registry_channel,
- decltype(lsu::registry_channel::_node),
- &lsu::registry_channel::_node>
+ decltype(lsu::registry_channel::_node),
+ &lsu::registry_channel::_node>
channels_ht_view(*_channels->ht);
std::vector<const lttng::sessiond::ust::registry_channel *> sorted_stream_classes(
channels_ht_view.begin(), channels_ht_view.end());
struct lttng_evaluation *evaluation = nullptr;
struct lttng_trace_archive_location *location = nullptr;
const struct lttng_evaluation_session_rotation_comm *comm;
- const lttng_payload_view comm_view =
- lttng_payload_view_from_view(view, 0, sizeof(*comm));
+ const lttng_payload_view comm_view = lttng_payload_view_from_view(view, 0, sizeof(*comm));
if (!lttng_payload_view_is_valid(&comm_view)) {
goto error;