]> git.proxmox.com Git - mirror_qemu.git/commitdiff
scripts/: spelling fixes
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 14 Jul 2023 11:33:18 +0000 (14:33 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 8 Sep 2023 10:08:52 +0000 (13:08 +0300)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
scripts/checkpatch.pl
scripts/ci/gitlab-pipeline-status
scripts/codeconverter/codeconverter/qom_macros.py
scripts/oss-fuzz/minimize_qtest_trace.py
scripts/performance/topN_callgrind.py
scripts/performance/topN_perf.py
scripts/qapi/gen.py
scripts/replay-dump.py
scripts/simplebench/bench_block_job.py

index eeaec436eb36a5a0dff91afc607739bb6b0a792d..1ad9ccb74ba07ab996a112f16b2208ec7eba790f 100755 (executable)
@@ -1621,7 +1621,7 @@ sub process {
                                my $hex =
                                        qr/%[-+ *.0-9]*([hljztL]|ll|hh)?(x|X|"\s*PRI[xX][^"]*"?)/;
 
-                               # don't consider groups splitted by [.:/ ], like 2A.20:12ab
+                               # don't consider groups split by [.:/ ], like 2A.20:12ab
                                my $tmpline = $rawline;
                                $tmpline =~ s/($hex[.:\/ ])+$hex//g;
 
index 924db327ff9d974df93b1ab00c30efca3a0b8673..e3343b05108a5d754dfe5b5c98c441b5ee99a283 100755 (executable)
@@ -28,7 +28,7 @@ class CommunicationFailure(Exception):
 
 
 class NoPipelineFound(Exception):
-    """Communication is successfull but pipeline is not found."""
+    """Communication is successful but pipeline is not found."""
 
 
 def get_local_branch_commit(branch):
index 2d2f2055a3da7d72a884d3e67db7ba43207c70cd..2b0c8224a1809036b3d34622a9f98020c15d51ee 100644 (file)
@@ -142,7 +142,7 @@ class FullStructTypedefMatch(TypedefMatch):
         return name
 
     def strip_typedef(self) -> Patch:
-        """generate patch that will strip typedef from the struct declartion
+        """generate patch that will strip typedef from the struct declaration
 
         The caller is responsible for readding the typedef somewhere else.
         """
index 20825768c28da7defdf11d4eb5c700f3cb3b7592..d1f3990c16a7c9f72821236b37cf3d9a2c35fcfc 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 
 """
-This takes a crashing qtest trace and tries to remove superflous operations
+This takes a crashing qtest trace and tries to remove superfluous operations
 """
 
 import sys
@@ -38,7 +38,7 @@ crash by setting CRASH_TOKEN=
 Options:
 
 -M1: enable a loop around the remove minimizer, which may help decrease some
-     timing dependant instructions. Off by default.
+     timing dependent instructions. Off by default.
 -M2: try setting bits in operand of write/out to zero. Off by default.
 
 """.format((sys.argv[0])))
@@ -177,7 +177,7 @@ def remove_lines(newtrace, outpath):
         # it into two separate write commands. If splitting the data operand
         # from length/2^n bytes to the left does not work, try to move the pivot
         # to the right side, then add one to n, until length/2^n == 0. The idea
-        # is to prune unneccessary bytes from long writes, while accommodating
+        # is to prune unnecessary bytes from long writes, while accommodating
         # arbitrary MemoryRegion access sizes and alignments.
 
         # This algorithm will fail under some rare situations.
@@ -292,7 +292,7 @@ def minimize_trace(inpath, outpath):
     old_len = len(newtrace) + 1
     while(old_len > len(newtrace)):
         old_len = len(newtrace)
-        print("trace lenth = ", old_len)
+        print("trace length = ", old_len)
         remove_lines(newtrace, outpath)
         if not M1 and not M2:
             break
index 67c59197af7c37947f3192d89d8dacda0c403b2f..f3f05fce551489cffbeff6aadbdbaadfb66b64da 100755 (executable)
@@ -4,7 +4,7 @@
 #  Syntax:
 #  topN_callgrind.py [-h] [-n] <number of displayed top functions>  -- \
 #           <qemu executable> [<qemu executable options>] \
-#           <target executable> [<target execurable options>]
+#           <target executable> [<target executable options>]
 #
 #  [-h] - Print the script arguments help message.
 #  [-n] - Specify the number of top functions to print.
index 07be195fc86773f64d13a85e828c491c2417bc80..7b19e6a7424bc8353db518655f7052a170d7db57 100755 (executable)
@@ -4,7 +4,7 @@
 #  Syntax:
 #  topN_perf.py [-h] [-n] <number of displayed top functions>  -- \
 #           <qemu executable> [<qemu executable options>] \
-#           <target executable> [<target execurable options>]
+#           <target executable> [<target executable options>]
 #
 #  [-h] - Print the script arguments help message.
 #  [-n] - Specify the number of top functions to print.
index 70bc576a102b8582260a62da5b551762ecb545bc..bf5716b5f3012662932314bde644166122da2a97 100644 (file)
@@ -81,7 +81,7 @@ class QAPIGen:
         if odir:
             os.makedirs(odir, exist_ok=True)
 
-        # use os.open for O_CREAT to create and read a non-existant file
+        # use os.open for O_CREAT to create and read a non-existent file
         fd = os.open(pathname, os.O_RDWR | os.O_CREAT, 0o666)
         with os.fdopen(fd, 'r+', encoding='utf-8') as fp:
             text = self.get_content()
index 3ba97a6d30ea7df657584d578ba00418103b8648..b89dc29555a3480ab5afdfbb22550987d56dbb19 100755 (executable)
@@ -111,7 +111,7 @@ def print_event(eid, name, string=None, event_count=None):
 # Decoders for each event type
 
 def decode_unimp(eid, name, _unused_dumpfile):
-    "Unimplimented decoder, will trigger exit"
+    "Unimplemented decoder, will trigger exit"
     print("%s not handled - will now stop" % (name))
     return False
 
index 56191db44b2120c5217fa2037a80327e300a9df3..e575a3af10e3a762340502f0a78ef870941600ad 100755 (executable)
@@ -39,7 +39,7 @@ def bench_block_job(cmd, cmd_args, qemu_args):
                  binary
 
     Returns {'seconds': int} on success and {'error': str} on failure, dict may
-    contain addional 'vm-log' field. Return value is compatible with
+    contain additional 'vm-log' field. Return value is compatible with
     simplebench lib.
     """