Commit fdf9b08c authored by Edward Betts's avatar Edward Betts Committed by Brenden Blanco

correct spelling mistakes

parent b3347027
......@@ -69,7 +69,7 @@ for e in entries:
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...")
......
......@@ -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
......
......@@ -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
......
......@@ -135,7 +135,7 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *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<const char *> flags_cstr({"-O0", "-O2", "-emit-llvm", "-I", dstack.cwd(),
......
......@@ -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.)"
......
......@@ -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)
......
......@@ -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.
......
......@@ -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
......
......@@ -302,7 +302,7 @@ class TableBase(MutableMapping):
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):
......
......@@ -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) {
......
......@@ -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.
......
......@@ -64,7 +64,7 @@ BPF_ARRAY(stats, u64, S_MAXSTAT);
* __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
......
......@@ -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.
......
......@@ -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
......
......@@ -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.")
......
......@@ -50,7 +50,7 @@ parser.add_argument("-t", "--timestamp", action="store_true",
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",
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment