aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/bpf.txt.const
diff options
context:
space:
mode:
authorPaul Chaignon <paul.chaignon@gmail.com>2023-11-07 21:11:31 +0100
committerAleksandr Nogikh <nogikh@google.com>2023-11-09 18:26:45 +0000
commiteb146eaf8a525cbaaf511a013d0dbb70bb1207b9 (patch)
tree55015bdf9bdfa59baca350b80a29176d68151784 /sys/linux/bpf.txt.const
parentec3b566eb26bbe8fa4cf8a9f8625712a21286bf7 (diff)
sys/linux: describe BPF helper bpf_ringbuf_output
This helper has the prototype: bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags) We need to prepare the second argument (R2) on the stack. We use an 8 bytes data value initialized to some random value on the stack and pointed to by R2. The third argument therefore needs to be 8 (for 8 bytes). Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
-rw-r--r--sys/linux/bpf.txt.const1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const
index 154f11b67..53cfb9bd7 100644
--- a/sys/linux/bpf.txt.const
+++ b/sys/linux/bpf.txt.const
@@ -66,6 +66,7 @@ BPF_EXIST = 2
BPF_EXIT0 = 9
BPF_FLOW_DISSECTOR = 17
BPF_FUNC_INFO_SIZE = 8
+BPF_FUNC_ringbuf_output = 130
BPF_FUNC_ringbuf_discard = 133
BPF_FUNC_ringbuf_reserve = 131
BPF_FUNC_ringbuf_submit = 132