authorgravatar for karl.bohlmark@gmail.comKarl Böhlmark <karl.bohlmark@gmail.com> 2024-01-03 11:34:10+01:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-01-03 12:34:10+02:00
log9a56228c2b90d94d01bb76784c77fdec5710cf0a
tree87610ddc08424b41303fed8cb80b1b6a271ed24f
parentd03649ec2f42c6b967f7113e78aa137de5384c1a
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

doc: Fix typos in bpf docs


1 files changed, 8 insertions(+), 8 deletions(-)

lib/std/os/linux/bpf.zig+8-8
......@@ -140,9 +140,9 @@ pub const F_REPLACE = 0x4;
140140pub const F_STRICT_ALIGNMENT = 0x1;
141141
142142/// If BPF_F_ANY_ALIGNMENT is used in BPF_PROF_LOAD command, the verifier will
143/// allow any alignment whatsoever. On platforms with strict alignment
143/// allow any alignment whatsoever. On platforms with strict alignment
144144/// requirements for loads ands stores (such as sparc and mips) the verifier
145/// validates that all loads and stores provably follow this requirement. This
145/// validates that all loads and stores provably follow this requirement. This
146146/// flag turns that checking and enforcement off.
147147///
148148/// It is mostly used for testing when we want to validate the context and
......@@ -163,7 +163,7 @@ pub const F_ANY_ALIGNMENT = 0x2;
163163///
164164/// So, this flag is introduced. Once it is set, verifier will randomize high
165165/// 32-bit for those instructions who has been identified as safe to ignore
166/// them. Then, if verifier is not doing correct analysis, such randomization
166/// them. Then, if verifier is not doing correct analysis, such randomization
167167/// will regress tests to expose bugs.
168168pub const F_TEST_RND_HI32 = 0x4;
169169
......@@ -206,7 +206,7 @@ pub const BPF_F_NO_PREALLOC = 0x1;
206206
207207/// flag for BPF_MAP_CREATE command. Instead of having one common LRU list in
208208/// the BPF_MAP_TYPE_LRU_[PERCPU_]HASH map, use a percpu LRU list which can
209/// scale and perform better. Note, the LRU nodes (including free nodes) cannot
209/// scale and perform better. Note, the LRU nodes (including free nodes) cannot
210210/// be moved across different LRU lists.
211211pub const BPF_F_NO_COMMON_LRU = 0x2;
212212
......@@ -860,7 +860,7 @@ test "opcodes" {
860860}
861861
862862pub const Cmd = enum(usize) {
863 /// Create a map and return a file descriptor that refers to the map. The
863 /// Create a map and return a file descriptor that refers to the map. The
864864 /// close-on-exec file descriptor flag is automatically enabled for the new
865865 /// file descriptor.
866866 ///
......@@ -887,7 +887,7 @@ pub const Cmd = enum(usize) {
887887 map_get_next_key,
888888
889889 /// Verify and load an eBPF program, returning a new file descriptor
890 /// associated with the program. The close-on-exec file descriptor flag
890 /// associated with the program. The close-on-exec file descriptor flag
891891 /// is automatically enabled for the new file descriptor.
892892 ///
893893 /// uses ProgLoadAttr
......@@ -1027,9 +1027,9 @@ pub const MapType = enum(u32) {
10271027 /// memory and can be submitted with commit() or discarded with
10281028 /// discard()
10291029 ///
1030 /// ringbuf_output() will incurr an extra memory copy, but allows to submit
1030 /// ringbuf_output() will incur an extra memory copy, but allows to submit
10311031 /// records of the length that's not known beforehand, and is an easy
1032 /// replacement for perf_event_outptu().
1032 /// replacement for perf_event_output().
10331033 ///
10341034 /// ringbuf_reserve() avoids the extra memory copy but requires a known size
10351035 /// of memory beforehand.