lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] [PATCH lttng-tools] clean-up: fix typos by running codespell
@ 2020-12-17 16:29 Maxime Roussin-Bélanger via lttng-dev
  0 siblings, 0 replies; only message in thread
From: Maxime Roussin-Bélanger via lttng-dev @ 2020-12-17 16:29 UTC (permalink / raw)
  To: lttng-dev

Signed-off-by: Maxime Roussin-Bélanger <maxime.roussinbelanger@gmail.com>
---
 CodingStyle                                   |  4 +--
 config/tap-driver.sh                          |  2 +-
 configure.ac                                  |  2 +-
 doc/kernel-CodingStyle.txt                    |  2 +-
 doc/live-reading-protocol.txt                 |  2 +-
 doc/python-howto.txt                          |  2 +-
 doc/quickstart.txt                            |  2 +-
 extras/bindings/swig/python/lttng.i.in        |  2 +-
 extras/checkpatch.pl                          |  8 +++---
 include/Makefile.am                           |  4 +--
 include/lttng/condition/buffer-usage.h        | 14 +++++-----
 include/lttng/condition/session-rotation.h    |  2 +-
 include/lttng/lttng.h                         |  2 +-
 include/lttng/session.h                       |  2 +-
 include/lttng/tracker.h                       |  2 +-
 include/lttng/trigger/trigger-internal.h      |  2 +-
 include/lttng/userspace-probe.h               |  2 +-
 src/bin/lttng-consumerd/health-consumerd.c    |  2 +-
 src/bin/lttng-relayd/health-relayd.c          |  2 +-
 src/bin/lttng-relayd/index.c                  |  4 +--
 src/bin/lttng-relayd/live.c                   |  2 +-
 src/bin/lttng-relayd/lttng-viewer-abi.h       |  2 +-
 src/bin/lttng-relayd/main.c                   |  4 +--
 src/bin/lttng-relayd/session.c                |  2 +-
 src/bin/lttng-relayd/sessiond-trace-chunks.c  |  6 ++---
 src/bin/lttng-relayd/stream.c                 |  4 +--
 src/bin/lttng-relayd/viewer-session.c         |  2 +-
 src/bin/lttng-sessiond/action-executor.c      |  2 +-
 src/bin/lttng-sessiond/agent-thread.c         |  2 +-
 src/bin/lttng-sessiond/client.c               |  4 +--
 src/bin/lttng-sessiond/cmd.c                  | 12 ++++-----
 src/bin/lttng-sessiond/consumer.c             |  4 +--
 src/bin/lttng-sessiond/kernel.c               |  2 +-
 src/bin/lttng-sessiond/lttng-syscall.c        |  2 +-
 src/bin/lttng-sessiond/main.c                 |  2 +-
 src/bin/lttng-sessiond/manage-apps.c          |  2 +-
 src/bin/lttng-sessiond/modprobe.c             |  8 +++---
 .../notification-thread-events.c              | 14 +++++-----
 src/bin/lttng-sessiond/notify-apps.c          |  2 +-
 src/bin/lttng-sessiond/register.c             |  2 +-
 src/bin/lttng-sessiond/session.c              |  2 +-
 src/bin/lttng-sessiond/session.h              |  2 +-
 src/bin/lttng-sessiond/timer.c                |  2 +-
 src/bin/lttng-sessiond/ust-app.c              | 10 +++----
 src/bin/lttng-sessiond/ust-app.h              |  6 ++---
 src/bin/lttng-sessiond/ust-registry.c         |  4 +--
 src/bin/lttng-sessiond/ust-registry.h         |  2 +-
 src/bin/lttng/commands/add_context.c          |  2 +-
 src/bin/lttng/commands/disable_channels.c     |  2 +-
 src/bin/lttng/commands/enable_events.c        |  4 +--
 src/bin/lttng/commands/list.c                 |  8 +++---
 src/bin/lttng/commands/load.c                 |  2 +-
 src/common/align.h                            |  2 +-
 src/common/compat/poll.c                      |  2 +-
 src/common/compat/poll.h                      |  6 ++---
 src/common/config/session-config.c            |  2 +-
 src/common/consumer/consumer-stream.c         |  4 +--
 src/common/consumer/consumer-stream.h         |  2 +-
 src/common/consumer/consumer.c                | 20 +++++++-------
 src/common/consumer/consumer.h                |  2 +-
 src/common/consumer/metadata-bucket.c         |  2 +-
 src/common/defaults.h                         |  4 +--
 src/common/dynamic-array.h                    |  2 +-
 src/common/dynamic-buffer.h                   |  2 +-
 src/common/fd-tracker/fd-tracker.c            |  2 +-
 src/common/fd-tracker/fd-tracker.h            |  2 +-
 src/common/fd-tracker/inode.h                 |  2 +-
 src/common/hashtable/utils.c                  |  2 +-
 src/common/health/health.c                    |  2 +-
 src/common/kernel-consumer/kernel-consumer.c  |  2 +-
 src/common/kernel-ctl/kernel-ioctl.h          |  2 +-
 src/common/lttng-elf.c                        |  8 +++---
 src/common/mi-lttng.c                         |  6 ++---
 src/common/mi-lttng.h                         |  6 ++---
 src/common/optional.h                         |  2 +-
 src/common/runas.c                            |  2 +-
 src/common/sessiond-comm/relayd.h             |  2 +-
 src/common/spawn-viewer.c                     |  4 +--
 src/common/trace-chunk.c                      |  2 +-
 src/common/trace-chunk.h                      |  2 +-
 src/common/unix.c                             |  2 +-
 src/common/uri.c                              |  2 +-
 src/common/ust-consumer/ust-consumer.c        | 12 ++++-----
 src/common/utils.c                            |  6 ++---
 src/lib/lttng-ctl/lttng-ctl-helper.h          |  2 +-
 src/lib/lttng-ctl/lttng-ctl.c                 |  2 +-
 src/lib/lttng-ctl/rotate.c                    |  2 +-
 src/lib/lttng-ctl/tracker.c                   |  2 +-
 tests/perf/find_event.c                       |  2 +-
 tests/regression/kernel/test_callstack        |  2 +-
 .../regression/kernel/test_select_poll_epoll  |  2 +-
 tests/regression/kernel/test_userspace_probe  | 10 +++----
 .../kernel/validate_select_poll_epoll.py      |  8 +++---
 tests/regression/tools/live/live_test.c       |  2 +-
 tests/regression/tools/mi/test_mi             | 26 +++++++++----------
 tests/regression/tools/mi/validate_xml.c      |  2 +-
 .../regression/tools/rotation/rotate_utils.sh |  4 +--
 .../streaming/test_high_throughput_limits     |  4 +--
 .../tools/tracker/test_event_tracker          |  2 +-
 tests/regression/ust/daemon/test_daemon.py    |  4 +--
 .../lttng-ust-getcpu-override-test.c          |  2 +-
 tests/regression/ust/linking/README           |  2 +-
 .../ust/low-throughput/test_low_throughput    |  2 +-
 tests/regression/ust/multi-lib/README         |  2 +-
 tests/regression/ust/multi-lib/probes.h       |  2 +-
 tests/regression/ust/multi-lib/test_multi_lib |  2 +-
 tests/utils/parse-callstack.py                |  4 +--
 tests/utils/tap/tap.h                         |  2 +-
 tests/utils/test_utils.py                     |  2 +-
 .../gen-ust-events-ns/gen-ust-events-ns.c     |  2 +-
 tests/utils/utils.c                           |  2 +-
 tests/utils/utils.sh                          |  8 +++---
 112 files changed, 209 insertions(+), 209 deletions(-)

diff --git a/CodingStyle b/CodingStyle
index 6ff931b1..2f8aaf26 100644
--- a/CodingStyle
+++ b/CodingStyle
@@ -8,7 +8,7 @@ Tabs VS Spaces:
 
 Right, so our two cents in this endless war! This project uses TABS for one
 simple reason, the coder can choose whatever size or type his/her indentation
-is and can set the prefered coding style by replacing the tabs which each
+is and can set the preferred coding style by replacing the tabs which each
 normally respected IDE/editor can do.
 
 For vim, here is what I used:
@@ -87,7 +87,7 @@ For header files, please declare the following in this order:
 3) Function prototype
 
 Furthermore, respect the name spacing of files for each non-static symbol
-visiable outside the scope of the C file. For instance, for the utils.c file in
+visible outside the scope of the C file. For instance, for the utils.c file in
 libcommon, every call should be prefixed by "utils_*".
 
 Error handling:
