Skip to content

Commit

Permalink
bpftool: fix some typos in bpftool
Browse files Browse the repository at this point in the history
Hi, fix some spelling errors in bpftool, the details are as follows:

-in file "bpftool-gen.rst"
	libppf->libbpf
-in the code comments:
	ouptut->output

Signed-off-by: Lin Yikai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
  • Loading branch information
Lin Yikai authored and qmonnet committed Oct 10, 2024
1 parent 6ffd3af commit f09e341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/bpftool-gen.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ bpftool gen skeleton *FILE*

- **example__load**.
This function creates maps, loads and verifies BPF programs, initializes
global data maps. It corresponds to libppf's **bpf_object__load**\ ()
global data maps. It corresponds to libbpf's **bpf_object__load**\ ()
API.

- **example__open_and_load** combines **example__open** and
Expand Down
10 changes: 5 additions & 5 deletions src/feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ static void probe_unprivileged_disabled(void)
{
long res;

/* No support for C-style ouptut */
/* No support for C-style output */

res = read_procfs("/proc/sys/kernel/unprivileged_bpf_disabled");
if (json_output) {
Expand Down Expand Up @@ -225,7 +225,7 @@ static void probe_jit_enable(void)
{
long res;

/* No support for C-style ouptut */
/* No support for C-style output */

res = read_procfs("/proc/sys/net/core/bpf_jit_enable");
if (json_output) {
Expand Down Expand Up @@ -255,7 +255,7 @@ static void probe_jit_harden(void)
{
long res;

/* No support for C-style ouptut */
/* No support for C-style output */

res = read_procfs("/proc/sys/net/core/bpf_jit_harden");
if (json_output) {
Expand Down Expand Up @@ -285,7 +285,7 @@ static void probe_jit_kallsyms(void)
{
long res;

/* No support for C-style ouptut */
/* No support for C-style output */

res = read_procfs("/proc/sys/net/core/bpf_jit_kallsyms");
if (json_output) {
Expand All @@ -311,7 +311,7 @@ static void probe_jit_limit(void)
{
long res;

/* No support for C-style ouptut */
/* No support for C-style output */

res = read_procfs("/proc/sys/net/core/bpf_jit_limit");
if (json_output) {
Expand Down

0 comments on commit f09e341

Please sign in to comment.