From 2fbda51c64f28b33b8febffc998af235e6fa9ea9 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 29 Jul 2021 15:44:14 -0400 Subject: [PATCH] cleanup: spelling fixes in comments Change-Id: I79a51dcd9c4bffc227b94c2f9c1e83fde202c4fb Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- configure.ac | 4 ++-- extras/abi/README | 2 +- include/lttng/ust-utils.h | 2 +- m4/ae_config_feature.m4 | 2 +- src/common/getcpu.h | 2 +- src/common/ringbuffer/frontend_types.h | 2 +- src/common/ustcomm.c | 2 +- src/lib/lttng-ust-common/fd-tracker.c | 2 +- src/lib/lttng-ust-common/lttng-ust-urcu.c | 4 ++-- .../org/lttng/ust/agent/client/LttngTcpSessiondClient.java | 2 +- src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c | 2 +- src/lib/lttng-ust/event-notifier-notification.c | 2 +- src/lib/lttng-ust/lttng-ust-comm.c | 6 +++--- src/lib/lttng-ust/perf_event.h | 2 +- src/python-lttngust/lttngust/agent.py | 2 +- tests/utils/tap-driver.sh | 2 +- tests/utils/tap.h | 2 +- 17 files changed, 21 insertions(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 1b986eab..86b1d052 100644 --- a/configure.ac +++ b/configure.ac @@ -322,7 +322,7 @@ AC_ARG_VAR([CLASSPATH], [Java class path]) ## ## -## Optionnal features selection ## +## Optional features selection ## ## ## # numa integration @@ -419,7 +419,7 @@ AS_IF([AE_IS_FEATURE_ENABLED([jni-interface]) || AE_IS_FEATURE_ENABLED([java-age AX_PROG_JAVA AX_PROG_JAR - # Get the CPPFLAGS required to build jni libaries + # Get the CPPFLAGS required to build jni libraries AX_JNI_INCLUDE_DIR for jni_include_dir in $JNI_INCLUDE_DIRS; do JNI_CPPFLAGS="$JNI_CPPFLAGS -I$jni_include_dir" diff --git a/extras/abi/README b/extras/abi/README index c21624ec..41abc754 100644 --- a/extras/abi/README +++ b/extras/abi/README @@ -1,5 +1,5 @@ This directory contains the serialized ABI definitions for a typical build of -the lttng-ust librairies. This information is extracted using libabigail +the lttng-ust libraries. This information is extracted using libabigail (https://sourceware.org/libabigail/). The artefacts used to generate these were built with CFLAGS="-O0 -ggdb" and all diff --git a/include/lttng/ust-utils.h b/include/lttng/ust-utils.h index d2747d4a..cbd1f66a 100644 --- a/include/lttng/ust-utils.h +++ b/include/lttng/ust-utils.h @@ -138,7 +138,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 lttng_ust_offset_align_floor(align_drift, alignment) \ ({ \ diff --git a/m4/ae_config_feature.m4 b/m4/ae_config_feature.m4 index 7582c00f..315da572 100644 --- a/m4/ae_config_feature.m4 +++ b/m4/ae_config_feature.m4 @@ -211,7 +211,7 @@ m4_pushdef([FEATURE], patsubst([$1], -, _))dnl ]) -dnl Disabled by default, unless already overriden +dnl Disabled by default, unless already overridden m4_ifndef([ae_feature_default_arg],[AE_FEATURE_DEFAULT_DISABLE]) diff --git a/src/common/getcpu.h b/src/common/getcpu.h index 3bf9076a..24e684c7 100644 --- a/src/common/getcpu.h +++ b/src/common/getcpu.h @@ -82,7 +82,7 @@ int lttng_ust_get_cpu_internal(void) /* * FreeBSD and Cygwin do not allow query of CPU ID. Always use CPU - * number 0, with the assocated performance degradation on SMP. + * number 0, with the associated performance degradation on SMP. */ static inline int lttng_ust_get_cpu_internal(void) diff --git a/src/common/ringbuffer/frontend_types.h b/src/common/ringbuffer/frontend_types.h index 19ab821d..d1f70c3a 100644 --- a/src/common/ringbuffer/frontend_types.h +++ b/src/common/ringbuffer/frontend_types.h @@ -120,7 +120,7 @@ enum lttng_crash_type { struct lttng_crash_abi { uint8_t magic[RB_CRASH_DUMP_ABI_MAGIC_LEN]; - uint64_t mmap_length; /* Overall lenght of crash record */ + uint64_t mmap_length; /* Overall length of crash record */ uint16_t endian; /* * { 0x12, 0x34 }: big endian * { 0x34, 0x12 }: little endian diff --git a/src/common/ustcomm.c b/src/common/ustcomm.c index 319e84ac..6dfec5ea 100644 --- a/src/common/ustcomm.c +++ b/src/common/ustcomm.c @@ -1727,7 +1727,7 @@ int ustcomm_register_channel(int sock, } /* - * Set socket reciving timeout. + * Set socket receiving timeout. */ int ustcomm_setsockopt_rcv_timeout(int sock, unsigned int msec) { diff --git a/src/lib/lttng-ust-common/fd-tracker.c b/src/lib/lttng-ust-common/fd-tracker.c index 7a17e2a0..b2d881a3 100644 --- a/src/lib/lttng-ust-common/fd-tracker.c +++ b/src/lib/lttng-ust-common/fd-tracker.c @@ -284,7 +284,7 @@ int lttng_ust_add_fd_to_tracker(int fd) /* Trying to add an fd which we can not accommodate. */ assert(IS_FD_VALID(fd)); - /* Setting an fd thats already set. */ + /* Setting an fd that's already set. */ assert(!IS_FD_SET(fd, lttng_fd_set)); ADD_FD_TO_SET(fd, lttng_fd_set); diff --git a/src/lib/lttng-ust-common/lttng-ust-urcu.c b/src/lib/lttng-ust-common/lttng-ust-urcu.c index 0f647556..0b2d6fc0 100644 --- a/src/lib/lttng-ust-common/lttng-ust-urcu.c +++ b/src/lib/lttng-ust-common/lttng-ust-urcu.c @@ -275,7 +275,7 @@ void lttng_ust_urcu_synchronize_rcu(void) /* * Wait for readers to observe original parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(®istry, &cur_snap_readers, &qsreaders); @@ -306,7 +306,7 @@ void lttng_ust_urcu_synchronize_rcu(void) /* * Wait for readers to observe new parity or be quiescent. * wait_for_readers() can release and grab again rcu_registry_lock - * interally. + * internally. */ wait_for_readers(&cur_snap_readers, NULL, &qsreaders); diff --git a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/LttngTcpSessiondClient.java b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/LttngTcpSessiondClient.java index 9fa8c3ac..cb84087a 100644 --- a/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/LttngTcpSessiondClient.java +++ b/src/lib/lttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/client/LttngTcpSessiondClient.java @@ -41,7 +41,7 @@ public class LttngTcpSessiondClient implements Runnable { private static final int PROTOCOL_MAJOR_VERSION = 2; private static final int PROTOCOL_MINOR_VERSION = 0; - /** Command header from the session deamon. */ + /** Command header from the session daemon. */ private final CountDownLatch registrationLatch = new CountDownLatch(1); private Socket sessiondSock; diff --git a/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c b/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c index 3951f5b0..48d37f81 100644 --- a/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c +++ b/src/lib/lttng-ust-libc-wrapper/lttng-ust-malloc.c @@ -355,7 +355,7 @@ void *realloc(void *ptr, size_t size) memcpy(retval, ptr, *old_size); } /* - * Mimick that a NULL pointer has been received, so + * Mimic that a NULL pointer has been received, so * memory allocation analysis based on the trace don't * get confused by the address from the static * allocator. diff --git a/src/lib/lttng-ust/event-notifier-notification.c b/src/lib/lttng-ust/event-notifier-notification.c index d4849421..c13279df 100644 --- a/src/lib/lttng-ust/event-notifier-notification.c +++ b/src/lib/lttng-ust/event-notifier-notification.c @@ -199,7 +199,7 @@ void capture_sequence(struct lttng_msgpack_writer *writer, /* * We assume that alignment is smaller or equal to the size. * This currently holds true but if it changes in the future, - * we will want to change the pointer arithmetics below to + * we will want to change the pointer arithmetic below to * take into account that the next element might be further * away. */ diff --git a/src/lib/lttng-ust/lttng-ust-comm.c b/src/lib/lttng-ust/lttng-ust-comm.c index 2a105bd7..2738959f 100644 --- a/src/lib/lttng-ust/lttng-ust-comm.c +++ b/src/lib/lttng-ust/lttng-ust-comm.c @@ -2183,7 +2183,7 @@ void lttng_ust_ctor(void) * this library so it never becomes zero, thus never gets unloaded from the * address space of the process. Since we are already running in the * constructor of the LTTNG_UST_LIB_SONAME library, calling dlopen will - * simply increment the refcount and no additionnal work is needed by the + * simply increment the refcount and no additional work is needed by the * dynamic loader as the shared library is already loaded in the address * space. As a safe guard, we use the RTLD_NODELETE flag to prevent * unloading of the UST library if its refcount becomes zero (which should @@ -2520,7 +2520,7 @@ void lttng_ust_after_fork_parent(sigset_t *restore_sigset) return; DBG("process %d", getpid()); lttng_ust_urcu_after_fork_parent(); - /* Release mutexes and reenable signals */ + /* Release mutexes and re-enable signals */ ust_after_fork_common(restore_sigset); } @@ -2547,7 +2547,7 @@ void lttng_ust_after_fork_child(sigset_t *restore_sigset) /* Release urcu mutexes */ lttng_ust_urcu_after_fork_child(); lttng_ust_cleanup(0); - /* Release mutexes and reenable signals */ + /* Release mutexes and re-enable signals */ ust_after_fork_common(restore_sigset); lttng_ust_ctor(); } diff --git a/src/lib/lttng-ust/perf_event.h b/src/lib/lttng-ust/perf_event.h index 48946c53..af8fb96a 100644 --- a/src/lib/lttng-ust/perf_event.h +++ b/src/lib/lttng-ust/perf_event.h @@ -541,7 +541,7 @@ struct perf_event_mmap_page { * after reading this value. * * When the mapping is PROT_WRITE the @data_tail value should be - * written by userspace to reflect the last read data, after issueing + * written by userspace to reflect the last read data, after issuing * an smp_mb() to separate the data read from the ->data_tail store. * In this case the kernel will not over-write unread data. * diff --git a/src/python-lttngust/lttngust/agent.py b/src/python-lttngust/lttngust/agent.py index 86583728..66dbbd5e 100644 --- a/src/python-lttngust/lttngust/agent.py +++ b/src/python-lttngust/lttngust/agent.py @@ -96,7 +96,7 @@ class _TcpClient(object): except (Exception) as e: # Whatever happens here, we have to close the socket and # retry to connect to the session daemon since either - # the socket was closed, a network timeout occured, or + # the socket was closed, a network timeout occurred, or # invalid data was received. dbg._pdebug(self._debug('got exception: {}'.format(e))) self._cleanup_socket() diff --git a/tests/utils/tap-driver.sh b/tests/utils/tap-driver.sh index 12742cae..7f895de6 100755 --- a/tests/utils/tap-driver.sh +++ b/tests/utils/tap-driver.sh @@ -372,7 +372,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/tests/utils/tap.h b/tests/utils/tap.h index b3e94450..60455a07 100644 --- a/tests/utils/tap.h +++ b/tests/utils/tap.h @@ -6,7 +6,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) ? \ -- 2.34.1