Fix a bunch of typos (#2693)
fix a bunch of types in man pages, docs, tools, tests, src and examples.
diff --git a/tools/inject.py b/tools/inject.py
index fa2d388..9d6b85f 100755
--- a/tools/inject.py
+++ b/tools/inject.py
@@ -75,7 +75,7 @@
else:
early_pred = "bpf_get_prandom_u32() > %s" % str(int((1<<32)*Probe.probability))
# init the map
- # dont do an early exit here so the singular case works automatically
+ # don't do an early exit here so the singular case works automatically
# have an early exit for probability option
enter = """
/*
@@ -112,7 +112,7 @@
self.func_name = self.event + ("_entry" if self.is_entry else "_exit")
func_sig = "struct pt_regs *ctx"
- # assume theres something in there, no guarantee its well formed
+ # assume there's something in there, no guarantee its well formed
if right > left + 1 and self.is_entry:
func_sig += ", " + self.func[left + 1:right]
@@ -209,13 +209,13 @@
pred = self.preds[0][0]
text = self._get_heading() + """
{
- u32 overriden = 0;
+ u32 overridden = 0;
int zero = 0;
u32* val;
val = count.lookup(&zero);
if (val)
- overriden = *val;
+ overridden = *val;
/*
* preparation for predicate, if necessary
@@ -224,7 +224,7 @@
/*
* If this is the only call in the chain and predicate passes
*/
- if (%s == 1 && %s && overriden < %s) {
+ if (%s == 1 && %s && overridden < %s) {
count.increment(zero);
bpf_override_return(ctx, %s);
return 0;
@@ -239,7 +239,7 @@
/*
* If all conds have been met and predicate passes
*/
- if (p->conds_met == %s && %s && overriden < %s) {
+ if (p->conds_met == %s && %s && overridden < %s) {
count.increment(zero);
bpf_override_return(ctx, %s);
}