bpf: fix definition of bpf_ringbuf_output() helper in UAPI comments
Subsystems (3)
PATCH 1/1 bpf: fix definition of bpf_ringbuf_output() helper in UAPI comments
Fix definition of bpf_ringbuf_output() in UAPI header comments, which is used to generate libbpf's bpf_helper_defs.h header. Return value is a number (erro code), not a pointer.
Fixes 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it")
Signed-off-by Andrii Nakryiko <[email protected]>
--- include/uapi/linux/bpf.h | 2 +- tools/include/uapi/linux/bpf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/bpf.h +1 -1
@@ -3168,7 +3168,7 @@ union bpf_attr {* Return * The id is returned or 0 in case the id could not be retrieved. * -* void *bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags) +* int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags) * Description * Copy *size* bytes from *data* into a ring buffer *ringbuf*. * If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of
tools/include/uapi/linux/bpf.h +1 -1
@@ -3168,7 +3168,7 @@ union bpf_attr {* Return * The id is returned or 0 in case the id could not be retrieved. * -* void *bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags) +* int bpf_ringbuf_output(void *ringbuf, void *data, u64 size, u64 flags) * Description * Copy *size* bytes from *data* into a ring buffer *ringbuf*. * If BPF_RB_NO_WAKEUP is specified in *flags*, no notification of
Signature · 1 line
2.24.1
Quoted 6 lines · Andrii Nakryiko
Fix definition of
bpf_ringbuf_output()in UAPI header comments, which is used to generate libbpf'sbpf_helper_defs.hheader. Return value is a number (erro code), not a pointer.Fixes 457f44363a88 ("bpf: Implement BPF ring buffer and verifier support for it")Signed-off-by Andrii Nakryiko <[email protected]>
Applied, thanks!