diff --git a/config/tap-driver.sh b/config/tap-driver.sh
index 65037ab6..5813f6af 100755
--- a/config/tap-driver.sh
+++ b/config/tap-driver.sh
@@ -374,7 +374,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 progresive number to it.
   if (line ~ /^[0-9]+$/ || line ~ /^[0-9]+[^a-zA-Z0-9_]/)
     {
       match(line, "^[0-9]+")
diff --git a/configure.ac b/configure.ac
index 66dd0169..bcb83a76 100644
--- a/configure.ac
+++ b/configure.ac
@@ -202,7 +202,7 @@ AS_IF([test "x$libtool_fixup" = "xyes"],
 	    [
 	    libtool_m4="$srcdir/m4/libtool.m4"
 	    libtool_flag_pattern=".*link_all_deplibs\s*,\s*\$1\s*)"
-	    AC_MSG_CHECKING([for occurence(s) of link_all_deplibs = no in $libtool_m4])
+	    AC_MSG_CHECKING([for occurrence(s) of link_all_deplibs = no in $libtool_m4])
 	    libtool_flag_pattern_count=$($GREP -c "$libtool_flag_pattern\s*=\s*no" $libtool_m4)
 	    AS_IF([test $libtool_flag_pattern_count -ne 0],
 	    [
diff --git a/doc/kernel-CodingStyle.txt b/doc/kernel-CodingStyle.txt
index c58b236b..61ffdac5 100644
--- a/doc/kernel-CodingStyle.txt
+++ b/doc/kernel-CodingStyle.txt
@@ -701,7 +701,7 @@ that can go into these 5 milliseconds.
 
 A reasonable rule of thumb is to not put inline at functions that have more
 than 3 lines of code in them. An exception to this rule are the cases where
-a parameter is known to be a compiletime constant, and as a result of this
+a parameter is known to be a compile time constant, and as a result of this
 constantness you *know* the compiler will be able to optimize most of your
 function away at compile time. For a good example of this later case, see
 the kmalloc() inline function.
diff --git a/doc/live-reading-protocol.txt b/doc/live-reading-protocol.txt
index 251f27c2..726568d0 100644
--- a/doc/live-reading-protocol.txt
+++ b/doc/live-reading-protocol.txt
@@ -14,7 +14,7 @@ time.
 
 This feature is implemented starting at lttng-tools 2.4
 
-* General informations
+* General information
 All the data structures required to implement this protocole are provided in
 the lttng-viewer-abi.h header. All integer are encoded in big endian during the
 transfer.
diff --git a/doc/python-howto.txt b/doc/python-howto.txt
index 5f7fcfba..f34f7084 100644
--- a/doc/python-howto.txt
+++ b/doc/python-howto.txt
@@ -10,7 +10,7 @@ If you wish the Python bindings, you can configure with the
   $ ./configure --enable-python-bindings
 
 The Python module is automatically generated using SWIG, therefore the
-swig2.0 package on Debian/Ubuntu is requied.
+swig2.0 package on Debian/Ubuntu is required.
 
 Once installed, the Python module can be used by importing it in Python.
 In the Python interpreter:
diff --git a/doc/quickstart.txt b/doc/quickstart.txt
index 9bcb8460..930758c9 100644
--- a/doc/quickstart.txt
+++ b/doc/quickstart.txt
@@ -162,7 +162,7 @@ rights, only applications of that user will be traced.
 
 So, after instrumenting you applications with LTTng-ust 2.0
 (https://lttng.org/lttng2.0), upon startup, it will automatically register to
-the session daemon. If there is none running, it will simply wait on a seperate
+the session daemon. If there is none running, it will simply wait on a separate
 thread for a session daemon to appear and then register.
 
 Start your instrumented application at any time but at least before starting
diff --git a/extras/bindings/swig/python/lttng.i.in b/extras/bindings/swig/python/lttng.i.in
index 684482e1..33d72e3f 100644
--- a/extras/bindings/swig/python/lttng.i.in
+++ b/extras/bindings/swig/python/lttng.i.in
@@ -26,7 +26,7 @@ multiple concurrent processes and threads. Tracing across multiple systems is al
 %{
 #if PY_MAJOR_VERSION >= 3
 // The PyInt and PyLong types were unified as of Python 3
-// This makes the typemap code useable with both Python 2 and 3.
+// This makes the typemap code usable with both Python 2 and 3.
 #define PyInt_AsSsize_t PyLong_AsSsize_t
 #endif
 
diff --git a/extras/checkpatch.pl b/extras/checkpatch.pl
index 14e16fae..217aa0df 100755
--- a/extras/checkpatch.pl
+++ b/extras/checkpatch.pl
@@ -557,7 +557,7 @@ sub sanitise_line {
 	for ($off = 1; $off < length($line); $off++) {
 		$c = substr($line, $off, 1);
 
-		# Comments we are wacking completly including the begin
+		# Comments we are wacking completely including the begin
 		# and end, all to $;.
 		if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
 			$sanitise_quote = '*/';
@@ -2092,7 +2092,7 @@ sub process {
 			substr($s, 0, length($c), '');
 
 			# Make sure we remove the line prefixes as we have
-			# none on the first line, and are going to readd them
+			# none on the first line, and are going to read them
 			# where necessary.
 			$s =~ s/\n./\n/gs;
 
@@ -2698,7 +2698,7 @@ sub process {
 ## 		    $line !~ /^.\s*$Type\s+$Ident(?:\s*=[^,{]*)?\s*,\s*$Type\s*$Ident.*/) {
 ##
 ## 			# Remove any bracketed sections to ensure we do not
-## 			# falsly report the parameters of functions.
+## 			# falsely report the parameters of functions.
 ## 			my $ln = $line;
 ## 			while ($ln =~ s/\([^\(\)]*\)//g) {
 ## 			}
@@ -2975,7 +2975,7 @@ sub process {
 			{
 			}
 
-			# Flatten any obvious string concatentation.
+			# Flatten any obvious string concatenation.
 			while ($dstat =~ s/("X*")\s*$Ident/$1/ ||
 			       $dstat =~ s/$Ident\s*("X*")/$1/)
 			{
diff --git a/include/Makefile.am b/include/Makefile.am
index 957a01d2..5dd3f9ca 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -29,17 +29,17 @@
 ##
 ## Fetch the EXTRA_VERSION_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\t" and
+## with "-" and join all lines by replacing "\n" with literal string c-style "\n\t" and
 ## output it to "version.i.tmp".
 ##
 ## Repeat the same logic for the "version/extra_patches" directory.
 ## Data fetched from "version/extra_patches" must be sanitized and
 ## formatted.
 ## The data is fetched using "ls" with an ignore pattern for the README file.
 ## 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\t".
+## by replacing "\n" with literal string c-style "\n\t".
 ##
 ## If we don't have a "version.i" or we have both files (version.i, version.i.tmp)
 ## and they are different, copy "version.i.tmp" over "version.i".
diff --git a/include/lttng/condition/buffer-usage.h b/include/lttng/condition/buffer-usage.h
index 0bcf4c7a..2531c69a 100644
--- a/include/lttng/condition/buffer-usage.h
+++ b/include/lttng/condition/buffer-usage.h
@@ -25,9 +25,9 @@ extern "C" {
  * usage statistics. The period at which these conditions are evaluated is
  * governed by the channels' monitor timer.
  *
- * Note that the use of these conditons does not imply any hysteresis-loop
+ * Note that the use of these conditions does not imply any hysteresis-loop
  * mechanism. For instance, an upper-bound buffer usage condition set to 75%
- * will fire everytime the buffer usage goes from a value < 75% to a value that
+ * will fire every time the buffer usage goes from a value < 75% to a value that
  * is >= 75%. The evaluation result does not depend on any lower-bound condition
  * being reached before the condition is evaluated to true again.
  *
@@ -101,7 +101,7 @@ lttng_condition_buffer_usage_get_threshold_ratio(
  * previously set threshold.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_buffer_usage_set_threshold_ratio(
@@ -131,7 +131,7 @@ lttng_condition_buffer_usage_get_threshold(
  * will override any previously set threshold.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_buffer_usage_set_threshold(
@@ -161,7 +161,7 @@ lttng_condition_buffer_usage_get_session_name(
  * The passed session name parameter will be copied to the condition.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_buffer_usage_set_session_name(
@@ -191,7 +191,7 @@ lttng_condition_buffer_usage_get_channel_name(
  * The passed channel name parameter will be copied to the condition.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_buffer_usage_set_channel_name(
@@ -215,7 +215,7 @@ lttng_condition_buffer_usage_get_domain_type(
  * Set the domain type property of a buffer usage condition.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_buffer_usage_set_domain_type(
diff --git a/include/lttng/condition/session-rotation.h b/include/lttng/condition/session-rotation.h
index ca2e7577..9595f77c 100644
--- a/include/lttng/condition/session-rotation.h
+++ b/include/lttng/condition/session-rotation.h
@@ -79,7 +79,7 @@ lttng_condition_session_rotation_get_session_name(
  * The passed session name parameter will be copied to the condition.
  *
  * Returns LTTNG_CONDITION_STATUS_OK on success, LTTNG_CONDITION_STATUS_INVALID
- * if invalid paramenters are passed.
+ * if invalid parameters are passed.
  */
 extern enum lttng_condition_status
 lttng_condition_session_rotation_set_session_name(
diff --git a/include/lttng/lttng.h b/include/lttng/lttng.h
index bc900e7f..ad1fc28a 100644
--- a/include/lttng/lttng.h
+++ b/include/lttng/lttng.h
@@ -115,7 +115,7 @@ extern int lttng_start_tracing(const char *session_name);
  * Stop tracing for *all* domain(s) in the session.
  *
  * This call will wait for data availability for each domain of the session so
- * this can take an abritrary amount of time. However, when returning you have
+ * this can take an arbitrary amount of time. However, when returning you have
  * the guarantee that the data is ready to be read and analyze. Use the
  * _no_wait call below to avoid this behavior.
  *
diff --git a/include/lttng/session.h b/include/lttng/session.h
index f13f8391..b761a545 100644
--- a/include/lttng/session.h
+++ b/include/lttng/session.h
@@ -57,7 +57,7 @@ struct lttng_session {
 	 * for both bitnesses.
 	 *
 	 * This was added since not all compilers appear to align unions in the
-	 * same way. Some (e.g. MSVC) do not seem to impose an alignement
+	 * same way. Some (e.g. MSVC) do not seem to impose an alignment
 	 * constraint while others (e.g. gcc, clang, icc) seem to align it to
 	 * ensure 'ptr' is naturally aligned.
 	 */
diff --git a/include/lttng/tracker.h b/include/lttng/tracker.h
index fa91abab..1ffb10f5 100644
--- a/include/lttng/tracker.h
+++ b/include/lttng/tracker.h
@@ -112,7 +112,7 @@ struct lttng_process_attr_values;
  * Returns LTTNG_OK and a process attribute tracker handle on success,
  * or an lttng_error_code on error.
  *
- * The tracker's ownership is transfered to the caller. Use
+ * The tracker's ownership is transferred to the caller. Use
  * lttng_process_attr_tracker_handle_destroy() to dispose of it.
  */
 extern enum lttng_error_code lttng_session_get_tracker_handle(
diff --git a/include/lttng/trigger/trigger-internal.h b/include/lttng/trigger/trigger-internal.h
index 3b760e16..87b5253e 100644
--- a/include/lttng/trigger/trigger-internal.h
+++ b/include/lttng/trigger/trigger-internal.h
@@ -133,7 +133,7 @@ struct lttng_triggers *lttng_triggers_create(void);
  * This differs from the public `lttng_triggers_get_at_index` in that
  * the returned pointer to a mutable trigger.
  *
- * The ownership of the trigger set element is NOT transfered.
+ * The ownership of the trigger set element is NOT transferred.
  * The returned object can NOT be freed via lttng_trigger_destroy.
  */
 LTTNG_HIDDEN
diff --git a/include/lttng/userspace-probe.h b/include/lttng/userspace-probe.h
index 5a6fa51a..b95545d8 100644
--- a/include/lttng/userspace-probe.h
+++ b/include/lttng/userspace-probe.h
@@ -55,7 +55,7 @@ lttng_userspace_probe_location_lookup_method_tracepoint_sdt_create(void);
 
 /*
  * Contains all the information needed to compute the instrumentation point in
- * the binary. It is used in conjonction with a lookup method.
+ * the binary. It is used in conjunction with a lookup method.
  */
 struct lttng_userspace_probe_location;
 
diff --git a/src/bin/lttng-consumerd/health-consumerd.c b/src/bin/lttng-consumerd/health-consumerd.c
index ffa0f3d0..5dc9c842 100644
--- a/src/bin/lttng-consumerd/health-consumerd.c
+++ b/src/bin/lttng-consumerd/health-consumerd.c
@@ -236,7 +236,7 @@ void *thread_manage_health(void *data)
 	while (1) {
 		DBG("Health check ready");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 restart:
 		ret = lttng_poll_wait(&events, -1);
 		if (ret < 0) {
diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c
index 3ffb9b75..48ca49b3 100644
--- a/src/bin/lttng-relayd/health-relayd.c
+++ b/src/bin/lttng-relayd/health-relayd.c
@@ -363,7 +363,7 @@ void *thread_manage_health(void *data)
 
 		DBG("Health check ready");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 restart:
 		ret = lttng_poll_wait(&events, -1);
 		if (ret < 0) {
diff --git a/src/bin/lttng-relayd/index.c b/src/bin/lttng-relayd/index.c
index ff27d958..87b15c56 100644
--- a/src/bin/lttng-relayd/index.c
+++ b/src/bin/lttng-relayd/index.c
@@ -239,7 +239,7 @@ void relay_index_put(struct relay_index *index)
 			index->stream->stream_handle, index->index_n.key,
 			(int) index->ref.refcount);
 	/*
-	 * Ensure existance of index->lock for index unlock.
+	 * Ensure existence of index->lock for index unlock.
 	 */
 	rcu_read_lock();
 	/*
@@ -377,7 +377,7 @@ end:
 
 /*
  * Switch the index file of all pending indexes for a stream and update the
- * data offset by substracting the last safe position.
+ * data offset by subtracting the last safe position.
  * Stream lock must be held.
  */
 int relay_index_switch_all_files(struct relay_stream *stream)
diff --git a/src/bin/lttng-relayd/live.c b/src/bin/lttng-relayd/live.c
index 5877467c..25d5a5dc 100644
--- a/src/bin/lttng-relayd/live.c
+++ b/src/bin/lttng-relayd/live.c
@@ -2027,7 +2027,7 @@ int viewer_get_metadata(struct relay_connection *conn)
 
 	/*
 	 * Either this is the first time the metadata file is read, or a
-	 * rotation of the corresponding relay stream has occured.
+	 * rotation of the corresponding relay stream has occurred.
 	 */
 	if (!vstream->stream_file.handle && len > 0) {
 		struct fs_handle *fs_handle;
diff --git a/src/bin/lttng-relayd/lttng-viewer-abi.h b/src/bin/lttng-relayd/lttng-viewer-abi.h
index f5f61b4d..5ec4e303 100644
--- a/src/bin/lttng-relayd/lttng-viewer-abi.h
+++ b/src/bin/lttng-relayd/lttng-viewer-abi.h
@@ -50,7 +50,7 @@ enum lttng_viewer_next_index_return_code {
 	LTTNG_VIEWER_INDEX_OK		= 1, /* Index is available. */
 	LTTNG_VIEWER_INDEX_RETRY	= 2, /* Index not yet available. */
 	LTTNG_VIEWER_INDEX_HUP		= 3, /* Index closed (trace destroyed). */
-	LTTNG_VIEWER_INDEX_ERR		= 4, /* Unknow error. */
+	LTTNG_VIEWER_INDEX_ERR		= 4, /* Unknown error. */
 	LTTNG_VIEWER_INDEX_INACTIVE	= 5, /* Inactive stream beacon. */
 	LTTNG_VIEWER_INDEX_EOF		= 6, /* End of index file. */
 };
diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c
index 9f094f54..fb1b74d7 100644
--- a/src/bin/lttng-relayd/main.c
+++ b/src/bin/lttng-relayd/main.c
@@ -154,7 +154,7 @@ static uint64_t last_relay_stream_id;
  */
 static struct relay_conn_queue relay_conn_queue;
 
-/* Cap of file desriptors to be in simultaneous use by the relay daemon. */
+/* Cap of file descriptors to be in simultaneous use by the relay daemon. */
 static unsigned int lttng_opt_fd_pool_size = -1;
 
 /* Global relay stream hash table. */
@@ -3112,7 +3112,7 @@ static int relay_trace_chunk_exists(const struct lttcomm_relayd_hdr *recv_hdr,
 	bool chunk_exists;
 
 	if (!session || !conn->version_check_done) {
-		ERR("Trying to check for the existance of a trace chunk before version check");
+		ERR("Trying to check for the existence of a trace chunk before version check");
 		ret = -1;
 		goto end_no_reply;
 	}
diff --git a/src/bin/lttng-relayd/session.c b/src/bin/lttng-relayd/session.c
index e1065549..1fbdfaad 100644
--- a/src/bin/lttng-relayd/session.c
+++ b/src/bin/lttng-relayd/session.c
@@ -245,7 +245,7 @@ end:
  * Check if a name is safe to use in a path.
  *
  * A name that is deemed "path-safe":
- *   - Does not contains a path separator (/ or \, platform dependant),
+ *   - Does not contains a path separator (/ or \, platform dependent),
  *   - Does not start with a '.' (hidden file/folder),
  *   - Is not empty.
  */
diff --git a/src/bin/lttng-relayd/sessiond-trace-chunks.c b/src/bin/lttng-relayd/sessiond-trace-chunks.c
index 10652347..c5514788 100644
--- a/src/bin/lttng-relayd/sessiond-trace-chunks.c
+++ b/src/bin/lttng-relayd/sessiond-trace-chunks.c
@@ -22,7 +22,7 @@
 /*
  * Lifetime of trace chunks within the relay daemon.
  *
- * Trace chunks are shared accross connections initiated from a given
+ * Trace chunks are shared across connections initiated from a given
  * session daemon. When a session is created by a consumer daemon, the
  * UUID of its associated session daemon is transmitted (in the case of
  * 2.11+ consumer daemons).
@@ -65,7 +65,7 @@ struct trace_chunk_registry_ht_element {
 	struct urcu_ref ref;
 	/* Node into the sessiond_trace_chunk_registry's hash table. */
 	struct cds_lfht_node ht_node;
-	/* Used for defered call_rcu reclaim. */
+	/* Used for deferred call_rcu reclaim. */
 	struct rcu_head rcu_node;
 	struct lttng_trace_chunk_registry *trace_chunk_registry;
 	struct sessiond_trace_chunk_registry *sessiond_trace_chunk_registry;
@@ -126,7 +126,7 @@ void trace_chunk_registry_ht_element_release(struct urcu_ref *ref)
 	}
 
 	lttng_trace_chunk_registry_destroy(element->trace_chunk_registry);
-	/* Defered reclaim of the object */
+	/* Deferred reclaim of the object */
 	call_rcu(&element->rcu_node, trace_chunk_registry_ht_element_free);
 }
 
diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c
index 6759bed1..18c31cb3 100644
--- a/src/bin/lttng-relayd/stream.c
+++ b/src/bin/lttng-relayd/stream.c
@@ -198,7 +198,7 @@ static int rotate_truncate_stream(struct relay_stream *stream)
 	struct lttng_trace_chunk *previous_chunk = NULL;
 
 	if (!LTTNG_OPTIONAL_GET(stream->ongoing_rotation).next_trace_chunk) {
-		ERR("Protocol error encoutered in %s(): stream rotation "
+		ERR("Protocol error encountered in %s(): stream rotation "
 			"sequence number is before the current sequence number "
 			"and the next trace chunk is unset. Honoring this "
 			"rotation command would result in data loss",
@@ -888,7 +888,7 @@ void try_stream_close(struct relay_stream *stream)
 
 	pthread_mutex_lock(&stream->lock);
 	/*
-	 * Can be called concurently by connection close and reception of last
+	 * Can be called concurrently by connection close and reception of last
 	 * pending data.
 	 */
 	if (stream->closed) {
diff --git a/src/bin/lttng-relayd/viewer-session.c b/src/bin/lttng-relayd/viewer-session.c
index ed5a94ea..2b6e2c59 100644
--- a/src/bin/lttng-relayd/viewer-session.c
+++ b/src/bin/lttng-relayd/viewer-session.c
@@ -97,7 +97,7 @@ enum lttng_viewer_attach_return_code viewer_session_attach(
 
 	if (viewer_attach_status == LTTNG_VIEWER_ATTACH_OK) {
 		pthread_mutex_lock(&vsession->session_list_lock);
-		/* Ownership is transfered to the list. */
+		/* Ownership is transferred to the list. */
 		cds_list_add_rcu(&session->viewer_session_node,
 				&vsession->session_list);
 		pthread_mutex_unlock(&vsession->session_list_lock);
diff --git a/src/bin/lttng-sessiond/action-executor.c b/src/bin/lttng-sessiond/action-executor.c
index 2a0aab45..a1ecf169 100644
--- a/src/bin/lttng-sessiond/action-executor.c
+++ b/src/bin/lttng-sessiond/action-executor.c
@@ -173,7 +173,7 @@ static int client_handle_transmission_status(
 				client->id);
 		break;
 	default:
-		ERR("Fatal error encoutered while sending notification to client, client_id = %" PRIu64,
+		ERR("Fatal error encountered while sending notification to client, client_id = %" PRIu64,
 				client->id);
 		ret = -1;
 		goto end;
diff --git a/src/bin/lttng-sessiond/agent-thread.c b/src/bin/lttng-sessiond/agent-thread.c
index 06ef377a..ff39ba22 100644
--- a/src/bin/lttng-sessiond/agent-thread.c
+++ b/src/bin/lttng-sessiond/agent-thread.c
@@ -405,7 +405,7 @@ static void *thread_agent_management(void *data)
 	while (1) {
 		DBG3("[agent-thread] Manage agent polling");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 restart:
 		ret = lttng_poll_wait(&events, -1);
 		DBG3("[agent-thread] Manage agent return from poll on %d fds",
diff --git a/src/bin/lttng-sessiond/client.c b/src/bin/lttng-sessiond/client.c
index 3ccc29ef..04998fe2 100644
--- a/src/bin/lttng-sessiond/client.c
+++ b/src/bin/lttng-sessiond/client.c
@@ -2401,7 +2401,7 @@ static void *thread_manage_clients(void *data)
 
 		DBG("Accepting client command ...");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 	restart:
 		health_poll_entry();
 		ret = lttng_poll_wait(&events, -1);
@@ -2491,7 +2491,7 @@ static void *thread_manage_clients(void *data)
 		/*
 		 * This function dispatch the work to the kernel or userspace tracer
 		 * libs and fill the lttcomm_lttng_msg data structure of all the needed
-		 * informations for the client. The command context struct contains
+		 * information for the client. The command context struct contains
 		 * everything this function may needs.
 		 */
 		ret = process_client_msg(&cmd_ctx, &sock, &sock_error);
diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c
index 2ae0ba68..3b74ada1 100644
--- a/src/bin/lttng-sessiond/cmd.c
+++ b/src/bin/lttng-sessiond/cmd.c
@@ -1736,7 +1736,7 @@ int cmd_disable_event(struct ltt_session *session,
 
 		/*
 		 * If a non-default channel has been created in the
-		 * session, explicitely require that -c chan_name needs
+		 * session, explicitly require that -c chan_name needs
 		 * to be provided.
 		 */
 		if (ksess->has_non_default_channel && channel_name[0] == '\0') {
@@ -1929,7 +1929,7 @@ int cmd_add_context(struct ltt_session *session, enum lttng_domain_type domain,
 		 * Validate channel name.
 		 * If no channel name is given and the domain is JUL or LOG4J,
 		 * set it to the appropriate domain-specific channel name. If
-		 * a name is provided but does not match the expexted channel
+		 * a name is provided but does not match the expected channel
 		 * name, return an error.
 		 */
 		if (domain == LTTNG_DOMAIN_JUL && *channel_name &&
@@ -2097,7 +2097,7 @@ static int _cmd_enable_event(struct ltt_session *session,
 
 		/*
 		 * If a non-default channel has been created in the
-		 * session, explicitely require that -c chan_name needs
+		 * session, explicitly require that -c chan_name needs
 		 * to be provided.
 		 */
 		if (session->kernel_session->has_non_default_channel
@@ -2132,7 +2132,7 @@ static int _cmd_enable_event(struct ltt_session *session,
 		kchan = trace_kernel_get_channel_by_name(channel_name,
 				session->kernel_session);
 		if (kchan == NULL) {
-			/* This sould not happen... */
+			/* This should not happen... */
 			ret = LTTNG_ERR_FATAL;
 			goto error;
 		}
@@ -2235,7 +2235,7 @@ static int _cmd_enable_event(struct ltt_session *session,
 
 		/*
 		 * If a non-default channel has been created in the
-		 * session, explicitely require that -c chan_name needs
+		 * session, explicitly require that -c chan_name needs
 		 * to be provided.
 		 */
 		if (usess->has_non_default_channel && channel_name[0] == '\0') {
@@ -5429,7 +5429,7 @@ int cmd_rotation_set_schedule(struct ltt_session *session,
 	 * doesn't exist.
 	 */
 	if (!activate && *parameter_value != new_value) {
-		DBG("Failing ROTATION_SET_SCHEDULE (deactivate) command as an inexistant schedule was provided");
+		DBG("Failing ROTATION_SET_SCHEDULE (deactivate) command as an inexistent schedule was provided");
 		ret = LTTNG_ERR_ROTATION_SCHEDULE_NOT_SET;
 		goto end;
 	}
diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c
index 115a46e2..2e66954d 100644
--- a/src/bin/lttng-sessiond/consumer.c
+++ b/src/bin/lttng-sessiond/consumer.c
@@ -664,7 +664,7 @@ int consumer_copy_sockets(struct consumer_output *dst,
 
 		copy_sock->registered = socket->registered;
 		/*
-		 * This is valid because this lock is shared accross all consumer
+		 * This is valid because this lock is shared across all consumer
 		 * object being the global lock of the consumer data structure of the
 		 * session daemon.
 		 */
@@ -1412,7 +1412,7 @@ end:
 }
 
 /*
- * Send a setup metdata command to consumer using the given channel key.
+ * Send a setup metadata command to consumer using the given channel key.
  *
  * Return 0 on success else a negative value.
  */
diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c
index d93478ed..57f01f7d 100644
--- a/src/bin/lttng-sessiond/kernel.c
+++ b/src/bin/lttng-sessiond/kernel.c
@@ -1941,7 +1941,7 @@ enum lttng_error_code kernel_clear_session(struct ltt_session *session)
 			/*
 			 * Nothing to do for the metadata.
 			 * This is a snapshot session.
-			 * The metadata is genererated on the fly.
+			 * The metadata is generated on the fly.
 			 */
 			continue;
 		}
diff --git a/src/bin/lttng-sessiond/lttng-syscall.c b/src/bin/lttng-sessiond/lttng-syscall.c
index 16eead62..4833e5d7 100644
--- a/src/bin/lttng-sessiond/lttng-syscall.c
+++ b/src/bin/lttng-sessiond/lttng-syscall.c
@@ -145,7 +145,7 @@ error_ioctl:
  * syscall hashtable used to track duplicate between 32 and 64 bit arch.
  *
  * This empty the hash table and destroys it after. After this, the pointer is
- * unsuable. RCU read side lock MUST be acquired before calling this.
+ * unusable. RCU read side lock MUST be acquired before calling this.
  */
 static void destroy_syscall_ht(struct lttng_ht *ht)
 {
diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c
index 4bdac521..ed57cca2 100644
--- a/src/bin/lttng-sessiond/main.c
+++ b/src/bin/lttng-sessiond/main.c
@@ -902,7 +902,7 @@ static void sessiond_cleanup_lock_file(void)
 	int ret;
 
 	/*
-	 * Cleanup lock file by deleting it and finaly closing it which will
+	 * Cleanup lock file by deleting it and finally closing it which will
 	 * release the file system lock.
 	 */
 	if (lockfile_fd >= 0) {
diff --git a/src/bin/lttng-sessiond/manage-apps.c b/src/bin/lttng-sessiond/manage-apps.c
index b5b77d89..7cdf036d 100644
--- a/src/bin/lttng-sessiond/manage-apps.c
+++ b/src/bin/lttng-sessiond/manage-apps.c
@@ -87,7 +87,7 @@ static void *thread_application_management(void *data)
 	while (1) {
 		DBG("Apps thread polling");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 	restart:
 		health_poll_entry();
 		ret = lttng_poll_wait(&events, -1);
diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c
index cf9c12b3..17b9ee16 100644
--- a/src/bin/lttng-sessiond/modprobe.c
+++ b/src/bin/lttng-sessiond/modprobe.c
@@ -113,7 +113,7 @@ static void log_kmod(void *data, int priority, const char *file, int line,
  * @brief Setup the libkmod context.
  *
  * Create the context, add a custom logging function and preload the
- * ressources for faster operation.
+ * resources for faster operation.
  *
  * @returns	\c 0 on success
  * 		\c < 0 on error
@@ -145,7 +145,7 @@ error:
  *
  * @param modules	List of modules to load
  * @param entries	Number of modules in the list
- * @param required	Are the modules required or optionnal
+ * @param required	Are the modules required or optional
  *
  * If the modules are required, we will return with error after the
  * first failed module load, otherwise we continue loading.
@@ -207,7 +207,7 @@ error:
  * @brief Recursively unload modules.
  *
  * This function implements the same modules unloading behavior as
- * 'modprobe -r' or rmmod, it will recursevily go trought the \p module
+ * 'modprobe -r' or rmmod, it will recursevily go through the \p module
  * dependencies and unload modules with a refcount of 0.
  *
  * @param mod		The module to unload
@@ -248,7 +248,7 @@ static int rmmod_recurse(struct kmod_module *mod) {
  *
  * @param modules	List of modules to unload
  * @param entries	Number of modules in the list
- * @param required	Are the modules required or optionnal
+ * @param required	Are the modules required or optional
  *
  */
 static void modprobe_remove_lttng(const struct kern_modules_param *modules,
diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c
index 5956d53c..e7842bac 100644
--- a/src/bin/lttng-sessiond/notification-thread-events.c
+++ b/src/bin/lttng-sessiond/notification-thread-events.c
@@ -197,18 +197,18 @@ void free_lttng_trigger_ht_element_rcu(struct rcu_head *node);
 static
 int match_client_socket(struct cds_lfht_node *node, const void *key)
 {
-	/* This double-cast is intended to supress pointer-to-cast warning. */
+	/* This double-cast is intended to suppress pointer-to-cast warning. */
 	const int socket = (int) (intptr_t) key;
 	const struct notification_client *client = caa_container_of(node,
 			struct notification_client, client_socket_ht_node);
 
 	return client->socket == socket;
 }
 
 static
 int match_client_id(struct cds_lfht_node *node, const void *key)
 {
-	/* This double-cast is intended to supress pointer-to-cast warning. */
+	/* This double-cast is intended to suppress pointer-to-cast warning. */
 	const notification_client_id id = *((notification_client_id *) key);
 	const struct notification_client *client = caa_container_of(
 			node, struct notification_client, client_id_ht_node);
@@ -516,7 +516,7 @@ unsigned long hash_client_id(notification_client_id id)
  * the notification system evaluate a trigger's condition when a given
  * object's state is updated.
  *
- * For instance, a condition bound to a channel will be evaluated everytime
+ * For instance, a condition bound to a channel will be evaluated every time
  * the channel's state is changed by a channel monitoring sample.
  */
 static
@@ -1483,7 +1483,7 @@ end:
  * 'session_name'.
  *
  * No ownership of 'session_name' is assumed by the session trigger list.
- * It is the caller's responsability to ensure the session name is alive
+ * It is the caller's responsibility to ensure the session name is alive
  * for as long as this list is.
  */
 static
@@ -1595,7 +1595,7 @@ end:
  * all triggers that apply to the session named 'session_name'.
  *
  * No ownership of 'session_name' is assumed by the session trigger list.
- * It is the caller's responsability to ensure the session name is alive
+ * It is the caller's responsibility to ensure the session name is alive
  * for as long as this list is.
  */
 static
@@ -2407,7 +2407,7 @@ int handle_notification_thread_command_register_trigger(
 	}
 
 	/*
-	 * Ownership of the trigger and of its wrapper was transfered to
+	 * Ownership of the trigger and of its wrapper was transferred to
 	 * the triggers_ht.
 	 */
 	trigger_ht_element = NULL;
@@ -4073,7 +4073,7 @@ int handle_notification_thread_channel_sample(
 
 	rcu_read_lock();
 
-	/* Retrieve the channel's informations */
+	/* Retrieve the channel's information */
 	cds_lfht_lookup(state->channels_ht,
 			hash_channel_key(&latest_sample.key),
 			match_channel_info,
diff --git a/src/bin/lttng-sessiond/notify-apps.c b/src/bin/lttng-sessiond/notify-apps.c
index 9a63141d..4cf109ed 100644
--- a/src/bin/lttng-sessiond/notify-apps.c
+++ b/src/bin/lttng-sessiond/notify-apps.c
@@ -73,7 +73,7 @@ static void *thread_application_notification(void *data)
 	while (1) {
 		DBG3("[ust-thread] Manage notify polling");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 restart:
 		health_poll_entry();
 		ret = lttng_poll_wait(&events, -1);
diff --git a/src/bin/lttng-sessiond/register.c b/src/bin/lttng-sessiond/register.c
index 6381c117..930ea754 100644
--- a/src/bin/lttng-sessiond/register.c
+++ b/src/bin/lttng-sessiond/register.c
@@ -204,7 +204,7 @@ static void *thread_application_registration(void *data)
 	while (1) {
 		DBG("Accepting application registration");
 
-		/* Inifinite blocking call, waiting for transmission */
+		/* Infinite blocking call, waiting for transmission */
 	restart:
 		health_poll_entry();
 		ret = lttng_poll_wait(&events, -1);
diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c
index 6eda624e..a8e6b217 100644
--- a/src/bin/lttng-sessiond/session.c
+++ b/src/bin/lttng-sessiond/session.c
@@ -45,7 +45,7 @@ struct ltt_session_clear_notifier_element {
  * NOTES:
  *
  * No ltt_session.lock is taken here because those data structure are widely
- * spread across the lttng-tools code base so before caling functions below
+ * spread across the lttng-tools code base so before calling functions below
  * that can read/write a session, the caller MUST acquire the session lock
  * using session_lock() and session_unlock().
  */
diff --git a/src/bin/lttng-sessiond/session.h b/src/bin/lttng-sessiond/session.h
index 9b790c1f..6da7517a 100644
--- a/src/bin/lttng-sessiond/session.h
+++ b/src/bin/lttng-sessiond/session.h
@@ -202,7 +202,7 @@ void session_unlock(struct ltt_session *session);
 
 /*
  * The session list lock covers more ground than its name implies. While
- * it does protect against concurent mutations of the session list, it is
+ * it does protect against concurrent mutations of the session list, it is
  * also used as a multi-session lock when synchronizing newly-registered
  * 'user space tracer' and 'agent' applications.
  *
diff --git a/src/bin/lttng-sessiond/timer.c b/src/bin/lttng-sessiond/timer.c
index 56fc4635..a6f04878 100644
--- a/src/bin/lttng-sessiond/timer.c
+++ b/src/bin/lttng-sessiond/timer.c
@@ -218,7 +218,7 @@ int timer_session_rotation_pending_check_start(struct ltt_session *session,
 	 *
 	 * Instead, we re-arm it if needed after the rotation_pending check as
 	 * returned. Also, this timer is usually only needed once, so there is
-	 * no need to go through the whole signal teardown scheme everytime.
+	 * no need to go through the whole signal teardown scheme every time.
 	 */
 	ret = timer_start(&session->rotation_pending_check_timer,
 			session, interval_us,
diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c
index f4e4bedb..9d1c9a61 100644
--- a/src/bin/lttng-sessiond/ust-app.c
+++ b/src/bin/lttng-sessiond/ust-app.c
@@ -545,7 +545,7 @@ int ust_app_release_object(struct ust_app *app, struct lttng_ust_object_data *da
 /*
  * Push metadata to consumer socket.
  *
- * RCU read-side lock must be held to guarantee existance of socket.
+ * RCU read-side lock must be held to guarantee existence of socket.
  * Must be called with the ust app session lock held.
  * Must be called with the registry lock held.
  *
@@ -684,7 +684,7 @@ error_push:
  * socket to send the metadata is retrieved from consumer, if sock
  * is not NULL we use it to send the metadata.
  * RCU read-side lock must be held while calling this function,
- * therefore ensuring existance of registry. It also ensures existance
+ * therefore ensuring existence of registry. It also ensures existence
  * of socket throughout this function.
  *
  * Return 0 on success else a negative error.
@@ -2489,8 +2489,8 @@ static int do_consumer_create_channel(struct ltt_ust_session *usess,
 	health_code_update();
 
 	/*
-	 * Now get the channel from the consumer. This call wil populate the stream
-	 * list of that channel and set the ust objects.
+	 * Now get the channel from the consumer. This call will populate the
+	 * stream list of that channel and set the ust objects.
 	 */
 	if (usess->consumer->enabled) {
 		ret = ust_consumer_get_channel(socket, ua_chan);
@@ -5705,7 +5705,7 @@ int ust_app_recv_notify(int sock)
 		}
 
 		/*
-		 * The fields ownership are transfered to this function call meaning
+		 * The fields ownership are transferred to this function call meaning
 		 * that if needed it will be freed. After this, it's invalid to access
 		 * fields or clean it up.
 		 */
diff --git a/src/bin/lttng-sessiond/ust-app.h b/src/bin/lttng-sessiond/ust-app.h
index 164bc2c6..8ef87fa0 100644
--- a/src/bin/lttng-sessiond/ust-app.h
+++ b/src/bin/lttng-sessiond/ust-app.h
@@ -29,7 +29,7 @@ extern int ust_consumerd64_fd, ust_consumerd32_fd;
 
 /*
  * Object used to close the notify socket in a call_rcu(). Since the
- * application might not be found, we need an independant object containing the
+ * application might not be found, we need an independent object containing the
  * notify socket fd.
  */
 struct ust_app_notify_sock_obj {
@@ -213,7 +213,7 @@ struct ust_app_session {
 	uint32_t bits_per_long;
 	/* For delayed reclaim */
 	struct rcu_head rcu_head;
-	/* If the channel's streams have to be outputed or not. */
+	/* If the channel's streams have to be outputted or not. */
 	unsigned int output_traces;
 	unsigned int live_timer_interval;	/* usec */
 
@@ -288,7 +288,7 @@ struct ust_app {
 	 */
 	int agent_app_sock;
 	/*
-	 * Time at which the app is registred.
+	 * Time at which the app is registered.
 	 * Used for path creation
 	 */
 	time_t registration_time;
diff --git a/src/bin/lttng-sessiond/ust-registry.c b/src/bin/lttng-sessiond/ust-registry.c
index 2e33b957..80db386f 100644
--- a/src/bin/lttng-sessiond/ust-registry.c
+++ b/src/bin/lttng-sessiond/ust-registry.c
@@ -324,7 +324,7 @@ error:
 
 /*
  * Free event data structure. This does NOT delete it from any hash table. It's
- * safe to pass a NULL pointer. This shoudl be called inside a call RCU if the
+ * safe to pass a NULL pointer. This should be called inside a call RCU if the
  * event is previously deleted from a rcu hash table.
  */
 static void destroy_event(struct ust_registry_event *event)
@@ -720,7 +720,7 @@ void destroy_channel_rcu(struct rcu_head *head)
 /*
  * Destroy every element of the registry and free the memory. This does NOT
  * free the registry pointer since it might not have been allocated before so
- * it's the caller responsability.
+ * it's the caller responsibility.
  */
 static void destroy_channel(struct ust_registry_channel *chan, bool notif)
 {
diff --git a/src/bin/lttng-sessiond/ust-registry.h b/src/bin/lttng-sessiond/ust-registry.h
index 12614c5d..233d7f79 100644
--- a/src/bin/lttng-sessiond/ust-registry.h
+++ b/src/bin/lttng-sessiond/ust-registry.h
@@ -64,7 +64,7 @@ struct ust_registry_session {
 	/*
 	 * Those fields are only used when a session is created with
 	 * the --shm-path option. In this case, the metadata is output
-	 * twice: once to the consumer, as ususal, but a second time
+	 * twice: once to the consumer, as usual, but a second time
 	 * also in the shm path directly. This is done so that a copy
 	 * of the metadata that is as fresh as possible is available
 	 * on the event of a crash.
diff --git a/src/bin/lttng/commands/add_context.c b/src/bin/lttng/commands/add_context.c
index b33eb1d1..f04e3f92 100644
--- a/src/bin/lttng/commands/add_context.c
+++ b/src/bin/lttng/commands/add_context.c
@@ -424,7 +424,7 @@ const struct ctx_opts {
 		CONTEXT_PERF_THREAD_COUNTER, 0),
 
 	/*
-	 * Perf per-CPU counters, backward compatibilty for names.
+	 * Perf per-CPU counters, backward compatibility for names.
 	 * Hidden from help listing.
 	 */
 	PERF_HW("perf:cpu-cycles", CPU_CYCLES,
diff --git a/src/bin/lttng/commands/disable_channels.c b/src/bin/lttng/commands/disable_channels.c
index 344be237..36a1ce6c 100644
--- a/src/bin/lttng/commands/disable_channels.c
+++ b/src/bin/lttng/commands/disable_channels.c
@@ -148,7 +148,7 @@ static int disable_channels(char *session_name)
 			 * We assume that if an error occurred the channel is still active.
 			 * This might not be the case but is a good assumption.
 			 * The client should look at the stderr stream
-			 * for more informations.
+			 * for more information.
 			 */
 			enabled = 1;
 			success = 0;
diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c
index f41dc9ec..bdb4bd72 100644
--- a/src/bin/lttng/commands/enable_events.c
+++ b/src/bin/lttng/commands/enable_events.c
@@ -23,7 +23,7 @@
 #include <common/utils.h>
 
 #include <lttng/constant.h>
-/* Mi dependancy */
+/* Mi dependency */
 #include <common/mi-lttng.h>
 
 #include "../command.h"
@@ -552,7 +552,7 @@ end_destroy_lookup_method:
 end_string:
 	strutils_free_null_terminated_array_of_strings(tokens);
 	/*
-	 * Freeing both char * here makes the error handling simplier. free()
+	 * Freeing both char * here makes the error handling simpler. free()
 	 * performs not action if the pointer is NULL.
 	 */
 	free(real_target_path);
diff --git a/src/bin/lttng/commands/list.c b/src/bin/lttng/commands/list.c
index e96fe35d..ea0488b7 100644
--- a/src/bin/lttng/commands/list.c
+++ b/src/bin/lttng/commands/list.c
@@ -1646,7 +1646,7 @@ static int list_process_attr_tracker(enum lttng_process_attr process_attr)
 		ret = CMD_SUCCESS;
 		goto end;
 	default:
-		ERR("Unknown tracking policy encoutered while listing the %s process attribute tracker of session `%s`",
+		ERR("Unknown tracking policy encountered while listing the %s process attribute tracker of session `%s`",
 				lttng_process_attr_to_string(process_attr),
 				handle->session_name);
 		ret = CMD_FATAL;
@@ -2012,7 +2012,7 @@ end:
 /*
  * Machine interface
  * Find the session with session_name as name
- * and print his informations.
+ * and print his information.
  */
 static int mi_list_session(const char *session_name,
 		struct lttng_session *sessions, int count)
@@ -2027,7 +2027,7 @@ static int mi_list_session(const char *session_name,
 
 	for (i = 0; i < count; i++) {
 		if (strncmp(sessions[i].name, session_name, NAME_MAX) == 0) {
-			/* We need to leave it open to append other informations
+			/* We need to leave it open to append other information
 			 * like domain, channel, events etc.*/
 			session_found = 1;
 			ret = mi_lttng_session(writer, &sessions[i], 1);
@@ -2411,7 +2411,7 @@ int cmd_list(int argc, const char **argv)
 				goto end;
 			}
 		}
-		/* MI: the ouptut of list_sessions is an unclosed session element */
+		/* MI: the output of list_sessions is an unclosed session element */
 		ret = list_sessions(session_name);
 		if (ret) {
 			goto end;
diff --git a/src/bin/lttng/commands/load.c b/src/bin/lttng/commands/load.c
index 002ec495..f770eb9b 100644
--- a/src/bin/lttng/commands/load.c
+++ b/src/bin/lttng/commands/load.c
@@ -239,7 +239,7 @@ int cmd_load(int argc, const char **argv)
 
 	/*
 	 * Set the input url
-	 * lttng_load_session_attr_set_input_url only suppports absolute path.
+	 * lttng_load_session_attr_set_input_url only supports absolute path.
 	 * Use realpath to resolve any relative path.
 	 * */
 	if (opt_input_path) {
diff --git a/src/common/align.h b/src/common/align.h
index 81b92f86..ea384e83 100644
--- a/src/common/align.h
+++ b/src/common/align.h
@@ -56,7 +56,7 @@
  * @align_drift:  object offset from an "alignment"-aligned address.
  * @alignment:    natural object alignment. Must be non-zero, power of 2.
  *
- * Returns the offset that must be substracted to align towards lower addresses.
+ * Returns the offset that must be subtracted to align towards lower addresses.
  */
 #define offset_align_floor(align_drift, alignment)			       \
 	({								       \
diff --git a/src/common/compat/poll.c b/src/common/compat/poll.c
index c5dd494b..bfcd9843 100644
--- a/src/common/compat/poll.c
+++ b/src/common/compat/poll.c
@@ -456,7 +456,7 @@ int compat_poll_create(struct lttng_poll_event *events, int size)
 		size = poll_max_size;
 	}
 
-	/* Reset everything before begining the allocation. */
+	/* Reset everything before beginning the allocation. */
 	memset(events, 0, sizeof(struct lttng_poll_event));
 
 	current = &events->current;
diff --git a/src/common/compat/poll.h b/src/common/compat/poll.h
index 7dce4e6e..49d66414 100644
--- a/src/common/compat/poll.h
+++ b/src/common/compat/poll.h
@@ -111,7 +111,7 @@ static inline int compat_glibc_epoll_create(int size __attribute__((unused)),
 static inline int compat_glibc_epoll_create(int size, int flags)
 {
 	/*
-	 * epoll_create1 was added in glibc 2.9, but unfortunatly reverting to
+	 * epoll_create1 was added in glibc 2.9, but unfortunately reverting to
 	 * epoll_create(..) also means that we lose the possibility to
 	 * directly set the EPOLL_CLOEXEC, so try and do it anyway but through
 	 * fcntl(..).
@@ -189,7 +189,7 @@ static inline void lttng_poll_init(struct lttng_poll_event *events)
 
 /*
  * Clean the events structure of a lttng_poll_event. It's the caller
- * responsability to free the lttng_poll_event memory.
+ * responsibility to free the lttng_poll_event memory.
  */
 static inline void lttng_poll_clean(struct lttng_poll_event *events)
 {
@@ -368,7 +368,7 @@ static inline void lttng_poll_init(struct lttng_poll_event *events)
 
 /*
  * Clean the events structure of a lttng_poll_event. It's the caller
- * responsability to free the lttng_poll_event memory.
+ * responsibility to free the lttng_poll_event memory.
  */
 static inline void lttng_poll_clean(struct lttng_poll_event *events)
 {
diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c
index 37c5ce38..3c1aae77 100644
--- a/src/common/config/session-config.c
+++ b/src/common/config/session-config.c
@@ -848,7 +848,7 @@ int parse_bool(xmlChar *str, int *val)
 	} else if (!strcmp((const char *) str, config_xml_false)) {
 		*val = 0;
 	} else {
-		WARN("Invalid boolean value encoutered (%s).",
+		WARN("Invalid boolean value encountered (%s).",
 			(const char *) str);
 		ret = -1;
 	}
diff --git a/src/common/consumer/consumer-stream.c b/src/common/consumer/consumer-stream.c
index 1e3bfe78..2ed9bdd2 100644
--- a/src/common/consumer/consumer-stream.c
+++ b/src/common/consumer/consumer-stream.c
@@ -222,7 +222,7 @@ static int consumer_stream_send_index(
 	struct ctf_packet_index index = {};
 
 	/*
-	 * This is called after consuming the sub-buffer; substract the
+	 * This is called after consuming the sub-buffer; subtract the
 	 * effect this sub-buffer from the offset.
 	 */
 	if (stream->net_seq_idx == (uint64_t) -1ULL) {
@@ -536,7 +536,7 @@ enum consumer_stream_open_packet_status consumer_stream_open_packet(
 
 	/*
 	 * Determine if the flush had an effect by comparing the produced
-	 * positons before and after the flush.
+	 * positions before and after the flush.
 	 */
 	status = produced_pos_before != produced_pos_after ?
 			CONSUMER_STREAM_OPEN_PACKET_STATUS_OPENED :
diff --git a/src/common/consumer/consumer-stream.h b/src/common/consumer/consumer-stream.h
index c9af63cd..e1d515e4 100644
--- a/src/common/consumer/consumer-stream.h
+++ b/src/common/consumer/consumer-stream.h
@@ -110,7 +110,7 @@ int consumer_stream_rotate_output_files(struct lttng_consumer_stream *stream);
 
 /*
  * Indicates whether or not a stream is logically deleted. A deleted stream
- * should no longer be used; its existence is only garanteed by the RCU lock
+ * should no longer be used; its existence is only guaranteed by the RCU lock
  * held by the caller.
  *
  * This function must be called with the RCU read side lock held.
diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c
index 23853e5c..b4e6e5cd 100644
--- a/src/common/consumer/consumer.c
+++ b/src/common/consumer/consumer.c
@@ -521,7 +521,7 @@ void lttng_consumer_cleanup_relayd(struct consumer_relayd_sock_pair *relayd)
  * Flag a relayd socket pair for destruction. Destroy it if the refcount
  * reaches zero.
  *
- * RCU read side lock MUST be aquired before calling this function.
+ * RCU read side lock MUST be acquired before calling this function.
  */
 void consumer_flag_relayd_for_destroy(struct consumer_relayd_sock_pair *relayd)
 {
@@ -537,7 +537,7 @@ void consumer_flag_relayd_for_destroy(struct consumer_relayd_sock_pair *relayd)
 }
 
 /*
- * Completly destroy stream from every visiable data structure and the given
+ * Completely destroy stream from every visible data structure and the given
  * hash table if one.
  *
  * One this call returns, the stream object is not longer usable nor visible.
@@ -855,7 +855,7 @@ static int write_relayd_stream_header(struct lttng_consumer_stream *stream,
 		 * Note that net_seq_num below is assigned with the *current* value of
 		 * next_net_seq_num and only after that the next_net_seq_num will be
 		 * increment. This is why when issuing a command on the relayd using
-		 * this next value, 1 should always be substracted in order to compare
+		 * this next value, 1 should always be subtracted in order to compare
 		 * the last seen sequence number on the relayd side to the last sent.
 		 */
 		data_hdr.net_seq_num = htobe64(stream->next_net_seq_num);
@@ -878,7 +878,7 @@ error:
 }
 
 /*
- * Trigger a dump of the metadata content. Following/during the succesful
+ * Trigger a dump of the metadata content. Following/during the successful
  * completion of this call, the metadata poll thread will start receiving
  * metadata packets to consume.
  *
@@ -1360,7 +1360,7 @@ void lttng_consumer_sync_trace_file(struct lttng_consumer_stream *stream,
 }
 
 /*
- * Initialise the necessary environnement :
+ * Initialise the necessary environment :
  * - create a new context
  * - create the poll_pipe
  * - create the should_quit pipe (for signal handler)
@@ -1558,7 +1558,7 @@ static int write_relayd_metadata_id(int fd,
 		DBG3("Consumer failed to write relayd metadata id (errno: %d)", errno);
 		/*
 		 * Set ret to a negative value because if ret != sizeof(hdr), we don't
-		 * handle writting the missing part so report that as an error and
+		 * handle writing the missing part so report that as an error and
 		 * don't lie to the caller.
 		 */
 		ret = -1;
@@ -1900,7 +1900,7 @@ ssize_t lttng_consumer_on_read_subbuffer_splice(
 		} else if (ret_splice > len) {
 			/*
 			 * We don't expect this code path to be executed but you never know
-			 * so this is an extra protection agains a buggy splice().
+			 * so this is an extra protection against a buggy splice().
 			 */
 			ret = errno;
 			written += ret_splice;
@@ -4188,13 +4188,13 @@ int lttng_consumer_rotate_channel(struct lttng_consumer_channel *channel,
 			 * rotation point as possible. In the event where a
 			 * stream remains inactive after the rotation point,
 			 * this ensures that the new trace chunk has a
-			 * beginning timestamp set at the begining of the
+			 * beginning timestamp set at the beginning of the
 			 * trace chunk instead of only creating an empty
 			 * packet when the trace chunk is stopped.
 			 *
 			 * This indicates to the viewers that the stream
 			 * was being recorded, but more importantly it
-			 * allows viewers to determine a useable trace
+			 * allows viewers to determine a usable trace
 			 * intersection.
 			 *
 			 * This presents a problem in the case where the
@@ -4215,7 +4215,7 @@ int lttng_consumer_rotate_channel(struct lttng_consumer_channel *channel,
 			 *     produced	in this stream's buffers.
 			 *
 			 * The resulting trace chunk will have a single packet
-			 * temporaly at the end of the trace chunk for this
+			 * temporarily at the end of the trace chunk for this
 			 * stream making the stream intersection more narrow
 			 * than it should be.
 			 *
diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h
index b45f88b7..0530bcda 100644
--- a/src/common/consumer/consumer.h
+++ b/src/common/consumer/consumer.h
@@ -677,7 +677,7 @@ struct consumer_relayd_sock_pair {
 
 	/*
 	 * We don't need a mutex at this point since we only splice or write single
-	 * large chunk of data with a header appended at the begining. Moreover,
+	 * large chunk of data with a header appended at the beginning. Moreover,
 	 * this socket is for now only used in a single thread.
 	 */
 	struct lttcomm_relayd_sock data_sock;
diff --git a/src/common/consumer/metadata-bucket.c b/src/common/consumer/metadata-bucket.c
index 1ee5022e..b7295888 100644
--- a/src/common/consumer/metadata-bucket.c
+++ b/src/common/consumer/metadata-bucket.c
@@ -83,7 +83,7 @@ enum metadata_bucket_status metadata_bucket_fill(struct metadata_bucket *bucket,
 			buffer->info.metadata.coherent.value ? "true" : "false");
 	/*
 	 * If no metadata was accumulated and this buffer should be
-	 * flushed, don't copy it unecessarily; just flush it directly.
+	 * flushed, don't copy it unnecessarily; just flush it directly.
 	 */
 	if (!should_flush || bucket->buffer_count != 0) {
 		/*
diff --git a/src/common/defaults.h b/src/common/defaults.h
index 1e4b7fac..18726b48 100644
--- a/src/common/defaults.h
+++ b/src/common/defaults.h
@@ -91,7 +91,7 @@
  * when querying the user's group. Other calls also probably make use of
  * short-lived FDs.
  *
- * The theoritical maximal reserve corresponds to the number of threads as,
+ * The theoretical maximal reserve corresponds to the number of threads as,
  * in the worst case, they could all be making such calls.
  *
  * This value must be less than DEFAULT_RELAYD_MIN_FD_POOL_SIZE.
@@ -172,7 +172,7 @@
 #define DEFAULT_POLL_SIZE 65535
 
 /*
- * Format is %s_%d respectively channel name and CPU number. Eigth bytes
+ * Format is %s_%d respectively channel name and CPU number. Eight bytes
  * are added here to add space for the CPU number. I guess 2^8 CPUs is more
  * than enough. We might end up with quantum computing in a cell phone when
  * reaching this limit.
diff --git a/src/common/dynamic-array.h b/src/common/dynamic-array.h
index 0b488a39..e7f5fb4f 100644
--- a/src/common/dynamic-array.h
+++ b/src/common/dynamic-array.h
@@ -68,7 +68,7 @@ void *lttng_dynamic_array_get_element(const struct lttng_dynamic_array *array,
  * sensititve information, it must be cleared manually _before_ changing the
  * size.
  *
- * NOTE: It is striclty _invalid_ to access memory after _size_, regardless
+ * NOTE: It is strictly _invalid_ to access memory after _size_, regardless
  *       of prior calls to set_capacity().
  */
 LTTNG_HIDDEN
diff --git a/src/common/dynamic-buffer.h b/src/common/dynamic-buffer.h
index 3435c846..c3a7b7ad 100644
--- a/src/common/dynamic-buffer.h
+++ b/src/common/dynamic-buffer.h
@@ -72,7 +72,7 @@ int lttng_dynamic_buffer_append_view(struct lttng_dynamic_buffer *buffer,
  * sensititve information, it must be cleared manually _before_ changing the
  * size.
  *
- * NOTE: It is striclty _invalid_ to access memory after _size_, regardless
+ * NOTE: It is strictly _invalid_ to access memory after _size_, regardless
  *       of prior calls to set_capacity().
  */
 LTTNG_HIDDEN
diff --git a/src/common/fd-tracker/fd-tracker.c b/src/common/fd-tracker/fd-tracker.c
index 772bf04b..be650d1a 100644
--- a/src/common/fd-tracker/fd-tracker.c
+++ b/src/common/fd-tracker/fd-tracker.c
@@ -345,7 +345,7 @@ static int open_from_properties(const struct lttng_directory_handle *dir_handle,
 	 * Some flags should not be used beyond the initial open() of a
 	 * restorable file system handle. O_CREAT and O_TRUNC must
 	 * be cleared since it would be unexpected to re-use them
-	 * when the handle is retored:
+	 * when the handle is restored:
 	 *  - O_CREAT should not be needed as the file has been created
 	 *    on the initial call to open(),
 	 *  - O_TRUNC would destroy the file's contents by truncating it
diff --git a/src/common/fd-tracker/fd-tracker.h b/src/common/fd-tracker/fd-tracker.h
index 348ac596..26dbb6e1 100644
--- a/src/common/fd-tracker/fd-tracker.h
+++ b/src/common/fd-tracker/fd-tracker.h
@@ -75,7 +75,7 @@ int fd_tracker_destroy(struct fd_tracker *tracker);
  *
  * Note that a suspendable file descriptor can be closed by the fd tracker at
  * anytime when it is not in use. This means that the user should not rely on it
- * being safe to unlink the file. Moreover, concurent modifications to the file
+ * being safe to unlink the file. Moreover, concurrent modifications to the file
  * (e.g. truncation) may react differently than if the file descriptor was kept
  * open.
  */
diff --git a/src/common/fd-tracker/inode.h b/src/common/fd-tracker/inode.h
index 67e63eca..725db9da 100644
--- a/src/common/fd-tracker/inode.h
+++ b/src/common/fd-tracker/inode.h
@@ -19,7 +19,7 @@ struct lttng_directory_handle;
 /*
  * The unlinked file pool is protected by the fd-tracker's lock.
  *
- * NOTE: the unlinked file pool can use a single file desriptor when unlinked
+ * NOTE: the unlinked file pool can use a single file descriptor when unlinked
  * files are present in the pool. This file descriptor is not accounted-for
  * by the fd-tracker. Users of the fd-tracker should account for this extra
  * file descriptor.
diff --git a/src/common/hashtable/utils.c b/src/common/hashtable/utils.c
index 2d027bae..be6382f7 100644
--- a/src/common/hashtable/utils.c
+++ b/src/common/hashtable/utils.c
@@ -297,7 +297,7 @@ static uint32_t __attribute__((unused)) hashlittle(const void *key,
 		 * rest of the string.  Every machine with memory protection I've seen
 		 * does it on word boundaries, so is OK with this.  But VALGRIND will
 		 * still catch it and complain.  The masking trick does make the hash
-		 * noticably faster for short strings (like English words).
+		 * noticeably faster for short strings (like English words).
 		 */
 #ifndef VALGRIND
 
diff --git a/src/common/health/health.c b/src/common/health/health.c
index 62e21141..bf0bcbcb 100644
--- a/src/common/health/health.c
+++ b/src/common/health/health.c
@@ -47,7 +47,7 @@ struct health_app {
 DEFINE_URCU_TLS(struct health_state, health_state);
 
 /*
- * Initialize health check subsytem.
+ * Initialize health check subsystem.
  */
 static
 void health_init(struct health_app *ha)
diff --git a/src/common/kernel-consumer/kernel-consumer.c b/src/common/kernel-consumer/kernel-consumer.c
index b9d84371..4531bd33 100644
--- a/src/common/kernel-consumer/kernel-consumer.c
+++ b/src/common/kernel-consumer/kernel-consumer.c
@@ -1227,7 +1227,7 @@ error_rotate_channel:
 		if (is_local_trace) {
 			int chunk_dirfd;
 
-			/* Acnowledge the reception of the command. */
+			/* Acknowledge the reception of the command. */
 			ret = consumer_send_status_msg(sock,
 					LTTCOMM_CONSUMERD_SUCCESS);
 			if (ret < 0) {
diff --git a/src/common/kernel-ctl/kernel-ioctl.h b/src/common/kernel-ctl/kernel-ioctl.h
index ed6555e1..70969e92 100644
--- a/src/common/kernel-ctl/kernel-ioctl.h
+++ b/src/common/kernel-ctl/kernel-ioctl.h
@@ -107,7 +107,7 @@
 #define LTTNG_KERNEL_OLD_DISABLE                _IO(0xF6, 0x81)
 
 
-/* Current ABI (with suport for 32/64 bits compat) */
+/* Current ABI (with support for 32/64 bits compat) */
 /* LTTng file descriptor ioctl */
 #define LTTNG_KERNEL_SESSION			_IO(0xF6, 0x45)
 #define LTTNG_KERNEL_TRACER_VERSION		\
diff --git a/src/common/lttng-elf.c b/src/common/lttng-elf.c
index d6cef2fe..4c43a9be 100644
--- a/src/common/lttng-elf.c
+++ b/src/common/lttng-elf.c
@@ -309,7 +309,7 @@ error:
  * Retrieve the nth (where n is the `index` argument) shdr (section
  * header) from the given elf instance.
  *
- * 0 is returned on succes, -1 on failure.
+ * 0 is returned on success, -1 on failure.
  */
 static
 int lttng_elf_get_section_hdr(struct lttng_elf *elf,
@@ -744,7 +744,7 @@ error:
 }
 
 /*
- * Compute the offset of a symbol from the begining of the ELF binary.
+ * Compute the offset of a symbol from the beginning of the ELF binary.
  *
  * On success, returns 0 offset parameter is set to the computed value
  * On failure, returns -1.
@@ -899,7 +899,7 @@ end:
 }
 
 /*
- * Compute the offsets of SDT probes from the begining of the ELF binary.
+ * Compute the offsets of SDT probes from the beginning of the ELF binary.
  *
  * On success, returns 0 and the nb_probes parameter is set to the number of
  * offsets found and the offsets parameter points to an array of offsets where
@@ -996,7 +996,7 @@ int lttng_elf_get_sdt_probe_offsets(int fd, const char *provider_name,
 
 		/*
 		 * Move ptr to the end of the name string (we don't need it)
-		 * and go to the next 4 byte alignement.
+		 * and go to the next 4 byte alignment.
 		 */
 		if (note_type != NOTE_STAPSDT_TYPE ||
 			strncmp(curr_data_ptr, NOTE_STAPSDT_NAME, name_size) != 0) {
diff --git a/src/common/mi-lttng.c b/src/common/mi-lttng.c
index bdd6dcea..168e4c90 100644
--- a/src/common/mi-lttng.c
+++ b/src/common/mi-lttng.c
@@ -516,7 +516,7 @@ const char *mi_lttng_buffertype_string(enum lttng_buffer_type value)
 	case LTTNG_BUFFER_GLOBAL:
 		return config_buffer_type_global;
 	default:
-		/* Should not have an unknow buffer type */
+		/* Should not have an unknown buffer type */
 		assert(0);
 		return NULL;
 	}
@@ -535,7 +535,7 @@ const char *mi_lttng_rotation_state_string(enum lttng_rotation_state value)
 	case LTTNG_ROTATION_STATE_ERROR:
 		return mi_lttng_rotation_state_str_error;
 	default:
-		/* Should not have an unknow rotation state. */
+		/* Should not have an unknown rotation state. */
 		assert(0);
 		return NULL;
 	}
@@ -549,7 +549,7 @@ const char *mi_lttng_trace_archive_location_relay_protocol_type_string(
 	case LTTNG_TRACE_ARCHIVE_LOCATION_RELAY_PROTOCOL_TYPE_TCP:
 		return mi_lttng_rotation_location_relay_protocol_str_tcp;
 	default:
-		/* Should not have an unknow relay protocol. */
+		/* Should not have an unknown relay protocol. */
 		assert(0);
 		return NULL;
 	}
diff --git a/src/common/mi-lttng.h b/src/common/mi-lttng.h
index 9c985f6b..8806c1db 100644
--- a/src/common/mi-lttng.h
+++ b/src/common/mi-lttng.h
@@ -822,7 +822,7 @@ int mi_lttng_snapshot_del_output(struct mi_writer *writer, int id,
  * n_ptr:
  *
  * output: iterator over a lttng_snapshot_output_list which contain
- * the snapshot output informations.
+ * the snapshot output information.
  *
  * Returns zero if the element's value could be written.
  * Negative values indicate an error.
@@ -884,7 +884,7 @@ int mi_lttng_rotation_schedule(struct mi_writer *writer,
  *
  * schedule: An lttng rotation schedule descriptor object.
  *
- * success: Whether the sub-command suceeded.
+ * success: Whether the sub-command succeeded.
  *
  * Returns zero if the element's value could be written.
  * Negative values indicate an error.
@@ -908,7 +908,7 @@ int mi_lttng_rotation_schedule_result(struct mi_writer *writer,
  *
  * location: A location descriptor object.
  *
- * success: Whether the sub-command suceeded.
+ * success: Whether the sub-command succeeded.
  *
  * Returns zero if the element's value could be written.
  * Negative values indicate an error.
diff --git a/src/common/optional.h b/src/common/optional.h
index ca7d1f04..981ebd29 100644
--- a/src/common/optional.h
+++ b/src/common/optional.h
@@ -69,7 +69,7 @@
 
 /*
  * This macro is available as a 'convenience' to allow sites that assume
- * an optional value is set to assert() that it is set when fecthing the
+ * an optional value is set to assert() that it is set when fetching the
  * underlying value's address.
  */
 #define LTTNG_OPTIONAL_GET_PTR(optional)			\
diff --git a/src/common/runas.c b/src/common/runas.c
index 1147296a..3abae282 100644
--- a/src/common/runas.c
+++ b/src/common/runas.c
@@ -594,7 +594,7 @@ int _extract_sdt_probe_offsets(struct run_as_data *data,
 
 	ret_value->_error = false;
 
-	/* On success, this call allocates the offsets paramater. */
+	/* On success, this call allocates the offsets parameter. */
 	ret = lttng_elf_get_sdt_probe_offsets(
 			data->u.extract_sdt_probe_offsets.fd,
 			data->u.extract_sdt_probe_offsets.provider_name,
diff --git a/src/common/sessiond-comm/relayd.h b/src/common/sessiond-comm/relayd.h
index fe7d2936..428058a5 100644
--- a/src/common/sessiond-comm/relayd.h
+++ b/src/common/sessiond-comm/relayd.h
@@ -184,7 +184,7 @@ static inline size_t lttcomm_relayd_index_len(uint32_t major, uint32_t minor)
 }
 
 /*
- * Create session in 2.4 adds additionnal parameters for live reading.
+ * Create session in 2.4 adds additional parameters for live reading.
  */
 struct lttcomm_relayd_create_session_2_4 {
 	char session_name[RELAYD_COMM_LTTNG_NAME_MAX_2_4];
diff --git a/src/common/spawn-viewer.c b/src/common/spawn-viewer.c
index 78188650..8d6ce864 100644
--- a/src/common/spawn-viewer.c
+++ b/src/common/spawn-viewer.c
@@ -61,7 +61,7 @@ static const struct viewer *parse_viewer_option(const char *opt_viewer)
 
 /*
  * Alloc an array of string pointer from a simple string having all options
- * seperated by spaces. Also adds the trace path to the arguments.
+ * separated by spaces. Also adds the trace path to the arguments.
  *
  * The returning pointer is ready to be passed to execvp().
  */
@@ -246,7 +246,7 @@ retry_viewer:
 	}
 
 	/*
-	 * This function should never return if successfull because `execvp(3)`
+	 * This function should never return if successful because `execvp(3)`
 	 * onle returns if an error has occurred.
 	 */
 	assert(ret != 0);
diff --git a/src/common/trace-chunk.c b/src/common/trace-chunk.c
index 8a8481b5..736916f3 100644
--- a/src/common/trace-chunk.c
+++ b/src/common/trace-chunk.c
@@ -31,7 +31,7 @@
 #include <urcu/ref.h>
 
 /*
- * Two ISO 8601-compatible timestamps, separated by a hypen, followed an
+ * Two ISO 8601-compatible timestamps, separated by a hyphen, followed an
  * index, i.e. <start-iso-8601>-<end-iso-8601>-<id-uint64_t>.
  */
 #define GENERATED_CHUNK_NAME_LEN (2 * sizeof("YYYYmmddTHHMMSS+HHMM") + MAX_INT_DEC_LEN(uint64_t))
diff --git a/src/common/trace-chunk.h b/src/common/trace-chunk.h
index 4ab0b11c..1901ff2a 100644
--- a/src/common/trace-chunk.h
+++ b/src/common/trace-chunk.h
@@ -18,7 +18,7 @@
 
 /*
  * A trace chunk is a group of directories and files forming a (or a set of)
- * complete and independant trace(s). For instance, a trace archive chunk,
+ * complete and independent trace(s). For instance, a trace archive chunk,
  * a snapshot, or a regular LTTng trace are all instances of a trace archive.
  *
  * A trace chunk is always contained within a session output directory.
diff --git a/src/common/unix.c b/src/common/unix.c
index 0e6c329c..42d012d0 100644
--- a/src/common/unix.c
+++ b/src/common/unix.c
@@ -909,7 +909,7 @@ retry:
 		}
 		if (cmsg->cmsg_type == SCM_RIGHTS) {
 			/*
-			 * We found the controle message for file descriptors,
+			 * We found the control message for file descriptors,
 			 * now copy the fds to the fds ptr and return success.
 			 */
 			if (cmsg->cmsg_len != CMSG_LEN(sizeof_fds)) {
diff --git a/src/common/uri.c b/src/common/uri.c
index 0638aebd..b1519535 100644
--- a/src/common/uri.c
+++ b/src/common/uri.c
@@ -360,7 +360,7 @@ ssize_t uri_parse(const char *str_uri, struct lttng_uri **uris)
 		purl = addr_e + 1;
 
 		/*
-		 * The closing bracket must be followed by a seperator or NULL char.
+		 * The closing bracket must be followed by a separator or NULL char.
 		 */
 		if (strchr(seps, *purl) == NULL) {
 			ERR("Unknown symbol after IPv6 address: %s", purl);
diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c
index 9ec5763c..2d8d957b 100644
--- a/src/common/ust-consumer/ust-consumer.c
+++ b/src/common/ust-consumer/ust-consumer.c
@@ -367,7 +367,7 @@ int create_posix_shm(void)
 		return -1;
 	}
 	/*
-	 * Allocate shm, and immediately unlink its shm oject, keeping
+	 * Allocate shm, and immediately unlink its shm object, keeping
 	 * only the file descriptor as a reference to the object.
 	 * We specifically do _not_ use the / at the beginning of the
 	 * pathname so that some OS implementations can keep it local to
@@ -566,7 +566,7 @@ static int send_channel_to_sessiond_and_relayd(int sock,
 			if (ret < 0) {
 				/*
 				 * Flag that the relayd was the problem here probably due to a
-				 * communicaton error on the socket.
+				 * communication error on the socket.
 				 */
 				if (relayd_error) {
 					*relayd_error = 1;
@@ -658,7 +658,7 @@ static int ask_channel(struct lttng_consumer_local_data *ctx,
 	 * once every stream of a channel is received making this value useless
 	 * because we they will be added to the poll thread before the application
 	 * receives them. This ensures that a stream can not hang up during
-	 * initilization of a channel.
+	 * initialization of a channel.
 	 */
 	channel->nb_init_stream_left = 0;
 
@@ -1060,7 +1060,7 @@ static int snapshot_metadata(struct lttng_consumer_channel *metadata_channel,
 
 error_stream:
 	/*
-	 * Clean up the stream completly because the next snapshot will use a new
+	 * Clean up the stream completely because the next snapshot will use a new
 	 * metadata stream.
 	 */
 	consumer_stream_destroy(metadata_stream, NULL);
@@ -1642,7 +1642,7 @@ int lttng_ustconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
 				goto end_get_channel_nosignal;
 			}
 			/*
-			 * The communicaton was broken hence there is a bad state between
+			 * The communication was broken hence there is a bad state between
 			 * the consumer and sessiond so stop everything.
 			 */
 			goto error_get_channel_fatal;
@@ -2097,7 +2097,7 @@ end_rotate_channel_nosignal:
 		if (is_local_trace) {
 			int chunk_dirfd;
 
-			/* Acnowledge the reception of the command. */
+			/* Acknowledge the reception of the command. */
 			ret = consumer_send_status_msg(sock,
 					LTTCOMM_CONSUMERD_SUCCESS);
 			if (ret < 0) {
diff --git a/src/common/utils.c b/src/common/utils.c
index bd61fff3..4646fbeb 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -57,7 +57,7 @@
 /*
  * Return a partial realpath(3) of the path even if the full path does not
  * exist. For instance, with /tmp/test1/test2/test3, if test2/ does not exist
- * but the /tmp/test1 does, the real path for /tmp/test1 is concatened with
+ * but the /tmp/test1 does, the real path for /tmp/test1 is concatenated with
  * /test2/test3 then returned. In normal time, realpath(3) fails if the end
  * point directory does not exist.
  * In case resolved_path is NULL, the string returned was allocated in the
@@ -271,7 +271,7 @@ int expand_double_slashes_dot_and_dotdot(char *path)
 				/*
 				 * Find the previous path component by
 				 * using the memrchr function to find the
-				 * previous forward slash and substract that
+				 * previous forward slash and subtract that
 				 * len to the resulting path.
 				 */
 				prev_slash = lttng_memrchr(path, '/', expanded_path_len);
@@ -312,7 +312,7 @@ error:
  * Make a full resolution of the given path even if it doesn't exist.
  * This function uses the utils_partial_realpath function to resolve
  * symlinks and relatives paths at the start of the string, and
- * implements functionnalities to resolve the './' and '../' strings
+ * implements functionalities to resolve the './' and '../' strings
  * in the middle of a path. This function is only necessary because
  * realpath(3) does not accept to resolve unexistent paths.
  * The returned string was allocated in the function, it is thus of
diff --git a/src/lib/lttng-ctl/lttng-ctl-helper.h b/src/lib/lttng-ctl/lttng-ctl-helper.h
index d1c5aa86..116b4250 100644
--- a/src/lib/lttng-ctl/lttng-ctl-helper.h
+++ b/src/lib/lttng-ctl/lttng-ctl-helper.h
@@ -15,7 +15,7 @@
 
 /*
  * NOTE: Every symbol in this helper header MUST be set to hidden so not to
- * polute the library name space. Use LTTNG_HIDDEN macro before declaring the
+ * pollute the library name space. Use LTTNG_HIDDEN macro before declaring the
  * function in the C file.
  */
 
diff --git a/src/lib/lttng-ctl/lttng-ctl.c b/src/lib/lttng-ctl/lttng-ctl.c
index a295667f..0465df86 100644
--- a/src/lib/lttng-ctl/lttng-ctl.c
+++ b/src/lib/lttng-ctl/lttng-ctl.c
@@ -452,7 +452,7 @@ LTTNG_HIDDEN int connect_sessiond(void)
 		goto error;
 	}
 
-	/* Connect to the sesssion daemon. */
+	/* Connect to the session daemon. */
 	ret = lttcomm_connect_unix_sock(sessiond_sock_path);
 	if (ret < 0) {
 		goto error;
diff --git a/src/lib/lttng-ctl/rotate.c b/src/lib/lttng-ctl/rotate.c
index 2dbaa46a..6bc45441 100644
--- a/src/lib/lttng-ctl/rotate.c
+++ b/src/lib/lttng-ctl/rotate.c
@@ -245,7 +245,7 @@ end:
 
 /*
  * Update the automatic rotation parameters.
- * 'add' as true enables the provided schedule, false removes the shedule.
+ * 'add' as true enables the provided schedule, false removes the schedule.
  *
  * The external API makes it appear as though arbitrary schedules can
  * be added or removed at will. However, the session daemon is
diff --git a/src/lib/lttng-ctl/tracker.c b/src/lib/lttng-ctl/tracker.c
index 4f720ead..cdbe7673 100644
--- a/src/lib/lttng-ctl/tracker.c
+++ b/src/lib/lttng-ctl/tracker.c
@@ -68,7 +68,7 @@ enum lttng_error_code lttng_session_get_tracker_handle(const char *session_name,
 
 	/*
 	 * Use the `get_tracking_policy` command to validate the tracker's
-	 * existance.
+	 * existence.
 	 */
 	status = lttng_process_attr_tracker_handle_get_tracking_policy(
 			handle, &policy);
diff --git a/tests/perf/find_event.c b/tests/perf/find_event.c
index 38ac6c13..41e8f2a3 100644
--- a/tests/perf/find_event.c
+++ b/tests/perf/find_event.c
@@ -18,7 +18,7 @@ int main(int argc, char **argv)
 	if (argc != 2) {
 		fprintf(stderr, "Usage: %s <pmu counter to find>\n"
 				"ex: %s UNHALTED_REFERENCE_CYCLES\n"
-				"Returns the first occurence it finds with "
+				"Returns the first occurrence it finds with "
 				"return code 0.\n"
 				"If not found returns 1, on error returns -1\n",
 				argv[0], argv[0]);
diff --git a/tests/regression/kernel/test_callstack b/tests/regression/kernel/test_callstack
index c4a6200d..84bd7709 100755
--- a/tests/regression/kernel/test_callstack
+++ b/tests/regression/kernel/test_callstack
@@ -93,7 +93,7 @@ function test_kernel_callstack()
 	#	 omitted from the callstack itself, and
 	#
 	#	2. the code (of this commit) can trigger Tail Call Optimization
-	#	which mess up with the stacktrace by omiting the wrong address
+	#	which mess up with the stacktrace by omitting the wrong address
 	#	from the stacktrace.
 	# When this is fixed, we should add both save_stack_trace and
 	# lttng_callstack_get_size symbols back in the list of expected
diff --git a/tests/regression/kernel/test_select_poll_epoll b/tests/regression/kernel/test_select_poll_epoll
index 2aa4d6fe..87d5e914 100755
--- a/tests/regression/kernel/test_select_poll_epoll
+++ b/tests/regression/kernel/test_select_poll_epoll
@@ -20,7 +20,7 @@ fi
 
 DISABLE_VALIDATE=0
 # Babeltrace python bindings are required for the validation, but
-# it is not a mandatory dependancy of the project, so fail run the
+# it is not a mandatory dependency of the project, so fail run the
 # without the content validation, at least we test that we are not
 # crashing the kernel.
 $VALIDATE_SCRIPT --help >/dev/null 2>&1
diff --git a/tests/regression/kernel/test_userspace_probe b/tests/regression/kernel/test_userspace_probe
index 9886f1e1..273ff817 100755
--- a/tests/regression/kernel/test_userspace_probe
+++ b/tests/regression/kernel/test_userspace_probe
@@ -48,7 +48,7 @@ function test_userspace_probe_enable_file_noexist ()
 	SESSION_NAME="test_userspace_probe_enable_file_noexist"
 	ENABLE_EXPR="elf:/etc/file-not-exist:$ELF_SYMBOL"
 
-	diag "Userspace probe enable on non-existant file"
+	diag "Userspace probe enable on non-existent file"
 
 	create_lttng_session_ok $SESSION_NAME "$TRACE_PATH"
 
@@ -100,7 +100,7 @@ function test_userspace_probe_enable_elf_nonexistant_symbol ()
 	ELF_SYMBOL_NO_EXIST="function_doesnt_exist"
 	ENABLE_EXPR="elf:$ELF_TEST_BIN:$ELF_SYMBOL_NO_EXIST"
 
-	diag "Userspace probe enable with nonexistant ELF symbol"
+	diag "Userspace probe enable with nonexistent ELF symbol"
 
 	create_lttng_session_ok $SESSION_NAME "$TRACE_PATH"
 
@@ -597,7 +597,7 @@ function test_userspace_probe_enable_sdt_nonexistant_provider ()
 	PROBE="tp1"
 	ENABLE_EXPR="sdt:$SDT_TEST_BIN:$PROVIDER:$PROBE"
 
-	diag "Userspace probe SDT on tracepoint non existant provider"
+	diag "Userspace probe SDT on tracepoint non existent provider"
 
 	create_lttng_session_ok $SESSION_NAME "$TRACE_PATH"
 
@@ -616,7 +616,7 @@ function test_userspace_probe_enable_sdt_nonexistant_probe ()
 	PROBE="not_a_tracepoint"
 	ENABLE_EXPR="sdt:$SDT_TEST_BIN:$PROVIDER:$PROBE"
 
-	diag "Userspace probe SDT on non existant probe"
+	diag "Userspace probe SDT on non existent probe"
 
 	create_lttng_session_ok $SESSION_NAME "$TRACE_PATH"
 
@@ -635,7 +635,7 @@ function test_userspace_probe_enable_sdt_with_sema ()
 	PROBE="tp_with_semaphore"
 	ENABLE_EXPR="sdt:$SDT_TEST_BIN:$PROVIDER:$PROBE"
 
-	diag "Userspace probe SDT on non existant probe"
+	diag "Userspace probe SDT on non existent probe"
 
 	create_lttng_session_ok $SESSION_NAME "$TRACE_PATH"
 
diff --git a/tests/regression/kernel/validate_select_poll_epoll.py b/tests/regression/kernel/validate_select_poll_epoll.py
index 3a62a1f1..a90503f3 100755
--- a/tests/regression/kernel/validate_select_poll_epoll.py
+++ b/tests/regression/kernel/validate_select_poll_epoll.py
@@ -28,18 +28,18 @@ class TraceParser:
         self.trace = trace
         self.pid = pid
 
-        # This dictionnary holds the results of each testcases of a test.
+        # This dictionary holds the results of each testcases of a test.
         # Its layout is the following:
         #       self.expect={
         #                       'event_name_1': {'check_1': 0, 'check_2: 1},
         #                       'event_name_2': {'check_1': 1}
         #                   }
         # Each test classes checks the payload of different events. Each of
-        # those checks are stored in a event_name specific dictionnary in this
+        # those checks are stored in a event_name specific dictionary in this
         # data structure.
         self.expect = defaultdict(lambda : defaultdict(int))
 
-        # This dictionnary holds the value recorded in the trace that are
+        # This dictionary holds the value recorded in the trace that are
         # tested. Its content is use to print the values that caused a test to
         # fail.
         self.recorded_values = {}
@@ -69,7 +69,7 @@ class TraceParser:
                 if self.expect[event_name][val] == 0:
                     print("%s not validated" % val)
                     print("Values of the local variables of this test:")
-                    # using pprint for pretty printing the dictionnary
+                    # using pprint for pretty printing the dictionary
                     pprint.pprint(self.recorded_values[event_name])
                     ret = 1
 
diff --git a/tests/regression/tools/live/live_test.c b/tests/regression/tools/live/live_test.c
index 4c56deec..ff54ce8f 100644
--- a/tests/regression/tools/live/live_test.c
+++ b/tests/regression/tools/live/live_test.c
@@ -524,7 +524,7 @@ retry:
 		if (first_packet_stream_id < 0) {
 			/*
 			 * Initialize the first packet stream id. That is,
-			 * the first active stream encoutered.
+			 * the first active stream encountered.
 			 */
 			first_packet_offset = be64toh(rp.offset);
 			first_packet_len = be64toh(rp.packet_size) / CHAR_BIT;
diff --git a/tests/regression/tools/mi/test_mi b/tests/regression/tools/mi/test_mi
index af7ca765..265c21b8 100755
--- a/tests/regression/tools/mi/test_mi
+++ b/tests/regression/tools/mi/test_mi
@@ -211,7 +211,7 @@ function test_list_sessions ()
 
 	OUTPUT_FILE="list_sessions.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	for (( i = 0; i < 3; i++ )); do
 		create_lttng_session_ok ${session_name[$i]} $OUTPUT_DIR
@@ -334,7 +334,7 @@ function test_ust_lttng_event ()
 	ok $? "Mi test: Enable_event for ust domain xsd validation"
 	is_command_success $OUTPUT_DEST false
 
-	#Try to reenable an enabled event. Should fail
+	#Try to re-enable an enabled event. Should fail
 	enable_ust_lttng_event_fail $session_name ${event[0]} $channel_name
 	$XML_VALIDATE $OUTPUT_DEST
 	ok $? "Mi test: Fail enable_event for ust domain xsd validation"
@@ -394,7 +394,7 @@ function test_list_channel ()
 
 	OUTPUT_FILE="list_channel.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_ok $session_name $OUTPUT_DIR
 	enable_ust_lttng_channel_ok $session_name $channel_name
@@ -441,7 +441,7 @@ function test_list_domain ()
 
 	OUTPUT_FILE="list_domain.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_ok $session_name $OUTPUT_DIR
 	enable_ust_lttng_channel_ok $session_name $channel_name
@@ -489,7 +489,7 @@ function test_list_session ()
 
 	OUTPUT_FILE="list_session.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_ok $session_name $OUTPUT_DIR
 	enable_ust_lttng_channel_ok $session_name $channel_name
@@ -529,7 +529,7 @@ function test_list_ust_event ()
 
 	OUTPUT_FILE="list_ust_event.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
 
 	#Begin testing
@@ -578,7 +578,7 @@ function test_start_stop () {
 
 	OUTPUT_FILE="list_start_stop.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_ok $session_name $OUTPUT_DIR
 
@@ -660,7 +660,7 @@ function test_snapshot () {
 	OUTPUT_FILE="snapshot.xml"
 
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_no_output $session_name
 
@@ -740,7 +740,7 @@ function test_track_untrack ()
 	local pid="1,2,3"
 	OUTPUT_FILE="track.xml"
 
-	#Test buid up
+	#Test build up
 	OUTPUT_DEST=$DEVNULL
 	create_lttng_session_no_output $session_name
 
@@ -818,7 +818,7 @@ function test_track_untrack ()
 	test "$result" = "true"
 	ok $? "Mi test: pid expected is true got $result"
 
-	#Test if pid_tracker is enabled as definied by pid_tracker
+	#Test if pid_tracker is enabled as defined by pid_tracker
 	#behavior. If all pid are untrack than the pid_tracker is still
 	#enabled (pid_tracker node is present).
 	list_lttng_with_opts $session_name
@@ -847,12 +847,12 @@ function test_track_untrack ()
 	test "$num" -eq "1"
 	ok $? "Mi test: track pid expecting 1 process got $num"
 
-	#Test if the id is true wich represent the all argument
+	#Test if the id is true which represent the all argument
 	test "$result" = "true"
 	ok $? "Mi test: pid expected is true got $result"
 
-	#Test if pid_tracker is enabled as definied by pid_tracker
-	#behavior. If all pid are untrack thant the pid_tracker is
+	#Test if pid_tracker is enabled as defined by pid_tracker
+	#behavior. If all pid are untrack than the pid_tracker is
 	#disabled (node pid_tracker do not exist)
 	list_lttng_with_opts $session_name
 	$XML_VALIDATE $OUTPUT_DEST
diff --git a/tests/regression/tools/mi/validate_xml.c b/tests/regression/tools/mi/validate_xml.c
index eafe8b77..8b7e18a8 100644
--- a/tests/regression/tools/mi/validate_xml.c
+++ b/tests/regression/tools/mi/validate_xml.c
@@ -137,7 +137,7 @@ static int validate_xml(const char *xml_file_path, struct validation_ctx *ctx)
 	/* Validate against the validation ctx (xsd) */
 	ret = xmlSchemaValidateDoc(ctx->schema_validation_ctx, doc);
 	if (ret) {
-		fprintf(stderr, "ERR: %s\n", "XML is not valid againt provided XSD");
+		fprintf(stderr, "ERR: %s\n", "XML is not valid against provided XSD");
 		ret = CMD_ERROR;
 		goto end;
 	}
diff --git a/tests/regression/tools/rotation/rotate_utils.sh b/tests/regression/tools/rotation/rotate_utils.sh
index 8ff93f91..105b2ed9 100644
--- a/tests/regression/tools/rotation/rotate_utils.sh
+++ b/tests/regression/tools/rotation/rotate_utils.sh
@@ -25,11 +25,11 @@ function clean_path ()
 function get_chunk_pattern ()
 {
 	local today=$1
-	tommorow=$(date +%Y%m%d -d "${today}+1days")
+	tomorrow=$(date +%Y%m%d -d "${today}+1days")
 	pattern_hour_min="[0-9][0-9][0-9][0-9]"
 	pattern_hour_min_sec="${pattern_hour_min}[0-9][0-9]"
 
-	base_pattern="@(${today}|${tommorow})T${pattern_hour_min_sec}[+-]${pattern_hour_min}"
+	base_pattern="@(${today}|${tomorrow})T${pattern_hour_min_sec}[+-]${pattern_hour_min}"
 
 	# Return the pattern
 	# YYYYMMDDTHHMMSS[+-]HHMM-YYYYMMDDTHHMMSS[+-]HHMM
diff --git a/tests/regression/tools/streaming/test_high_throughput_limits b/tests/regression/tools/streaming/test_high_throughput_limits
index 352cf9aa..0650e540 100755
--- a/tests/regression/tools/streaming/test_high_throughput_limits
+++ b/tests/regression/tools/streaming/test_high_throughput_limits
@@ -177,7 +177,7 @@ else
 	isroot=0
 fi
 
-skip $isroot "Root access is needed to set bandwith limits. Skipping all tests." $NUM_TESTS ||
+skip $isroot "Root access is needed to set bandwidth limits. Skipping all tests." $NUM_TESTS ||
 {
 
 	# Catch sigint and try to cleanup limits
@@ -198,6 +198,6 @@ skip $isroot "Root access is needed to set bandwith limits. Skipping all tests."
 		stop_lttng_relayd
 		stop_lttng_sessiond
 		reset_bw_limit
-		ok $? "Reset bandwith limits"
+		ok $? "Reset bandwidth limits"
 	done
 }
diff --git a/tests/regression/tools/tracker/test_event_tracker b/tests/regression/tools/tracker/test_event_tracker
index 711690af..a56975f8 100755
--- a/tests/regression/tools/tracker/test_event_tracker
+++ b/tests/regression/tools/tracker/test_event_tracker
@@ -5,7 +5,7 @@
 #
 # SPDX-License-Identifier: GPL-2.0-only
 
-TEST_DESC="LTTng - Event traker test"
+TEST_DESC="LTTng - Event tracker test"
 
 CURDIR=$(dirname "$0")/
 TESTDIR="$CURDIR/../../.."
diff --git a/tests/regression/ust/daemon/test_daemon.py b/tests/regression/ust/daemon/test_daemon.py
index 0351f1d2..a8815053 100644
--- a/tests/regression/ust/daemon/test_daemon.py
+++ b/tests/regression/ust/daemon/test_daemon.py
@@ -71,16 +71,16 @@ for event_line in babeltrace_process.stdout:
 
     if re.search(r"before_daemon", event_line) is not None:
         if before_daemon_event_found:
-            bail("Multiple instances of the before_daemon event found. Please make sure only one instance of this test is runnning.")
+            bail("Multiple instances of the before_daemon event found. Please make sure only one instance of this test is running.")
         before_daemon_event_found = True
         match = re.search(r"(?<=pid = )\d+", event_line)
 
         if match is not None:
             before_daemon_event_pid = int(match.group(0))
 
     if re.search(r"after_daemon", event_line) is not None:
         if after_daemon_event_found:
-            bail("Multiple instances of the after_daemon event found. Please make sure only one instance of this test is runnning.")
+            bail("Multiple instances of the after_daemon event found. Please make sure only one instance of this test is running.")
         after_daemon_event_found = True
         match = re.search(r"(?<=pid = )\d+", event_line)
 
diff --git a/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c b/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c
index 976bcb23..8de02742 100644
--- a/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c
+++ b/tests/regression/ust/getcpu-override/lttng-ust-getcpu-override-test.c
@@ -1,6 +1,6 @@
 /*
  * lttng-ust-getcpu-override-test.c
- * Based on lttng-getcpu-override-example.c from LTTng-ust exemple
+ * Based on lttng-getcpu-override-example.c from LTTng-ust example
  *
  * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  * Copyright (C) 2015 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
diff --git a/tests/regression/ust/linking/README b/tests/regression/ust/linking/README
index bbf3a4d8..96a479bd 100644
--- a/tests/regression/ust/linking/README
+++ b/tests/regression/ust/linking/README
@@ -13,7 +13,7 @@ providers linked directly and statically. The same test suite is executed
 for every version of the binary.
 
 The resulting trace is verified to make sure it is valid and contains the
-expected valuess. This test also verifies that the execution of the demo test
+expected values. This test also verifies that the execution of the demo test
 without LD_PRELOAD has not produced any logged events.
 
 Also serves as an example of building and tracing an application with all types
diff --git a/tests/regression/ust/low-throughput/test_low_throughput b/tests/regression/ust/low-throughput/test_low_throughput
index 16ef2734..5014fcc8 100755
--- a/tests/regression/ust/low-throughput/test_low_throughput
+++ b/tests/regression/ust/low-throughput/test_low_throughput
@@ -55,7 +55,7 @@ do
 
 	if [ $th = '"one"' ]; then
 		((last_val++))
-		# We expect here a continous value from 1 to 20
+		# We expect here a continuous value from 1 to 20
 		if [ $last_val -ne $val ]; then
 			diag "One minute event failed ($val)"
 			out=1
diff --git a/tests/regression/ust/multi-lib/README b/tests/regression/ust/multi-lib/README
index 15b969f8..2816b1f4 100644
--- a/tests/regression/ust/multi-lib/README
+++ b/tests/regression/ust/multi-lib/README
@@ -1,6 +1,6 @@
 Those test cases are designed to test the support for loading and unloading
 probe providers and callsites at run time during tracing. One test case also
-tests the event payload comparaison functions.
+tests the event payload comparison functions.
 
 Testing build artefacts:
 ------------------------
diff --git a/tests/regression/ust/multi-lib/probes.h b/tests/regression/ust/multi-lib/probes.h
index 4ec4238b..35184a4a 100644
--- a/tests/regression/ust/multi-lib/probes.h
+++ b/tests/regression/ust/multi-lib/probes.h
@@ -67,7 +67,7 @@ TRACEPOINT_EVENT(multi, tp,
 #elif defined(ACTIVATE_PROBES_E)
 /*
  * Here we declare tracepoints really similar to one another but are different.
- * This is meant to test tracepoint comparaison code.
+ * This is meant to test tracepoint comparison code.
  */
 TRACEPOINT_EVENT(multi, tp,
 	TP_ARGS(uint64_t, arg),
diff --git a/tests/regression/ust/multi-lib/test_multi_lib b/tests/regression/ust/multi-lib/test_multi_lib
index f1ed6245..2bd96d98 100755
--- a/tests/regression/ust/multi-lib/test_multi_lib
+++ b/tests/regression/ust/multi-lib/test_multi_lib
@@ -184,7 +184,7 @@ test_upgrade_callsites_dlopen_dclose()
 test_event_field_comparison()
 {
 	local event_name="multi:tp"
-	diag "Load mutliple events with slight variations in the field descriptions."
+	diag "Load multiple events with slight variations in the field descriptions."
 
 	local library_prefix="libprobes_"
 	local nb_libs=0
diff --git a/tests/utils/parse-callstack.py b/tests/utils/parse-callstack.py
index 3bfddd9e..35db8bba 100755
--- a/tests/utils/parse-callstack.py
+++ b/tests/utils/parse-callstack.py
@@ -71,9 +71,9 @@ def extract_kernel_func_names(raw_callstack):
             addresses.append(int(addr, 16))
             syms.append({'addr':int(addr, 16), 'symbol':symbol})
 
-    # Save the address and symbol in a sorted list of tupple
+    # Save the address and symbol in a sorted list of tuple
     syms = sorted(syms, key=lambda k:k['addr'])
-    # We save the list of addresses in a seperate sorted list to easily bisect
+    # We save the list of addresses in a separate sorted list to easily bisect
     # the closer address of a symbol.
     addresses = sorted(addresses)
 
diff --git a/tests/utils/tap/tap.h b/tests/utils/tap/tap.h
index ab9aad1a..7008b440 100644
--- a/tests/utils/tap/tap.h
+++ b/tests/utils/tap/tap.h
@@ -27,7 +27,7 @@
  */
 
 /* '## __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) ?					\
diff --git a/tests/utils/test_utils.py b/tests/utils/test_utils.py
index 385f8544..0990fc72 100644
--- a/tests/utils/test_utils.py
+++ b/tests/utils/test_utils.py
@@ -92,7 +92,7 @@ def start_session(session_info):
     start(session_info.name)
 
 def stop_session(session_info, bailing = False):
-    # Workaround lttng-ctl outputing directly to stdout by spawning a subprocess.
+    # Workaround lttng-ctl outputting directly to stdout by spawning a subprocess.
     lttng_binary_path = os.path.dirname(os.path.abspath(__file__)) + "/"
     for i in range(3):
         lttng_binary_path = os.path.dirname(lttng_binary_path)
diff --git a/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c b/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
index 907651d7..7a302b4c 100644
--- a/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
+++ b/tests/utils/testapp/gen-ust-events-ns/gen-ust-events-ns.c
@@ -158,7 +158,7 @@ static int do_the_needful(int ns_flag, const char *ns_str)
 	debug_printf("Post unshare %s ns inode number: %lu\n", ns_str, ns2);
 
 	/*
-	 * Signal that we emited the first event group and that the
+	 * Signal that we emitted the first event group and that the
 	 * unshare call is completed.
 	 */
 	if (after_unshare_file_path) {
diff --git a/tests/utils/utils.c b/tests/utils/utils.c
index d54c6cc9..5a0cf4ad 100644
--- a/tests/utils/utils.c
+++ b/tests/utils/utils.c
@@ -102,7 +102,7 @@ int wait_on_file(const char *path)
 		ret = stat(path, &buf);
 		if (ret == -1 && errno == ENOENT) {
 			ret = poll(NULL, 0, 10);	/* 10 ms delay */
-			/* Should return 0 everytime */
+			/* Should return 0 every time */
 			if (ret) {
 				if (ret < 0) {
 					perror("perror");
diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh
index 31087877..2674e69c 100644
--- a/tests/utils/utils.sh
+++ b/tests/utils/utils.sh
@@ -1763,7 +1763,7 @@ function validate_trace
 			pass "Validate trace for event $i, $traced events"
 		else
 			fail "Validate trace for event $i"
-			diag "Found $traced occurences of $i"
+			diag "Found $traced occurrences of $i"
 		fi
 	done
 	ret=$?
@@ -1791,7 +1791,7 @@ function validate_trace_count
 			pass "Validate trace for event $i, $traced events"
 		else
 			fail "Validate trace for event $i"
-			diag "Found $traced occurences of $i"
+			diag "Found $traced occurrences of $i"
 		fi
 		cnt=$(($cnt + $traced))
 	done
@@ -1821,7 +1821,7 @@ function validate_trace_count_range_incl_min_excl_max
 			pass "Validate trace for event $i, $traced events"
 		else
 			fail "Validate trace for event $i"
-			diag "Found $traced occurences of $i"
+			diag "Found $traced occurrences of $i"
 		fi
 		cnt=$(($cnt + $traced))
 	done
@@ -1855,7 +1855,7 @@ function validate_trace_exp()
 		pass "Validate trace for expression '${event_exp}', $traced events"
 	else
 		fail "Validate trace for expression '${event_exp}'"
-		diag "Found $traced occurences of '${event_exp}'"
+		diag "Found $traced occurrences of '${event_exp}'"
 	fi
 	ret=$?
 	return $ret
-- 
2.28.0

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-17 16:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 16:29 [lttng-dev] [PATCH lttng-tools] clean-up: fix typos by running codespell Maxime Roussin-Bélanger via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).