Skip to content

Commit bcfe39d

Browse files
authored
fix some typos (bpftrace#2251)
Signed-off-by: cuishuang <[email protected]>
1 parent 44a4b61 commit bcfe39d

13 files changed

+15
-15
lines changed

cmake/embed/embed_helpers.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function(fetch_patches patchName patchPath patchURL patchChecksum stripLevel)
100100
if(patchName MATCHES .*tar.*)
101101
execute_process(COMMAND tar -xpf ${patchPath}/${patchName} --strip-components=${stripLevel} -C ${patchPath})
102102
else()
103-
message("Patch ${patchName} doesn't appear to a tar achive, assuming it is a plaintext patch")
103+
message("Patch ${patchName} doesn't appear to a tar archive, assuming it is a plaintext patch")
104104
endif()
105105
endif()
106106
endfunction(fetch_patches patchName patchPatch patchURL patchChecksum)

src/ast/ast.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class VisitorBase;
1818
#define DEFINE_ACCEPT void accept(VisitorBase &v) override;
1919

2020
/**
21-
* Copy the node but leave all it's child members uninitialized, effecitvely
21+
* Copy the node but leave all it's child members uninitialized, effectively
2222
* turning it into a leaf node
2323
*/
2424
#define DEFINE_LEAFCOPY(T) \

src/ast/attachpoint_parser.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ AttachPointParser::State AttachPointParser::lex_attachpoint(
244244
}
245245
else if (!in_quotes && raw[idx] == '$')
246246
{
247-
// There's an assumption that the positional paramter is well
247+
// There's an assumption that the positional parameter is well
248248
// formed. ie we are not expecting a bare `$` or `$nonint`. The
249249
// bison parser should have guaranteed this.
250250
size_t i = idx + 1;

src/ast/passes/codegen_llvm.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ void CodegenLLVM::binop_int(Binop &binop)
12191219
// If left or right is PositionalParameter, that means the syntax is
12201220
// str($1 + num) or str(num + $1). The positional params returns a pointer
12211221
// to a buffer, and the buffer should live untill str() is accepted.
1222-
// Extend the liftime of the buffer
1222+
// Extend the lifetime of the buffer
12231223
if (dynamic_cast<PositionalParameter *>(binop.left))
12241224
expr_deleter_ = scoped_del_left.disarm();
12251225
if (dynamic_cast<PositionalParameter *>(binop.right))
@@ -1444,7 +1444,7 @@ void CodegenLLVM::unop_int(Unop &unop)
14441444
expr_ = b_.CreateICmpEQ(expr_, zero_value);
14451445
// CreateICmpEQ() returns 1-bit integer
14461446
// Cast it to the same type of the operand
1447-
// Use unsigned extention, otherwise !0 becomes -1
1447+
// Use unsigned extension, otherwise !0 becomes -1
14481448
expr_ = b_.CreateIntCast(expr_, ty, false);
14491449
break;
14501450
}

src/map.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Map::Map(const std::string &name,
107107
// bpf_get_stack() to write into. Using the stack directly wouldn't work well
108108
// b/c it would take too much stack space.
109109
//
110-
// The temporary fix is to bump the map size to 128K. Any futher bumps should
110+
// The temporary fix is to bump the map size to 128K. Any further bumps should
111111
// warrant consideration of the previous paragraph.
112112
Map::Map(const SizedType &type) : IMap(type)
113113
{

tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ endif(STATIC_LINKING)
8686
# Still need to support vendored gtest/gmock b/c old ubuntu versions (< focal)
8787
# only provide gtest/gmock sources -- no precompiled binaries
8888
if(VENDOR_GTEST)
89-
# Ninja build system needs the byproducts set explicilty so it can
89+
# Ninja build system needs the byproducts set explicitly so it can
9090
# check for missing dependencies.
9191
# https://cmake.org/pipermail/cmake/2015-April/060234.html
9292
set(gtest_byproducts

tests/memleak-tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ done
5050
echo "${GREEN}[==========]"
5151

5252
if [ $result -eq 0 ]; then
53-
echo "${GREEN}[ PASSED ]${NC} All tests were succesful"
53+
echo "${GREEN}[ PASSED ]${NC} All tests were successful"
5454
else
5555
echo "${RED}[ FAILED ]${NC} Memory leaks detected"
5656
fi

tests/runtime/engine/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def main(test_filter, run_aot_tests):
7575
parser.add_argument('--filter', dest='tests_filter',
7676
help='filter runtime tests')
7777
parser.add_argument('--run-aot-tests', action='store_true',
78-
help='Run ahead-of-time compliation tests. Note this would roughly double test time.')
78+
help='Run ahead-of-time compilation tests. Note this would roughly double test time.')
7979

8080
args = parser.parse_args()
8181

tests/testprogs/syscall.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ int gen_nanosleep(int argc, char *argv[])
4343
sscanf(arg, "%le%c", &time, &tail);
4444
if (tail != '\0')
4545
{
46-
printf("Argument '%s' should only contain numerial charactors\n", arg);
46+
printf("Argument '%s' should only contain numerial characters\n", arg);
4747
return 1;
4848
}
4949
// if time is less than 1 nsec, round up to 1 nsec, as with sleep command

tools/capable.bt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bpftrace
22
/*
3-
* capable Trace security capabilitiy checks (cap_capable()).
3+
* capable Trace security capability checks (cap_capable()).
44
* For Linux, uses bpftrace and eBPF.
55
*
66
* USAGE: capable.bt

tools/pidpersec.bt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bpftrace
22
/*
3-
* pidpersec Count new procesess (via fork).
3+
* pidpersec Count new processes (via fork).
44
* For Linux, uses bpftrace and eBPF.
55
*
66
* Written as a basic example of counting on an event.

tools/pidpersec_example.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Demonstrations of pidpersec, the Linux bpftrace/eBPF version.
22

33

4-
Tracing new procesess:
4+
Tracing new processes:
55

66
# ./pidpersec.bt
77
Attaching 4 probes...
@@ -21,7 +21,7 @@ Tracing new processes... Hit Ctrl-C to end.
2121
22:30:02 PIDs/sec:
2222
^C
2323

24-
The output begins by showing a rate of new procesess over 120 per second.
24+
The output begins by showing a rate of new processes over 120 per second.
2525
That then ends at time 22:29:59, and for the next few seconds there are zero
2626
new processes per second.
2727

tools/ssllatency_example.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ can be more than 3x if adding more wrk connections. Keep using same
9393
workload for comparison.
9494

9595
libcrypto_mb.so is used instead of libcrypto.so, to batch process multiple
96-
async requets simultaniously by SIMD. As a result, wrk issued 2933 requests
96+
async requets simultaneously by SIMD. As a result, wrk issued 2933 requests
9797
in 1s. Failed SSL_do_handshake calls has doubled(5884), and successful
9898
calls(2941) returned quickly(51us). This is expected from async routines.
9999

0 commit comments

Comments
 (0)