diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-11-07 12:53:57 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-11-09 18:26:45 +0000 |
| commit | b642300f6a70aa7ee47406afa523da855fee4e59 (patch) | |
| tree | 6c37b678c4ea3c84cfcfa1b547425327e5776bb3 /sys/linux/bpf.txt | |
| parent | 44a9f04e7f0a741a7e9e72387809ae1fdf6b2a4e (diff) | |
sys/linux: describe call to BPF helper bpf_ringbuf_discard
Including this helper call in our descriptions is trivial since it takes
the same arguments and returns the same (void) as the already described
bpf_ringbuf_submit helper call.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt')
| -rw-r--r-- | sys/linux/bpf.txt | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/linux/bpf.txt b/sys/linux/bpf.txt index 14a787782..1b1b455d3 100644 --- a/sys/linux/bpf.txt +++ b/sys/linux/bpf.txt @@ -401,7 +401,7 @@ bpf_program_ringbuf { reserve bpf_insn_ringbuf_reserve null_check bpf_insn_null_check[BPF_REG_9] body array[bpf_insn] - free bpf_insn_ringbuf_submit + free bpf_insn_ringbuf_free exit bpf_insn_exit } [packed] @@ -774,15 +774,17 @@ bpf_insn_ringbuf_reserve { # (bf) r1 = r9 # (b7) r2 = 0 -# (85) call bpf_ringbuf_submit#322192 +# (85) call bpf_ringbuf_{submit,discard}#322192 # (bf) r0 = 0 -bpf_insn_ringbuf_submit { +bpf_insn_ringbuf_free { insn1 bpf_insn_mov_reg[BPF_REG_9, BPF_REG_1] insn2 bpf_insn_mov_imm[BPF_REG_2, 0] - insn3 bpf_insn_call_helper_t[const[BPF_FUNC_ringbuf_submit, int32]] + insn3 bpf_insn_call_helper_t[flags[bpf_helpers_ringbuf_free, int32]] insn4 bpf_insn_mov_imm[BPF_REG_0, 0] } +bpf_helpers_ringbuf_free = BPF_FUNC_ringbuf_submit, BPF_FUNC_ringbuf_discard + define MAX_BPF_REG __MAX_BPF_REG bpf_obj_pin_map [ |
