From fdf9b08cee7844d9ad86cbb1ab6b5adeff2b0520 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Tue, 10 Oct 2017 21:13:28 +0100 Subject: [PATCH] correct spelling mistakes --- examples/networking/dns_matching/dns_matching.py | 2 +- man/man8/memleak.8 | 2 +- man/man8/tcplife.8 | 2 +- src/cc/frontends/clang/loader.cc | 2 +- src/cc/frontends/p4/test/testP4toEbpf.py | 2 +- src/cc/libbpf.c | 2 +- src/lua/bcc/vendor/json.lua | 2 +- src/lua/bpf/bpf.lua | 4 ++-- src/python/bcc/table.py | 2 +- tests/python/test_brb.c | 2 +- tools/cpuunclaimed_example.txt | 2 +- tools/dcstat.py | 2 +- tools/offwaketime_example.txt | 2 +- tools/solisten.py | 2 +- tools/tcplife.lua | 2 +- tools/tcplife.py | 2 +- tools/tcplife_example.txt | 2 +- 17 files changed, 18 insertions(+), 18 deletions(-) diff --git a/examples/networking/dns_matching/dns_matching.py b/examples/networking/dns_matching/dns_matching.py index a9234fcd52e3..eb2e29e06f06 100755 --- a/examples/networking/dns_matching/dns_matching.py +++ b/examples/networking/dns_matching/dns_matching.py @@ -69,7 +69,7 @@ def add_cache_entry(cache, name): add_cache_entry(cache, e) print("\nTry to lookup some domain names using nslookup from another terminal.") -print("For exmaple: nslookup foo.bar") +print("For example: nslookup foo.bar") print("\nBPF program will filter-in DNS packets which match with map entries.") print("Packets received by user space program will be printed here") print("\nHit Ctrl+C to end...") diff --git a/man/man8/memleak.8 b/man/man8/memleak.8 index 8191b387633e..fa52c8cf67a4 100644 --- a/man/man8/memleak.8 +++ b/man/man8/memleak.8 @@ -70,7 +70,7 @@ Capture only allocations that are smaller than or equal to MAX_SIZE bytes. Attach to allocation functions in specified object instead of resolving libc. Ignored when kernel allocations are profiled. .TP INTERVAL -Print a summary of oustanding allocations and their call stacks every INTERVAL seconds. +Print a summary of outstanding allocations and their call stacks every INTERVAL seconds. The default interval is 5 seconds. .TP COUNT diff --git a/man/man8/tcplife.8 b/man/man8/tcplife.8 index 059caa957064..00a99337df22 100644 --- a/man/man8/tcplife.8 +++ b/man/man8/tcplife.8 @@ -105,7 +105,7 @@ Lifespan of the session, in milliseconds. This traces the kernel TCP set state function, which should be called much less often than send/receive tracing, and therefore have lower overhead. The overhead of the tool is relative to the rate of new TCP sessions: if this is -high, over 10,000 per second, then there may be noticable overhead just to +high, over 10,000 per second, then there may be noticeable overhead just to print out 10k lines of formatted output per second. You can find out the rate of new TCP sessions using "sar \-n TCP 1", and diff --git a/src/cc/frontends/clang/loader.cc b/src/cc/frontends/clang/loader.cc index 0d806344e450..dd6ede384a05 100644 --- a/src/cc/frontends/clang/loader.cc +++ b/src/cc/frontends/clang/loader.cc @@ -135,7 +135,7 @@ int ClangLoader::parse(unique_ptr *mod, TableStorage &ts, // -fno-color-diagnostics: this is a workaround for a bug in llvm terminalHasColors() as of // 22 Jul 2016. Also see bcc #615. - // Enable -O2 for clang. In clang 5.0, -O0 may result in funciton marking as + // Enable -O2 for clang. In clang 5.0, -O0 may result in function marking as // noinline and optnone (if not always inlining). // Note that first argument is ignored in clang compilation invocation. vector flags_cstr({"-O0", "-O2", "-emit-llvm", "-I", dstack.cwd(), diff --git a/src/cc/frontends/p4/test/testP4toEbpf.py b/src/cc/frontends/p4/test/testP4toEbpf.py index bc6301a271b4..0e9a298c0132 100755 --- a/src/cc/frontends/p4/test/testP4toEbpf.py +++ b/src/cc/frontends/p4/test/testP4toEbpf.py @@ -37,7 +37,7 @@ def main(): errors = 0 if not is_root(): - print "Loading EBPF programs requires root priviledge." + print "Loading EBPF programs requires root privilege." print "Will only test compilation, not loading." print "(Run with sudo to test program loading.)" diff --git a/src/cc/libbpf.c b/src/cc/libbpf.c index 78ca5c61b964..44329da34749 100644 --- a/src/cc/libbpf.c +++ b/src/cc/libbpf.c @@ -161,7 +161,7 @@ int bpf_get_first_key(int fd, void *key, size_t key_size) // of map's value. So we pass an invalid pointer for value, expect // the call to fail and check if the error is ENOENT indicating the // key doesn't exist. If we use NULL for the invalid pointer, it might - // trigger a page fault in kernel and affect performence. Hence we use + // trigger a page fault in kernel and affect performance. Hence we use // ~0 which will fail and return fast. // This should fail since we pass an invalid pointer for value. if (bpf_lookup_elem(fd, key, (void *)~0) >= 0) diff --git a/src/lua/bcc/vendor/json.lua b/src/lua/bcc/vendor/json.lua index 1a6c29dfb4d6..3e4648d273c0 100644 --- a/src/lua/bcc/vendor/json.lua +++ b/src/lua/bcc/vendor/json.lua @@ -19,7 +19,7 @@ consecutive sequence of positive integers starting at 1. Arrays are encoded like so: `[2, 3, false, "hi"]`. Any other type of Lua table is encoded as a json object, encoded like so: `{"key1": 2, "key2": false}`. -Because the Lua nil value cannot be a key, and as a table value is considerd +Because the Lua nil value cannot be a key, and as a table value is considered equivalent to a missing key, there is no way to express the json "null" value in a Lua table. The only way this will output "null" is if your entire input obj is nil itself. diff --git a/src/lua/bpf/bpf.lua b/src/lua/bpf/bpf.lua index f37ab571bc96..6e5afc14d8af 100644 --- a/src/lua/bpf/bpf.lua +++ b/src/lua/bpf/bpf.lua @@ -475,7 +475,7 @@ end local function LOAD(dst, src, off, vtype) local base = V[src].const - assert(base.__dissector, 'NYI: load() on variable that doesnt have dissector') + assert(base.__dissector, "NYI: load() on variable that doesn't have dissector") -- Cast to different type if requested vtype = vtype or base.__dissector local w = ffi.sizeof(vtype) @@ -971,7 +971,7 @@ return setmetatable(BC, { bb_end(Vstate[code.bc_pc]) end -- Perform fixup of jump targets - -- We need to do this because the number of consumed and emited + -- We need to do this because the number of consumed and emitted -- bytecode instructions is different local fixup = code.fixup[code.bc_pc] if fixup ~= nil then diff --git a/src/python/bcc/table.py b/src/python/bcc/table.py index 7eeb059e0104..a9857914b142 100644 --- a/src/python/bcc/table.py +++ b/src/python/bcc/table.py @@ -302,7 +302,7 @@ def print_log2_hist(self, val_type="value", section_header="Bucket ptr", it will be used to produce a bucket value for the histogram keys. If the value of strip_leading_zero is not False, prints a histogram that is omitted leading zeros from the beginning. The maximum index - allowed is log2_index_max (65), which will accomodate any 64-bit + allowed is log2_index_max (65), which will accommodate any 64-bit integer in the histogram. """ if isinstance(self.Key(), ct.Structure): diff --git a/tests/python/test_brb.c b/tests/python/test_brb.c index b9e8e06b5868..2141735c0f12 100644 --- a/tests/python/test_brb.c +++ b/tests/python/test_brb.c @@ -120,7 +120,7 @@ static int br_common(struct __sk_buff *skb, int which_br) { /* handle ethernet packet header */ { dmac.addr = ethernet->dst; - /* skb->tc_index may be preserved accross router namespace if router simply rewrite packet + /* skb->tc_index may be preserved across router namespace if router simply rewrite packet * and send it back. */ if (skb->tc_index == 1) { diff --git a/tools/cpuunclaimed_example.txt b/tools/cpuunclaimed_example.txt index 1e6499e445a5..64158a9ba7b1 100644 --- a/tools/cpuunclaimed_example.txt +++ b/tools/cpuunclaimed_example.txt @@ -53,7 +53,7 @@ Sampling run queues... Output every 1 seconds. Hit Ctrl-C to end. [...] It shows that 7 of the 8 CPUs (87.5%) are idle at the same time there are -queued threads waiting to run on CPU. This is an artifical situation caused +queued threads waiting to run on CPU. This is an artificial situation caused by binding threads to the same CPU, to demonstrate how the tool works. diff --git a/tools/dcstat.py b/tools/dcstat.py index c74c79b5c7c9..5ecddd1a7cf7 100755 --- a/tools/dcstat.py +++ b/tools/dcstat.py @@ -64,7 +64,7 @@ def usage(): * __d_lookup_rcu()). It's counted via calls to lookup_fast(). * * The implementation tries different, progressively slower, approaches to - * lookup a file. At what point do we call it a dcache miss? I've choosen when + * lookup a file. At what point do we call it a dcache miss? I've chosen when * a d_lookup() (which is called during lookup_slow()) returns zero. * * I've also included a "SLOW" statistic to show how often the fast lookup diff --git a/tools/offwaketime_example.txt b/tools/offwaketime_example.txt index 72bec06babdb..8291e2f76bbe 100644 --- a/tools/offwaketime_example.txt +++ b/tools/offwaketime_example.txt @@ -171,7 +171,7 @@ stack and the waker task name after "waker:". The wakeup stack is printed in reverse order. The number beneath the stacks is the total time spent from the blocking event -to the wakeup event. This is summed for all occurances with the same stack +to the wakeup event. This is summed for all occurrences with the same stack pairs. diff --git a/tools/solisten.py b/tools/solisten.py index 44f3f9b46551..b322af9e388c 100755 --- a/tools/solisten.py +++ b/tools/solisten.py @@ -6,7 +6,7 @@ # USAGE: solisten.py [-h] [-p PID] [--show-netns] # # This is provided as a basic example of TCP connection & socket tracing. -# It could be usefull in scenarios where load balancers needs to be updated +# It could be useful in scenarios where load balancers needs to be updated # dynamically as application is fully initialized. # # All IPv4 listen attempts are traced, even if they ultimately fail or the diff --git a/tools/tcplife.lua b/tools/tcplife.lua index d1ce05557ae9..7dc9364c7890 100755 --- a/tools/tcplife.lua +++ b/tools/tcplife.lua @@ -321,7 +321,7 @@ local function parse_arg(utils) parser:flag("-T --time", "include time column on output (HH:MM:SS)") parser:flag("-t --timestamp", "include timestamp on output (seconds)") parser:flag("-w --wide", "wide column output (fits IPv6 addresses)") - parser:flag("-s --csv", "comma seperated values output") + parser:flag("-s --csv", "comma separated values output") parser:option("-p --pid", "trace this PID only"):convert(tonumber) parser:option("-L --localport", "comma-separated list of local ports to trace.") parser:option("-D --remoteport", "comma-separated list of remote ports to trace.") diff --git a/tools/tcplife.py b/tools/tcplife.py index 490e56860e29..547b71d5a302 100755 --- a/tools/tcplife.py +++ b/tools/tcplife.py @@ -50,7 +50,7 @@ parser.add_argument("-w", "--wide", action="store_true", help="wide column output (fits IPv6 addresses)") parser.add_argument("-s", "--csv", action="store_true", - help="comma seperated values output") + help="comma separated values output") parser.add_argument("-p", "--pid", help="trace this PID only") parser.add_argument("-L", "--localport", diff --git a/tools/tcplife_example.txt b/tools/tcplife_example.txt index 457fe787586f..fe4e52b102e6 100644 --- a/tools/tcplife_example.txt +++ b/tools/tcplife_example.txt @@ -117,7 +117,7 @@ optional arguments: -T, --time include time column on output (HH:MM:SS) -t, --timestamp include timestamp on output (seconds) -w, --wide wide column output (fits IPv6 addresses) - -s, --csv comma seperated values output + -s, --csv comma separated values output -p PID, --pid PID trace this PID only -L LOCALPORT, --localport LOCALPORT comma-separated list of local ports to trace.