clang-format: run clang-format on the tree
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 30 Aug 2024 20:37:20 +0000 (16:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 30 Aug 2024 20:37:20 +0000 (16:37 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I45c2a1f375e5b19b649ee5d11fb299ccd77c6845

include/lttng/health-internal.hpp
src/bin/lttng-crash/lttng-crash.cpp
src/bin/lttng-relayd/index.cpp
src/bin/lttng-sessiond/ust-abi-internal.hpp
src/bin/lttng-sessiond/ust-app.hpp
src/bin/lttng-sessiond/ust-ctl-internal.hpp
src/bin/lttng-sessiond/ust-registry-channel.cpp
src/bin/lttng-sessiond/ust-registry-session.cpp
src/common/conditions/session-rotation.cpp

index ac260dcf81be70b882f56b0e12342d298b8081d2..eee164cb141d4b86ed009d52d31c8ccfa9f5508e 100644 (file)
@@ -26,7 +26,7 @@
 #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;
 
index 51b970e439cf0719bcb69ff0060e3f0a3359784c..283bd0ec062af722504dfdd4ed594f9fed08c99e 100644 (file)
@@ -72,7 +72,7 @@ enum lttng_crash_type {
 
 /* 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 a9079825440eccaf2cf2674616c439e9266a9779..cb27441c11f011eea48202cbe2855ad9bfdcf759 100644 (file)
@@ -75,7 +75,8 @@ static struct relay_index *relay_index_add_unique(struct relay_stream *stream,
             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);
index 474dfd6f115458579bf0e6e684a926fd4ae612b9..1b042dcaa5e26803e0d97b590a025cbc8ec4dbf7 100644 (file)
@@ -22,7 +22,7 @@
 
 #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
@@ -139,8 +139,8 @@ enum lttng_ust_abi_counter_bitness {
 };
 
 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.
@@ -150,9 +150,9 @@ struct lttng_ust_abi_key_token {
 /* 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;
 
 /*
@@ -165,13 +165,13 @@ struct lttng_ust_abi_key_token_string {
  * 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.
@@ -202,11 +202,11 @@ enum lttng_ust_abi_counter_action {
 };
 
 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
@@ -220,9 +220,9 @@ enum lttng_ust_abi_counter_dimension_flags {
 };
 
 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;
index b007583d04529a29838df30139dd5b8f0d67d196..50abb643c3a370a3d069e641b017dcebd47ac286 100644 (file)
@@ -19,8 +19,8 @@
 #include <common/scope-exit.hpp>
 #include <common/uuid.hpp>
 
-#include <stdint.h>
 #include <list>
+#include <stdint.h>
 
 #define UST_APP_EVENT_LIST_SIZE 32
 
index d2463c93f5194abebb9c6cbf46a6ba609b00ede4..8485cd5ef1ab29f64b58b199a2e1414de8f88794 100644 (file)
@@ -541,36 +541,36 @@ int lttng_ust_ctl_reply_register_event(int sock,
  * 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.
index a77e335c847db1b648b95360ea8615b36227dcb7..a153eac6e0d5463ec15d2c73101451c68e6b6cba 100644 (file)
@@ -498,8 +498,8 @@ void lsu::registry_channel::_accept_on_event_classes(
        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. */
index f5da265b119c874f5b7ee3063c11f1ce7e950730..a9671dfe2a30eb31f25025b3d44e4fd54ed54465 100644 (file)
@@ -553,8 +553,8 @@ void lsu::registry_session::_accept_on_stream_classes(lst::trace_class_visitor&
        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());
index 45e360996bf5cec1619d84fe795af34e05b8eefe..9bc085831f59d62682bb1a3855a34eb877b1b41f 100644 (file)
@@ -318,8 +318,7 @@ static ssize_t create_evaluation_from_payload(enum lttng_condition_type type,
        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;
This page took 0.033291 seconds and 4 git commands to generate.