Skip to content

Commit

Permalink
fix some typos (bpftrace#2251)
Browse files Browse the repository at this point in the history
Signed-off-by: cuishuang <imcusg@gmail.com>
  • Loading branch information
cuishuang authored Jun 2, 2022
1 parent 44a4b61 commit bcfe39d
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion cmake/embed/embed_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function(fetch_patches patchName patchPath patchURL patchChecksum stripLevel)
if(patchName MATCHES .*tar.*)
execute_process(COMMAND tar -xpf ${patchPath}/${patchName} --strip-components=${stripLevel} -C ${patchPath})
else()
message("Patch ${patchName} doesn't appear to a tar achive, assuming it is a plaintext patch")
message("Patch ${patchName} doesn't appear to a tar archive, assuming it is a plaintext patch")
endif()
endif()
endfunction(fetch_patches patchName patchPatch patchURL patchChecksum)
2 changes: 1 addition & 1 deletion src/ast/ast.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class VisitorBase;
#define DEFINE_ACCEPT void accept(VisitorBase &v) override;

/**
* Copy the node but leave all it's child members uninitialized, effecitvely
* Copy the node but leave all it's child members uninitialized, effectively
* turning it into a leaf node
*/
#define DEFINE_LEAFCOPY(T) \
Expand Down
2 changes: 1 addition & 1 deletion src/ast/attachpoint_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ AttachPointParser::State AttachPointParser::lex_attachpoint(
}
else if (!in_quotes && raw[idx] == '$')
{
// There's an assumption that the positional paramter is well
// There's an assumption that the positional parameter is well
// formed. ie we are not expecting a bare `$` or `$nonint`. The
// bison parser should have guaranteed this.
size_t i = idx + 1;
Expand Down
4 changes: 2 additions & 2 deletions src/ast/passes/codegen_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1219,7 +1219,7 @@ void CodegenLLVM::binop_int(Binop &binop)
// If left or right is PositionalParameter, that means the syntax is
// str($1 + num) or str(num + $1). The positional params returns a pointer
// to a buffer, and the buffer should live untill str() is accepted.
// Extend the liftime of the buffer
// Extend the lifetime of the buffer
if (dynamic_cast<PositionalParameter *>(binop.left))
expr_deleter_ = scoped_del_left.disarm();
if (dynamic_cast<PositionalParameter *>(binop.right))
Expand Down Expand Up @@ -1444,7 +1444,7 @@ void CodegenLLVM::unop_int(Unop &unop)
expr_ = b_.CreateICmpEQ(expr_, zero_value);
// CreateICmpEQ() returns 1-bit integer
// Cast it to the same type of the operand
// Use unsigned extention, otherwise !0 becomes -1
// Use unsigned extension, otherwise !0 becomes -1
expr_ = b_.CreateIntCast(expr_, ty, false);
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Map::Map(const std::string &name,
// bpf_get_stack() to write into. Using the stack directly wouldn't work well
// b/c it would take too much stack space.
//
// The temporary fix is to bump the map size to 128K. Any futher bumps should
// The temporary fix is to bump the map size to 128K. Any further bumps should
// warrant consideration of the previous paragraph.
Map::Map(const SizedType &type) : IMap(type)
{
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ endif(STATIC_LINKING)
# Still need to support vendored gtest/gmock b/c old ubuntu versions (< focal)
# only provide gtest/gmock sources -- no precompiled binaries
if(VENDOR_GTEST)
# Ninja build system needs the byproducts set explicilty so it can
# Ninja build system needs the byproducts set explicitly so it can
# check for missing dependencies.
# https://cmake.org/pipermail/cmake/2015-April/060234.html
set(gtest_byproducts
Expand Down
2 changes: 1 addition & 1 deletion tests/memleak-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ done
echo "${GREEN}[==========]"

if [ $result -eq 0 ]; then
echo "${GREEN}[ PASSED ]${NC} All tests were succesful"
echo "${GREEN}[ PASSED ]${NC} All tests were successful"
else
echo "${RED}[ FAILED ]${NC} Memory leaks detected"
fi
Expand Down
2 changes: 1 addition & 1 deletion tests/runtime/engine/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def main(test_filter, run_aot_tests):
parser.add_argument('--filter', dest='tests_filter',
help='filter runtime tests')
parser.add_argument('--run-aot-tests', action='store_true',
help='Run ahead-of-time compliation tests. Note this would roughly double test time.')
help='Run ahead-of-time compilation tests. Note this would roughly double test time.')

args = parser.parse_args()

Expand Down
2 changes: 1 addition & 1 deletion tests/testprogs/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ int gen_nanosleep(int argc, char *argv[])
sscanf(arg, "%le%c", &time, &tail);
if (tail != '\0')
{
printf("Argument '%s' should only contain numerial charactors\n", arg);
printf("Argument '%s' should only contain numerial characters\n", arg);
return 1;
}
// if time is less than 1 nsec, round up to 1 nsec, as with sleep command
Expand Down
2 changes: 1 addition & 1 deletion tools/capable.bt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bpftrace
/*
* capable Trace security capabilitiy checks (cap_capable()).
* capable Trace security capability checks (cap_capable()).
* For Linux, uses bpftrace and eBPF.
*
* USAGE: capable.bt
Expand Down
2 changes: 1 addition & 1 deletion tools/pidpersec.bt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bpftrace
/*
* pidpersec Count new procesess (via fork).
* pidpersec Count new processes (via fork).
* For Linux, uses bpftrace and eBPF.
*
* Written as a basic example of counting on an event.
Expand Down
4 changes: 2 additions & 2 deletions tools/pidpersec_example.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Demonstrations of pidpersec, the Linux bpftrace/eBPF version.


Tracing new procesess:
Tracing new processes:

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

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

Expand Down
2 changes: 1 addition & 1 deletion tools/ssllatency_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ can be more than 3x if adding more wrk connections. Keep using same
workload for comparison.

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

Expand Down

0 comments on commit bcfe39d

Please sign in to comment.