Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix typos in selftest/bpf files

Run spell checker on files in selftest/bpf and fixed typos.

Signed-off-by: Taichi Nishimura <awkrail01@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/bpf/20230216085537.519062-1-awkrail01@gmail.com

authored by

Taichi Nishimura and committed by
Andrii Nakryiko
df71a42c c5a237a4

+13 -13
+1 -1
tools/testing/selftests/bpf/prog_tests/migrate_reuseport.c
··· 488 488 goto close_servers; 489 489 } 490 490 491 - /* Tie requests to the first four listners */ 491 + /* Tie requests to the first four listeners */ 492 492 err = start_clients(test_case); 493 493 if (!ASSERT_OK(err, "start_clients")) 494 494 goto close_clients;
+1 -1
tools/testing/selftests/bpf/prog_tests/trampoline_count.c
··· 79 79 if (!ASSERT_EQ(link, NULL, "ptr_is_null")) 80 80 goto cleanup; 81 81 82 - /* and finaly execute the probe */ 82 + /* and finally execute the probe */ 83 83 prog_fd = bpf_program__fd(prog); 84 84 if (!ASSERT_GE(prog_fd, 0, "bpf_program__fd")) 85 85 goto cleanup;
+1 -1
tools/testing/selftests/bpf/progs/btf_dump_test_case_syntax.c
··· 84 84 * typedef int (*fn_t)(int); 85 85 * typedef char * const * (*fn_ptr2_t)(s_t, fn_t); 86 86 * 87 - * - `fn_complext_t`: pointer to a function returning struct and accepting 87 + * - `fn_complex_t`: pointer to a function returning struct and accepting 88 88 * union and struct. All structs and enum are anonymous and defined inline. 89 89 * 90 90 * - `signal_t: pointer to a function accepting a pointer to a function as an
+1 -1
tools/testing/selftests/bpf/progs/dynptr_fail.c
··· 630 630 } 631 631 632 632 /* Test that releasing a dynptr twice, where one of the releases happens 633 - * within a calback function, fails 633 + * within a callback function, fails 634 634 */ 635 635 SEC("?raw_tp") 636 636 __failure __msg("arg 1 is an unacquired reference")
+1 -1
tools/testing/selftests/bpf/progs/strobemeta.h
··· 135 135 * tpidr_el0 for aarch64). 136 136 * TLS_IMM_EXEC: absolute address of GOT entry containing offset 137 137 * from thread pointer; 138 - * TLS_GENERAL_DYN: absolute addres of double GOT entry 138 + * TLS_GENERAL_DYN: absolute address of double GOT entry 139 139 * containing tls_index_t struct; 140 140 */ 141 141 int64_t offset;
+3 -3
tools/testing/selftests/bpf/progs/test_cls_redirect.c
··· 600 600 return TC_ACT_SHOT; 601 601 } 602 602 603 - /* Skip the remainig next hops (may be zero). */ 603 + /* Skip the remaining next hops (may be zero). */ 604 604 return skip_next_hops(pkt, encap->unigue.hop_count - 605 605 encap->unigue.next_hop - 1); 606 606 } ··· 610 610 * 611 611 * fill_tuple(&t, foo, sizeof(struct iphdr), 123, 321) 612 612 * 613 - * clang will substitue a costant for sizeof, which allows the verifier 614 - * to track it's value. Based on this, it can figure out the constant 613 + * clang will substitute a constant for sizeof, which allows the verifier 614 + * to track its value. Based on this, it can figure out the constant 615 615 * return value, and calling code works while still being "generic" to 616 616 * IPv4 and IPv6. 617 617 */
+1 -1
tools/testing/selftests/bpf/progs/test_subprogs.c
··· 47 47 return sub1(v) - 1; /* compensates sub1()'s + 1 */ 48 48 } 49 49 50 - /* unfortunately verifier rejects `struct task_struct *t` as an unkown pointer 50 + /* unfortunately verifier rejects `struct task_struct *t` as an unknown pointer 51 51 * type, so we need to accept pointer as integer and then cast it inside the 52 52 * function 53 53 */
+1 -1
tools/testing/selftests/bpf/progs/test_xdp_vlan.c
··· 98 98 return true; 99 99 } 100 100 101 - /* Hint, VLANs are choosen to hit network-byte-order issues */ 101 + /* Hint, VLANs are chosen to hit network-byte-order issues */ 102 102 #define TESTVLAN 4011 /* 0xFAB */ 103 103 // #define TO_VLAN 4000 /* 0xFA0 (hint 0xOA0 = 160) */ 104 104
+1 -1
tools/testing/selftests/bpf/test_cpp.cpp
··· 91 91 92 92 skel.detach(); 93 93 94 - /* destructor will destory underlying skeleton */ 94 + /* destructor will destroy underlying skeleton */ 95 95 } 96 96 97 97 int main(int argc, char *argv[])
+2 -2
tools/testing/selftests/bpf/veristat.c
··· 144 144 struct verif_stats *prog_stats; 145 145 int prog_stat_cnt; 146 146 147 - /* baseline_stats is allocated and used only in comparsion mode */ 147 + /* baseline_stats is allocated and used only in comparison mode */ 148 148 struct verif_stats *baseline_stats; 149 149 int baseline_stat_cnt; 150 150 ··· 882 882 * that BPF object file is incomplete and has to be statically 883 883 * linked into a final BPF object file; instead of bailing 884 884 * out, report it into stderr, mark it as skipped, and 885 - * proceeed 885 + * proceed 886 886 */ 887 887 fprintf(stderr, "Failed to open '%s': %d\n", filename, -errno); 888 888 env.files_skipped++;