diff options
| author | Paul Chaignon <paul.chaignon@gmail.com> | 2023-11-07 22:55:21 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-11-09 18:26:45 +0000 |
| commit | d101c824dacdc6a2bc7d75eff07106452e71c5dc (patch) | |
| tree | 3dc6bcb9b563c294ae43993a9b36a8c0d47e36b1 /sys/linux/bpf.txt.const | |
| parent | eb146eaf8a525cbaaf511a013d0dbb70bb1207b9 (diff) | |
sys/linux: add BPF_RB_* flags for ringbuf helpers
BPF helpers bpf_ringbuf_{discard,submit,output} take a set of flags.
This commit describes those flags.
The default is a zero value, but the kernel doesn't have a macro for
that. Thus, "0" is simply added to the flag definition.
Note bpf_ringbuf_reserve also has a flags argument, but it is currently
unused on the kernel side.
Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Diffstat (limited to 'sys/linux/bpf.txt.const')
| -rw-r--r-- | sys/linux/bpf.txt.const | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/linux/bpf.txt.const b/sys/linux/bpf.txt.const index 53cfb9bd7..6ce73ca73 100644 --- a/sys/linux/bpf.txt.const +++ b/sys/linux/bpf.txt.const @@ -66,11 +66,11 @@ 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_output = 130 +BPF_FUNC_ringbuf_query = 134 BPF_FUNC_ringbuf_reserve = 131 BPF_FUNC_ringbuf_submit = 132 -BPF_FUNC_ringbuf_query = 134 BPF_FUNC_snprintf = 165 BPF_FUNC_tail_call = 12 BPF_FUNC_trace_printk = 6 @@ -249,6 +249,8 @@ BPF_PSEUDO_MAP_FD = 1 BPF_PSEUDO_MAP_IDX = 5 BPF_PSEUDO_MAP_IDX_VALUE = 6 BPF_PSEUDO_MAP_VALUE = 2 +BPF_RB_FORCE_WAKEUP = 2 +BPF_RB_NO_WAKEUP = 1 BPF_REG_0 = 0 BPF_REG_1 = 1 BPF_REG_10 = 10 |
