Fix typos
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 8 Jan 2024 20:36:24 +0000 (15:36 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 23 Jan 2024 14:53:16 +0000 (09:53 -0500)
Run `typos -w` [1] on the repository, and cherry-pick the good changes.

[1] https://github.com/crate-ci/typos

Change-Id: I995cf7d851cd7ff40e47767ffe14c03fbd2d23bb
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11426
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
47 files changed:
configure.ac
include/babeltrace2/graph/component-class-dev.h
include/babeltrace2/graph/component-class.h
include/babeltrace2/graph/message-iterator-class.h
include/babeltrace2/graph/message.h
src/argpar/argpar.h
src/autodisc/autodisc.c
src/bindings/python/bt2/bt2/message_iterator.py
src/bindings/python/bt2/bt2/py_plugin.py
src/bindings/python/bt2/setup.py.in
src/cli/babeltrace2-cfg-cli-args-default.c
src/common/common.h
src/cpp-common/bt2/value.hpp
src/ctf-writer/field-types.h
src/ctf-writer/resolve.c
src/ctf-writer/stream-class.c
src/ctf-writer/stream.c
src/gen-version-i.sh
src/lib/graph/graph.h
src/lib/graph/iterator.c
src/plugins/common/muxing/muxing.c
src/plugins/ctf/common/msg-iter/msg-iter.cpp
src/plugins/ctf/fs-sink/translate-ctf-ir-to-tsdl.cpp
src/plugins/ctf/fs-src/fs.cpp
src/plugins/ctf/fs-src/query.cpp
src/plugins/ctf/lttng-live/lttng-live.cpp
src/plugins/ctf/lttng-live/metadata.cpp
src/plugins/lttng-utils/debug-info/dwarf.h
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.c
src/plugins/lttng-utils/debug-info/trace-ir-mapping.c
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c
src/plugins/text/dmesg/dmesg.c
src/plugins/text/pretty/pretty.h
src/plugins/text/pretty/print.c
src/plugins/utils/trimmer/trimmer.c
src/python-plugin-provider/python-plugin-provider.c
tests/bindings/python/bt2/test_message_iterator.py
tests/bitfield/test-bitfield.c
tests/ctf-writer/ctf-writer.c
tests/data/plugins/flt.lttng-utils.debug-info/README.md
tests/data/plugins/flt.utils.muxer/bt_plugin_muxer_test.py
tests/lib/test-bt-uuid.c
tests/lib/test-trace-ir-ref.c
tests/plugins/src.ctf.lttng-live/test-live.sh
tests/utils/python/testrunner.py
tests/utils/tap-driver.sh
tests/utils/tap/tap.h

index 03ac73b8977071dbb4f6c6b7e1bdca17e60094ce..59d98e9cbf38a16a4a7975e41f1c8eea2d2c7c25 100644 (file)
@@ -110,7 +110,7 @@ AX_C___ATTRIBUTE__
 AS_IF([test "x$ax_cv___attribute__" != "xyes"],
   [AC_MSG_ERROR([The compiler does not support __attribute__ extensions])])
 
-# Make sur we have pthread support
+# Make sure we have pthread support
 AX_PTHREAD([], [AC_MSG_ERROR([Could not configure pthread support])])
 
 # Checks for typedefs, structures, and compiler characteristics.
@@ -396,9 +396,9 @@ AS_IF([test "x$BABELTRACE_DEBUG_MODE" = x1], [
 ], [BABELTRACE_DEBUG_MODE=0])
 
 
-##                              ##
-## Optionnal features selection ##
-##                              ##
+##                             ##
+## Optional features selection ##
+##                             ##
 
 # Python bindings
 # Disabled by default
index d79dc6c48a9229fab89a2e085d8f6c4a35344075..7267e62f1fe95df1ff69f3f7c315083bf2b49570 100644 (file)
@@ -33,7 +33,7 @@ A <strong><em>component class</em></strong> is the class of a \bt_comp:
 
 @attention
     This module (component class development API) offers functions to
-    programatically create component classes. To get the properties of
+    programmatically create component classes. To get the properties of
     an existing component class, see \ref api-comp-cls.
 
 A component class has <em>methods</em>. This module essentially
index 05fd7f3ce3b2b45f83949c0e631bc374cf3ee15e..4fe692f2c88110a112ad9abfe82252253131e0fb 100644 (file)
@@ -41,7 +41,7 @@ initialization parameters, to create many components with the
 
 There are two ways to obtain a component class:
 
-- Create one programatically: see \ref api-comp-cls-dev.
+- Create one programmatically: see \ref api-comp-cls-dev.
 
 - Borrow one from a \bt_plugin.
 
index 5a409caf60448a5233ec5191f442fe8c74a70019..82ee1f2d6e4cdb579f1859d1c3977526fe06a146 100644 (file)
@@ -419,21 +419,21 @@ The available message iterator class methods to implement are:
     this method, then the next time your
     \link api-msg-iter-cls-meth-next "next" method\endlink is called:
 
-    - For each "active" \bt_stream at the seeked time point, you must
+    - For each "active" \bt_stream at the sought time point, you must
       emit a \bt_sb_msg for this stream before you emit any other
       message for this stream.
 
       The stream beginning message must have a
       \ref api-msg-sb-prop-cs "default clock snapshot" which corresponds
-      to the seeked time point.
+      to the sought time point.
 
-    - For each "active" \bt_pkt at the seeked time point, you must
+    - For each "active" \bt_pkt at the sought time point, you must
       emit a \bt_pb_msg for this packet before you emit any other
       message for this packet.
 
       The packet beginning message must have a
       \ref api-msg-pb-prop-cs "default clock snapshot" which corresponds
-      to the seeked time point.
+      to the sought time point.
 
     The \bt_name project recommends that this method executes fast
     enough so as not to block an interactive application running on the
index cdd125fd440a348c78685a544dc62f2eb2f87c7a..a73d6e1cc240d7053e0af421d32d9d902e992c9f 100644 (file)
@@ -792,7 +792,7 @@ A message iterator inactivity message has the following property:
 <h1>\anchor api-msg-mip Message Interchange Protocol</h1>
 
 The <em>Message Interchange Protocol</em> (MIP) is the system of rules
-used by \bt_p_comp and \bt_p_msg_iter to exchance messages within a
+used by \bt_p_comp and \bt_p_msg_iter to exchange messages within a
 trace processing graph.
 
 The MIP covers everything related to messages and what they contain, as
index 27503c56fd56944207b4cf60869196bf1ae51c64..e34b209a30b42f8aa334839cd27a96e024eed65e 100644 (file)
@@ -243,7 +243,7 @@ For example, with the following command line (all options have no
 argument):
 
 @code{.unparsed}
--f -m meow --jus mix --kilo
+-f -m meow --just mix --kilo
 @endcode
 
 The original argument index of \c meow is&nbsp;2 while the original
@@ -278,7 +278,7 @@ For example, with the following command line (all options have no
 argument):
 
 @code{.unparsed}
--f -m meow --jus mix --kilo
+-f -m meow --just mix --kilo
 @endcode
 
 The non-option index of \c meow is&nbsp;0 while the original
index ed822ec70afb3509399aefedae8cd22d7a209975..d171a33dba2edf790e3a443e630608a2add6c951 100644 (file)
@@ -347,7 +347,7 @@ auto_source_discovery_internal_status support_info_query_all_sources(
                const bt_component_class_source *source;
                const bt_plugin *plugin;
                const bt_value *group;
-               double weigth;
+               double weight;
        } winner = { NULL, NULL, NULL, 0 };
 
        if (interrupter && bt_interrupter_is_set(interrupter)) {
@@ -479,7 +479,7 @@ auto_source_discovery_internal_status support_info_query_all_sources(
                                        bt_plugin_get_name(plugin), bt_component_class_get_name(cc), input,
                                        input_type, weight, group_value ? bt_value_string_get(group_value) : "(none)");
 
-                               if (weight > winner.weigth) {
+                               if (weight > winner.weight) {
                                        winner.source = source_cc;
                                        winner.plugin = plugin;
 
@@ -487,7 +487,7 @@ auto_source_discovery_internal_status support_info_query_all_sources(
                                        winner.group = group_value;
                                        bt_value_get_ref(winner.group);
 
-                                       winner.weigth = weight;
+                                       winner.weight = weight;
                                }
                        } else if (query_status == BT_QUERY_EXECUTOR_QUERY_STATUS_ERROR) {
                                BT_AUTODISC_LOGE_APPEND_CAUSE("babeltrace.support-info query failed.");
@@ -516,7 +516,7 @@ auto_source_discovery_internal_status support_info_query_all_sources(
                group = winner.group ? bt_value_string_get(winner.group) : NULL;
 
                BT_LOGI("Input awarded: input=%s, type=%s, component-class-name=source.%s.%s, weight=%f, group=%s",
-                       input, input_type, plugin_name, source_name, winner.weigth, group ? group : "(none)");
+                       input, input_type, plugin_name, source_name, winner.weight, group ? group : "(none)");
 
                status = auto_source_discovery_add(auto_disc, plugin_name,
                        source_name, group, input, original_input_index, log_level);
index b6887dc0d20e9f5139a9cd363d9815e9850f7b8e..8703e90be10f095c8a5f0cb96d9deade24ebe488 100644 (file)
@@ -171,7 +171,7 @@ class _UserMessageIterator(_MessageIterator):
         raise bt2_utils.Stop
 
     def _bt_next_from_native(self):
-        # this can raise anything: it's catched by the native part
+        # this can raise anything: it's caught by the native part
         try:
             msg = next(self)
         except StopIteration:
index 223615a55190d86323c15edf71d60b461b996c80..2a7414bb5c415f6212a851263f08a2c2de2637f7 100644 (file)
@@ -106,7 +106,7 @@ def _try_load_plugin_module(path):
     module_name = "bt_plugin_{}".format(h.hexdigest())
     assert module_name not in sys.modules
 
-    # try loading the module: any raised exception is catched by the caller
+    # try loading the module: any raised exception is caught by the caller
     if sys.version_info < (3, 5):
         mod = importlib.machinery.SourceFileLoader(module_name, path).load_module()
     else:
index d7eca061a1725101c170d42ba4388038f26bff82..cadefb728b10569ffc1297d85027a582324cc9a3 100644 (file)
@@ -60,12 +60,12 @@ def get_cflags():
 
 
 # distutils performs a similar transformation step on LDSHARED on
-# darwin to use the overriden CC as the default command for LDSHARED
+# darwin to use the overridden CC as the default command for LDSHARED
 # (see distutils' customize_compiler() step in the sysconfig module).
 #
 # This takes it a step further by using our own LDFLAGS (when available)
-# along with the overriden compiler and ensure that flags that are unsupported
-# by either the Python interprter's CC or the overriden CC don't cause a
+# along with the overridden compiler and ensure that flags that are unsupported
+# by either the Python interprter's CC or the overridden CC don't cause a
 # build failure.
 def get_ldshared():
     cc = os.environ.get("CC")
index 0e657720bc5788a489a047d4bc0f8daddb344ca2..e8cb2e1dd541f0328b75d660d19e165f71883ad0 100644 (file)
@@ -42,7 +42,7 @@ enum bt_config_cli_args_status bt_config_cli_args_create_with_default(int argc,
        g_setenv("LIBBABELTRACE2_PLUGIN_PROVIDER_DIR", CONFIG_IN_TREE_PROVIDER_DIR, 0);
 #else
        /*
-        * If the Pyhton plugin provider is disabled, use a non-exitent path to avoid
+        * If the Python plugin provider is disabled, use a non-exitent path to avoid
         * loading the system installed provider if it exit, if the env variable is
         * already set, do not overwrite it.
         */
index bf3a83887b3fea8b9cea8a54d5b92a72af806151..f546b6314f3fb17b24f8b2fe6b427adb3955659b 100644 (file)
@@ -334,7 +334,7 @@ size_t bt_common_get_page_size(int log_level);
 /*
  * Adds the digit separator `sep` as many times as needed to form groups
  * of `digits_per_group` digits within `str`. `str` must have enough
- * room to accomodate the new separators, that is:
+ * room to accommodate the new separators, that is:
  *
  *     strlen(str) + (strlen(str) / digits_per_group) + 1
  *
index 9b12211c6221ca31da58da6f6e24efe612883be3..81c033673f8b70d72c056e7dc5c0c4ed2094d54e 100644 (file)
@@ -1162,7 +1162,7 @@ using CommonMapValueForEachUserFunc = std::function<void(bt2c::CStringView, ObjT
  * `CommonMapValueForEachUserFunc<ObjT>` (the user function to call).
  *
  * This function catches any exception which the user function throws
- * and returns the `ErrorStatus` value. If there's no execption, this
+ * and returns the `ErrorStatus` value. If there's no exception, this
  * function returns the `OkStatus` value.
  */
 template <typename ObjT, typename LibObjT, typename LibStatusT, int OkStatus, int ErrorStatus>
index 064108cea58c8b9e30e0121402cb24bf79bad6a1..f5dbd99ea0fad4139faec4fe5569fb71aa99f1bb 100644 (file)
@@ -73,7 +73,7 @@ struct bt_ctf_field_type_common {
 
        /*
         * A type can't be modified once it is added to an event or after a
-        * a field has been instanciated from it.
+        * a field has been instantiated from it.
         */
        int frozen;
 
index 1cd244899a49713df748df91e65bb6f0db5f4f47..daa2b32b7ee1ec1ba78a2d43d33f972244031273 100644 (file)
@@ -1048,7 +1048,7 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type_common *type,
                ret = bt_ctf_field_type_common_variant_set_tag_field_path(
                        type, target_field_path);
                if (ret) {
-                       BT_LOGW("Cannot set varaint field type's tag field path: "
+                       BT_LOGW("Cannot set variant field type's tag field path: "
                                "ret=%d, ft-addr=%p, path=\"%s\", target-field-path=\"%s\"",
                                ret, type, pathstr,
                                target_field_path_pretty_str);
@@ -1058,7 +1058,7 @@ int resolve_sequence_or_variant_type(struct bt_ctf_field_type_common *type,
                ret = bt_ctf_field_type_common_variant_set_tag_field_type(
                        type, target_type);
                if (ret) {
-                       BT_LOGW("Cannot set varaint field type's tag field type: "
+                       BT_LOGW("Cannot set variant field type's tag field type: "
                                "ret=%d, ft-addr=%p, path=\"%s\", target-field-path=\"%s\"",
                                ret, type, pathstr,
                                target_field_path_pretty_str);
index f18bbef5f151f2da7aecd03ba66d229668fdf110..1c6245dea199970c60d42dffe8ca35106026aae3 100644 (file)
@@ -917,7 +917,7 @@ int bt_ctf_stream_class_serialize(struct bt_ctf_stream_class *stream_class,
         * The reference to the trace is only borrowed since the
         * serialization of the stream class might have been triggered
         * by the trace's destruction. In such a case, the trace's
-        * reference count would, unexepectedly, go through the sequence
+        * reference count would, unexpectedly, go through the sequence
         * 1 -> 0 -> 1 -> 0 -> ..., provoking an endless loop of destruction
         * and serialization.
         */
index 2242d977c2ac818d2430b1beaf1dd43deadb3fe0..43150a880f2fb722f6b0c1fad6110fc45fdd43c6 100644 (file)
@@ -1923,7 +1923,7 @@ end:
  * Returns the following codes:
  * 1 if the field was found and set,
  * 0 if nothing was done (field not found, or was already set),
- * <0 if an error was encoutered
+ * <0 if an error was encountered
  */
 static
 int try_set_structure_field_integer(struct bt_ctf_field *structure, const char *name,
index aea195945be517897aa36c0462fb90442cd87c2e..e061193790417e9915f2c06649d160b21f2c5d10 100755 (executable)
@@ -69,7 +69,7 @@ fi
 
        # Fetch the BT_VERSION_EXTRA_DESCRIPTION define from "version/extra_version_description",
        # sanitize and format it with a sed script to replace all non-alpha-numeric values
-       # with "-" and join all lines by replacing "\n" with litteral string c-style "\n" and
+       # with "-" and join all lines by replacing "\n" with literal string c-style "\n" and
        # output it to "version.i.tmp".
        echo "#define BT_VERSION_EXTRA_DESCRIPTION \"$($SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.,]/-/g ; s/\r{0,1}\n/\\n/g' "$TOP_SRCDIR/version/extra_version_description" 2> /dev/null)\""
 
@@ -80,7 +80,7 @@ fi
        # The sanitize step uses sed with a script to replace all
        # non-alpha-numeric values, except " " (space), to "-".
        # The formatting step uses sed with a script to join all lines
-       # by replacing "\n" with litteral string c-style "\n".
+       # by replacing "\n" with literal string c-style "\n".
        # shellcheck disable=SC2012
        echo "#define BT_VERSION_EXTRA_PATCHES \"$(ls -1 "$TOP_SRCDIR/version/extra_patches" | $GREP -v '^README.adoc' | $SED -E ':a ; N ; $!ba ; s/[^a-zA-Z0-9 \n\t\.]/-/g ; s/\r{0,1}\n/\\n/g' 2> /dev/null)\""
 } >> common/version.i.tmp
index 29490cdb537d9fb4a1e0b46f6d771c74b2c7c1a9..f1b39475322acb642539c1bcca629e96c67758c4 100644 (file)
@@ -60,7 +60,7 @@ struct bt_graph {
         *
         * In terms of ownership:
         * 1) The graph is the components' parent,
-        * 2) The graph is the connnections' parent,
+        * 2) The graph is the connections' parent,
         * 3) Components share the ownership of their connections,
         * 4) A connection holds weak references to its two component endpoints.
         */
index ff9f4a453473e071302a773abe27fb928b8ae072..a76e325be16fbf271aa06456bf5bf5b823cc0e51 100644 (file)
@@ -1257,7 +1257,7 @@ bt_message_iterator_next(
         * by its downstream owner.
         *
         * For the same reason, there is no way that this iterator could
-        * have seeked (cannot seek a self message iterator).
+        * have sought (cannot seek a self message iterator).
         */
        BT_ASSERT_DBG(iterator->state ==
                BT_MESSAGE_ITERATOR_STATE_ACTIVE);
@@ -2028,7 +2028,7 @@ end:
 
 /*
  * This function is installed as the iterator's next callback after we have
- * auto-seeked (seeked to the beginning and fast-forwarded) to send the
+ * auto-sought (sought to the beginning and fast-forwarded) to send the
  * messages saved in iterator->auto_seek.msgs.  Once this is done, the original
  * next callback is put back.
  */
index 699a43caeebb2546de7573844cc75922ecc66812..e15d1f6877ad2b16829348598361f12081261c48 100644 (file)
@@ -66,10 +66,10 @@ int message_type_weight(const bt_message_type msg_type)
 }
 
 /*
- * Compare 2 messages to order them in a determinitic way based on their
+ * Compare 2 messages to order them in a deterministic way based on their
  * types.
- * Returns -1 is left mesage must go first
- * Returns 1 is right mesage must go first
+ * Returns -1 is left message must go first
+ * Returns 1 is right message must go first
  */
 static
 int compare_messages_by_type(struct messages_to_compare *msgs)
index 79de791cfba17928d58ab1b3f7ea55cfd0b594ee..33ad4a27afacab558566cb7ef19c29d0f3042d4a 100644 (file)
@@ -1791,7 +1791,7 @@ end:
 
 /*
  * Ensure the message iterator's `stored_values` array is large enough to
- * accomodate `storing_index`.
+ * accommodate `storing_index`.
  *
  * We may need more slots in the array than initially allocated if more
  * metadata arrives along the way.
@@ -2741,7 +2741,7 @@ enum ctf_msg_iter_status ctf_msg_iter_get_next_message(struct ctf_msg_iter *msg_
             }
             goto end;
         case STATE_EMIT_MSG_DISCARDED_EVENTS:
-            /* create_msg_discared_events() logs errors */
+            /* create_msg_discarded_events() logs errors */
             *message = create_msg_discarded_events(msg_it);
 
             if (!*message) {
@@ -2750,7 +2750,7 @@ enum ctf_msg_iter_status ctf_msg_iter_get_next_message(struct ctf_msg_iter *msg_
 
             goto end;
         case STATE_EMIT_MSG_DISCARDED_PACKETS:
-            /* create_msg_discared_packets() logs errors */
+            /* create_msg_discarded_packets() logs errors */
             *message = create_msg_discarded_packets(msg_it);
 
             if (!*message) {
index 85d8ccf9513a92c5cdc9412f6f319f28ac6fed3f..db7af8658fd15436aaeb361dcd482fb1bdd31f5d 100644 (file)
@@ -717,7 +717,7 @@ static void append_stream_class(struct ctx *ctx, struct fs_sink_ctf_stream_class
     }
 
     /*
-     * Unconditionnally write the packet sequence number as, even if
+     * Unconditionally write the packet sequence number as, even if
      * there's no possible discarded packets message, it's still
      * useful information to have.
      */
index 86b4c45ba636b19dc33abc8d9bf8f1425a1d6760..5306b421dc98d3254d87656260d9b159a7c572df 100644 (file)
@@ -137,7 +137,7 @@ ctf_fs_iterator_next(bt_self_message_iterator *iterator, bt_message_array_const
          * accumulated message objects in the output
          * message array, so we need to return
          * BT_MESSAGE_ITERATOR_NEXT_METHOD_STATUS_OK so that they are
-         * transfered to downstream. This other status occurs
+         * transferred to downstream. This other status occurs
          * again the next time muxer_msg_iter_do_next() is
          * called, possibly without any accumulated
          * message, in which case we'll return it.
index 0e3bdc99de9b9ed451d79ad3ea7b060e2c69b7c8..fa73ab19d8bd24bba688fae309f1c70b27687a83 100644 (file)
@@ -165,7 +165,7 @@ end:
     if (metadata_fp) {
         ret = fclose(metadata_fp);
         if (ret) {
-            BT_LOGE_ERRNO("Cannot close metatada file stream", ": path=\"%s\"", path);
+            BT_LOGE_ERRNO("Cannot close metadata file stream", ": path=\"%s\"", path);
         }
     }
 
index 49dc148c2d500001d23291007792a1058a4fc56e..35cbff95eb713d66a9f67be072d6472bee751b84 100644 (file)
@@ -1109,7 +1109,7 @@ handle_late_message(struct lttng_live_msg_iter *lttng_live_msg_iter,
      * by this component. We CANNOT send it as is.
      *
      * The only expected scenario in which that could happen is the
-     * following, everything else is a bug in this component, relay deamon,
+     * following, everything else is a bug in this component, relay daemon,
      * or CTF parser.
      *
      * Expected scenario: The CTF message iterator emitted discarded
@@ -1276,7 +1276,7 @@ next_stream_iterator_for_trace(struct lttng_live_msg_iter *lttng_live_msg_iter,
 
             /*
              * Get the timestamp in nanoseconds from origin of this
-             * messsage.
+             * message.
              */
             live_get_msg_ts_ns(lttng_live_msg_iter, msg, lttng_live_msg_iter->last_msg_ts_ns,
                                &curr_msg_ts_ns);
@@ -1684,7 +1684,7 @@ lttng_live_msg_iter_next(bt_self_message_iterator *self_msg_it, bt_message_array
 
         /*
          * Insert the next message to the message batch. This will set
-         * stream iterator current messsage to NULL so that next time
+         * stream iterator current message to NULL so that next time
          * we fetch the next message of that stream iterator
          */
         BT_MESSAGE_MOVE_REF(msgs[*count], youngest_stream_iter->current_msg);
@@ -1704,7 +1704,7 @@ return_status:
         /*
          * If we gathered messages, return _OK even if the graph was
          * interrupted. This allows for the components downstream to at
-         * least get the thoses messages. If the graph was indeed
+         * least get the those messages. If the graph was indeed
          * interrupted there should not be another _next() call as the
          * application will tear down the graph. This component class
          * doesn't support restarting after an interruption.
index b8fbf727caba831ae6a713e63587a505ab0b64d5..b081d6395bf4342e9029396e19d1f5c2b60fef25 100644 (file)
@@ -212,7 +212,7 @@ enum lttng_live_iterator_status lttng_live_metadata_update(struct lttng_live_tra
             goto end;
         }
 
-        /* The relay sent zero bytes of metdata. */
+        /* The relay sent zero bytes of metadata. */
         trace->metadata_stream_state = LTTNG_LIVE_METADATA_STREAM_STATE_NOT_NEEDED;
         goto end;
     }
@@ -263,7 +263,7 @@ enum lttng_live_iterator_status lttng_live_metadata_update(struct lttng_live_tra
             trace->clock_class = borrow_any_clock_class(trace->trace_class);
         }
 
-        /* The metadata was updated succesfully. */
+        /* The metadata was updated successfully. */
         trace->metadata_stream_state = LTTNG_LIVE_METADATA_STREAM_STATE_NOT_NEEDED;
 
         break;
index 1482cdf2296a099a612767efd284f99cef79e26f..2a446b194c22a06af8ae0f3b79f40242ee8ec621 100644 (file)
@@ -196,7 +196,7 @@ int bt_dwarf_die_get_call_line(struct bt_dwarf_die *die,
  * @param addr         The memory address to verify
  * @param contains     Out parameter, true if addr is contained,
  *                     false if not
- * @returns            0 on succes, -1 on failure
+ * @returns            0 on success, -1 on failure
  */
 int bt_dwarf_die_contains_addr(struct bt_dwarf_die *die, uint64_t addr,
                bool *contains);
index ee21026946768dabbc1f69519348ee95a7c5e60a..51f76c003e00b9d9d0b93af97c48e9df3ad58271 100644 (file)
@@ -71,7 +71,7 @@ enum debug_info_trace_ir_mapping_status copy_trace_content(
                bt_trace_borrow_environment_entry_by_index_const(
                        in_trace, i, &value_name, &value);
 
-               BT_COMP_LOGD("Copying trace environnement entry: "
+               BT_COMP_LOGD("Copying trace environment entry: "
                        "index=%" PRId64 ", value-addr=%p, value-name=\"%s\"",
                        i, value, value_name);
 
index 7ddf9f14400a8c6b883202453c11c8daa96a197e..5c805f2d5971867cbdc52e260c9f583b4e5331e8 100644 (file)
@@ -40,7 +40,7 @@ bt_trace_class *create_new_mapped_trace_class(struct trace_ir_maps *ir_maps,
 
        BT_ASSERT(!metadata_maps->output_trace_class);
 
-       /* Create the ouput trace class. */
+       /* Create the output trace class. */
        metadata_maps->output_trace_class  =
                bt_trace_class_create(ir_maps->self_comp);
        if (!metadata_maps->output_trace_class) {
index 68504d2be61e541c5044f3e408b6f4944f60f9a4..7dbb262c19dee7cd7dc24c422025c09bd3602142 100644 (file)
@@ -22,7 +22,7 @@
 #include "trace-ir-metadata-field-class-copy.h"
 
 /*
- * This fonction walks througth the nested structures field class to resolve a
+ * This function walks through the nested structures field class to resolve a
  * field path object. A field path is made of indexes inside possibly nested
  * structures ultimately leading to a field class.
  */
index d23e31bec5cd0b69b5b1079aae0b81a25417214b..790b58d4b15a8901d7c66f3309be2d7e82dfa4fe 100644 (file)
@@ -852,7 +852,7 @@ bt_message_iterator_class_next_method_status dmesg_msg_iter_next(
                 * accumulated message objects in the output
                 * message array, so we need to return
                 * BT_SELF_MESSAGE_ITERATOR_STATUS_OK so that they
-                * are transfered to downstream. This other status
+                * are transferred to downstream. This other status
                 * occurs again the next time muxer_msg_iter_do_next()
                 * is called, possibly without any accumulated
                 * message, in which case we'll return it.
index d9f383b1d6f23550f75cce8b2d3970e6f5a7cc1d..b73f33455767fb0c93c80631b48c10ad6d40ac10 100644 (file)
@@ -14,7 +14,7 @@
 #include <babeltrace2/babeltrace.h>
 
 /*
- * `bt_field_*_enumeration` are backed by 64 bits integers so the maximun
+ * `bt_field_*_enumeration` are backed by 64 bits integers so the maximum
  * number of bitflags in any enumeration is 64.
  */
 #define ENUMERATION_MAX_BITFLAGS_COUNT (sizeof(uint64_t) * 8)
index 4a2fee57aecc85ecb79e5dce571de9d93a4abce0..a08235e80cb4219786717fb4bbeb837c43c3070a 100644 (file)
@@ -745,7 +745,7 @@ void print_enum_value_bit_flag_label_arrays(struct pretty_component *pretty)
  *
  * This function will set the count to the count of mapping labels that match
  * the value. If count == 0, the caller has nothing to do, if count > 0,
- * the label_array contains the labels to print and the caller is reponsible
+ * the label_array contains the labels to print and the caller is responsible
  * to call g_free on it once the values have been used.
  */
 static
@@ -835,7 +835,7 @@ end:
  *
  * This function will set the count to the count of mapping labels that match
  * the value. If count == 0, the caller has nothing to do, if count > 0,
- * the label_array contains the labels to print and the caller is reponsible
+ * the label_array contains the labels to print and the caller is responsible
  * to call g_free on it once the values have been used.
  */
 static
index 094cbe9277629e92094de60b3c8dcecf7ec13d19..d13a9fef3d4227f3abc7b741c2f2796e7c096501 100644 (file)
@@ -173,7 +173,7 @@ bool compile_and_match(const char *pattern, const char *string, GMatchInfo **mat
                /*
                 * g_regex_match allocates `*match_info` even if it returns
                 * FALSE.  If there's no match, we have no use for it, so free
-                * it immediatly and don't return it to the caller.
+                * it immediately and don't return it to the caller.
                 */
                g_match_info_free(*match_info);
                *match_info = NULL;
index 17305dd5ef7ab859ea1affa1837144f5c196cfc1..4df648527d93afc824e64cd8e675969f3a7b2a88 100644 (file)
@@ -663,7 +663,7 @@ int bt_plugin_python_create_all_from_file(const char *path,
        /*
         * Initialize Python now.
         *
-        * This is not done in the library contructor because the
+        * This is not done in the library constructor because the
         * interpreter is somewhat slow to initialize. If you don't
         * have any potential Python plugins, you don't need to endure
         * this waiting time everytime you load the library.
index e121c973c4325e46f2398c1a38eed5a9140aa1b8..62600ac5d5b0b9b993d41b30d80aad220aeb4647 100644 (file)
@@ -102,7 +102,7 @@ class UserMessageIteratorTestCase(unittest.TestCase):
         self.assertTrue(flt_iter_initialized)
 
     # Test that creating a message iterator from a sink component on a
-    # non-connected inport port raises.
+    # non-connected input port raises.
     def test_create_from_sink_component_unconnected_port_raises(self):
         class MySink(bt2._UserSinkComponent):
             def __init__(comp_self, config, params, obj):
@@ -124,8 +124,8 @@ class UserMessageIteratorTestCase(unittest.TestCase):
         graph.run()
         self.assertTrue(seen)
 
-    # Test that creating a message iterator from a message iteartor on a
-    # non-connected inport port raises.
+    # Test that creating a message iterator from a message iterator on a
+    # non-connected input port raises.
     def test_create_from_message_iterator_unconnected_port_raises(self):
         class MyFilterIter(bt2._UserMessageIterator):
             def __init__(iter_self, config, port):
index 017ebeb3ae40ec2c8561ae184a0b64caa043621e..ea5efc7276d21310444112d401bb8867de52b755 100644 (file)
@@ -748,7 +748,7 @@ int main(int argc, char **argv)
                return print_encodings(src, shift, len);
        }
 
-       /* Run tap-formated tests */
+       /* Run tap-formatted tests */
        run_test();
        return exit_status();
 }
index 0b979acef9dfdf64347786a80e87ed82ad0f8d3d..0e46404ea6dee7f48ea953ffa03875f51f0bce3e 100644 (file)
@@ -678,7 +678,7 @@ void append_complex_event(struct bt_ctf_stream_class *stream_class,
        bt_ctf_object_put_ref(ret_field_type);
 
        event = bt_ctf_event_create(event_class);
-       ok(event, "Instanciate a complex event");
+       ok(event, "Instantiate a complex event");
 
        ret_event_class = bt_ctf_event_get_class(event);
        ok(ret_event_class == event_class,
@@ -999,19 +999,19 @@ void type_field_tests(void)
        bt_ctf_object_put_ref(returned_type);
 
        int_16 = bt_ctf_field_create(int_16_type);
-       ok(int_16, "Instanciate a signed 16-bit integer");
+       ok(int_16, "Instantiate a signed 16-bit integer");
        uint_12 = bt_ctf_field_create(uint_12_type);
-       ok(uint_12, "Instanciate an unsigned 12-bit integer");
+       ok(uint_12, "Instantiate an unsigned 12-bit integer");
        returned_type = bt_ctf_field_get_type(int_16);
        ok(returned_type == int_16_type,
                "bt_ctf_field_get_type returns the correct type");
 
-       /* Can't modify types after instanciating them */
+       /* Can't modify types after instantiating them */
        ok(bt_ctf_field_type_integer_set_base(uint_12_type,
                BT_CTF_INTEGER_BASE_DECIMAL),
-               "Check an integer type' base can't be modified after instanciation");
+               "Check an integer type' base can't be modified after instantiation");
        ok(bt_ctf_field_type_integer_set_signed(uint_12_type, 0),
-               "Check an integer type's signedness can't be modified after instanciation");
+               "Check an integer type's signedness can't be modified after instantiation");
 
        /* Check overflows are properly tested for */
        ok(bt_ctf_field_integer_signed_set_value(int_16, -32768) == 0,
@@ -1027,7 +1027,7 @@ void type_field_tests(void)
                "Check 0 is allowed for an unsigned 12-bit integer");
 
        string = bt_ctf_field_create(string_type);
-       ok(string, "Instanciate a string field");
+       ok(string, "Instantiate a string field");
        ok(bt_ctf_field_string_set_value(string, "A value") == 0,
                "Set a string's value");
 
@@ -1421,7 +1421,7 @@ end:
 }
 
 static
-void test_instanciate_event_before_stream(struct bt_ctf_writer *writer,
+void test_instantiate_event_before_stream(struct bt_ctf_writer *writer,
                struct bt_ctf_clock *clock)
 {
        int ret = 0;
@@ -1513,7 +1513,7 @@ void test_instanciate_event_before_stream(struct bt_ctf_writer *writer,
                "bt_ctf_event_get_stream returns an event's stream after it has been appended");
 end:
        ok(ret == 0,
-               "Create an event before instanciating its associated stream");
+               "Create an event before instantiating its associated stream");
        bt_ctf_object_put_ref(stream);
        bt_ctf_object_put_ref(ret_stream);
        bt_ctf_object_put_ref(stream_class);
@@ -1697,14 +1697,14 @@ int main(int argc, char **argv)
                == 0, "Add version (%s) environment field to writer instance",
                name.version);
        ok(bt_ctf_writer_add_environment_field(writer, "machine", name.machine)
-               == 0, "Add machine (%s) environment field to writer istance",
+               == 0, "Add machine (%s) environment field to writer instance",
                name.machine);
 
        /* Define a clock and add it to the trace */
        ok(!bt_ctf_clock_create("signed"),
                "Illegal clock name rejected");
        clock = bt_ctf_clock_create(clock_name);
-       ok(clock, "Clock created sucessfully");
+       ok(clock, "Clock created successfully");
        returned_clock_name = bt_ctf_clock_get_name(clock);
        ok(returned_clock_name, "bt_ctf_clock_get_name returns a clock name");
        ok(returned_clock_name ? strcmp(returned_clock_name, clock_name) == 0 : 0,
@@ -1922,7 +1922,7 @@ int main(int argc, char **argv)
        ok(bt_ctf_trace_get_stream_count(trace) == 0,
                "bt_ctf_trace_get_stream_count() succeeds and returns the correct value (0)");
        stream1 = bt_ctf_writer_create_stream(writer, stream_class);
-       ok(stream1, "Instanciate a stream class from writer");
+       ok(stream1, "Instantiate a stream class from writer");
        ok(bt_ctf_trace_get_stream_count(trace) == 1,
                "bt_ctf_trace_get_stream_count() succeeds and returns the correct value (1)");
        stream = bt_ctf_trace_get_stream_by_index(trace, 0);
@@ -1966,7 +1966,7 @@ int main(int argc, char **argv)
        ret = bt_ctf_field_type_structure_add_field(packet_header_type,
                packet_header_field_type, "should_fail");
        ok(ret < 0,
-               "Trace packet header type can't be modified once a stream has been instanciated");
+               "Trace packet header type can't be modified once a stream has been instantiated");
 
        /*
         * Try to modify the packet context type after a stream has been
@@ -1975,7 +1975,7 @@ int main(int argc, char **argv)
        ret = bt_ctf_field_type_structure_add_field(packet_context_type,
                packet_context_field_type, "should_fail");
        ok(ret < 0,
-               "Packet context type can't be modified once a stream has been instanciated");
+               "Packet context type can't be modified once a stream has been instantiated");
 
        /*
         * Try to modify the stream event context type after a stream has been
@@ -1984,9 +1984,9 @@ int main(int argc, char **argv)
        ret = bt_ctf_field_type_structure_add_field(stream_event_context_type,
                integer_type, "should_fail");
        ok(ret < 0,
-               "Stream event context type can't be modified once a stream has been instanciated");
+               "Stream event context type can't be modified once a stream has been instantiated");
 
-       /* Should fail after instanciating a stream (frozen) */
+       /* Should fail after instantiating a stream (frozen) */
        ok(bt_ctf_stream_class_set_clock(stream_class, clock),
                "Changes to a stream class that was already instantiated fail");
 
@@ -2021,7 +2021,7 @@ int main(int argc, char **argv)
 
        test_clock_utils();
 
-       test_instanciate_event_before_stream(writer, clock);
+       test_instantiate_event_before_stream(writer, clock);
 
        append_simple_event(stream_class, stream1, clock);
 
index 177ba57259094aea8d5000f05e48c0f3c309443f..38045d1675dea9b6b2586f462e90fd11f925df85 100644 (file)
@@ -99,7 +99,7 @@ steps:
 5. Copy the resulting trace back into the Babeltrace repository.
 
 When running babeltrace with the `--debug-info-target-prefix` option or
-`target-prefix` component paramater set to the directory containing the right
+`target-prefix` component parameter set to the directory containing the right
 `libhello-so` file. In the example used above, the `libhello-so` file is in the
 `x86-64-linux-gnu/dwarf-full/` directory.
 In the printed trace, the `my_provider:my_first_tracepoint` events should
index eaf2c9d99b33e86172a82d173da8b085e9fe8cf2..4026433ff9d568dfd88a6164847573cb2c73124c 100644 (file)
@@ -368,7 +368,7 @@ class DiffEventClassName:
         stream = trace.create_stream(sc, 0)
 
         # Use event class name length as timestamp so that both stream
-        # beginning message are not at the same time. This test is targetting
+        # beginning message are not at the same time. This test is targeting
         # event message.
         sb_msg = msg_iter._create_stream_beginning_message(stream, len(ec.name))
         ev_msg = msg_iter._create_event_message(ec, stream, 50)
@@ -405,7 +405,7 @@ class DiffEventClassId:
         stream = trace.create_stream(sc, 0)
 
         # Use event class id as timestamp so that both stream beginning message
-        # are not at the same time. This test is targetting event message.
+        # are not at the same time. This test is targeting event message.
         sb_msg = msg_iter._create_stream_beginning_message(stream, ec.id)
         ev_msg = msg_iter._create_event_message(ec, stream, 50)
         se_msg = msg_iter._create_stream_end_message(stream, iter_id * 193)
index 5b0c3bed66b1a45e64d0fc337ee8c2350fe48cb1..0c881ba346b7682c3a88218b9d122b9cb7deb3e2 100644 (file)
@@ -175,7 +175,7 @@ void run_test(void)
 
 int main(void)
 {
-       /* Run tap-formated tests */
+       /* Run tap-formatted tests */
        run_test();
 
        return exit_status();
index 5d0bdfd96f7f1d8411a6a11fff41faa25ebb7ce9..a2351047608f5671b8eb8bbd0008baf2e6e1b817 100644 (file)
@@ -567,7 +567,7 @@ static void test_put_order(void)
 /**
  * The objective of this test is to implement and expand upon the scenario
  * described in the reference counting documentation and ensure that any node of
- * the Trace, Stream Class, Event Class, Stream and Event hiearchy keeps all
+ * the Trace, Stream Class, Event Class, Stream and Event hierarchy keeps all
  * other "alive" and reachable.
  *
  * External tools (e.g. valgrind) should be used to confirm that this
index ef30ba1dae14c0d89e7e6d41371b13a0e9b0e728..8a7bb608e683f459526d981be475733ccf3d8c40 100755 (executable)
@@ -375,7 +375,7 @@ test_split_metadata() {
 test_stored_values() {
        # Split metadata, where the new metadata requires additional stored
        # value slots in CTF message iterators.
-       local test_text="split metadata requiring additionnal stored values"
+       local test_text="split metadata requiring additional stored values"
        local cli_args_template="-i lttng-live net://localhost:@PORT@/host/hostname/stored-values -c sink.text.details"
        local server_args=("$test_data_dir/stored-values.json")
        local expected_stdout="${test_data_dir}/stored-values.expect"
index 88b96ef83c784b49c7220d6310f5a93d3ea5c39a..4ff52d82d48ee535a17fc2e720a5a5144b85ed75 100644 (file)
@@ -31,7 +31,7 @@ if __name__ == "__main__":
     mut_exclu_group.add_argument(
         "-t",
         "--test-case",
-        help="Run a specfic test module name, test class "
+        help="Run a specific test module name, test class "
         "name, or test method name "
         "(e.g. test_event.EventTestCase.test_clock_value)",
         type=str,
index 94f1c3e12f0a3b5773266d1db2cce8a161ec624c..bb4688069b464cec3623dfb8926e63f87e06fcab 100755 (executable)
@@ -361,7 +361,7 @@ function setup_result_obj(line)
   sub("^(not )?ok[ \t]*", "", line)
 
   # If the result has an explicit number, get it and strip it; otherwise,
-  # automatically assing the next progresive number to it.
+  # automatically assign the next progressive number to it.
   if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/)
     {
       match(line, "^[0-9]+")
index 76e70230b462cf5b715735aff141883a1e4d7929..f07c1dbbabf309765085f576158be0b60d078779 100644 (file)
@@ -10,7 +10,7 @@ extern "C" {
 #endif
 
 /* '## __VA_ARGS__' is a gcc'ism. C99 doesn't allow the token pasting
-   and requires the caller to add the final comma if they've ommitted
+   and requires the caller to add the final comma if they've omitted
    the optional arguments */
 #ifdef __GNUC__
 # define ok(e, test, ...) ((e) ?                                       \
This page took 0.051104 seconds and 4 git commands to generate.