* [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
[not found] <20260713013856.1743009-1-shijianlin11@foxmail.com>
@ 2026-07-13 2:49 ` Jianlin Shi
2026-07-14 8:36 ` Xu Kuohai
2026-07-15 9:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jianlin Shi @ 2026-07-13 2:49 UTC (permalink / raw)
To: bpf; +Cc: ast, daniel, andrii, linux-kernel
BPF_RB_OVERWRITE_POS is supported by bpf_ringbuf_query() but was missing
from the helper documentation. Add it to the flags list in both the
kernel UAPI header and its tools/ mirror.
Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
---
include/uapi/linux/bpf.h | 1 +
tools/include/uapi/linux/bpf.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index c8d400b76..fe2873f6c 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux/bpf.h
@@ -4664,6 +4664,7 @@ union bpf_attr {
* * **BPF_RB_RING_SIZE**: The size of ring buffer.
* * **BPF_RB_CONS_POS**: Consumer position (can wrap around).
* * **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
+ * * **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
*
* Data returned is just a momentary snapshot of actual values
* and could be inaccurate, so this facility should be used to
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 5e38b4887..7b024da3d 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -4664,6 +4664,7 @@ union bpf_attr {
* * **BPF_RB_RING_SIZE**: The size of ring buffer.
* * **BPF_RB_CONS_POS**: Consumer position (can wrap around).
* * **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
+ * * **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
*
* Data returned is just a momentary snapshot of actual values
* and could be inaccurate, so this facility should be used to
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
2026-07-13 2:49 ` [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query Jianlin Shi
@ 2026-07-14 8:36 ` Xu Kuohai
2026-07-15 9:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Xu Kuohai @ 2026-07-14 8:36 UTC (permalink / raw)
To: Jianlin Shi, bpf; +Cc: ast, daniel, andrii, linux-kernel
On 7/13/2026 10:49 AM, Jianlin Shi wrote:
> BPF_RB_OVERWRITE_POS is supported by bpf_ringbuf_query() but was missing
> from the helper documentation. Add it to the flags list in both the
> kernel UAPI header and its tools/ mirror.
>
> Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
> ---
> include/uapi/linux/bpf.h | 1 +
> tools/include/uapi/linux/bpf.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
> index c8d400b76..fe2873f6c 100644
> --- a/include/uapi/linux/bpf.h
> +++ b/include/uapi/linux/bpf.h
> @@ -4664,6 +4664,7 @@ union bpf_attr {
> * * **BPF_RB_RING_SIZE**: The size of ring buffer.
> * * **BPF_RB_CONS_POS**: Consumer position (can wrap around).
> * * **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
> + * * **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
> *
> * Data returned is just a momentary snapshot of actual values
> * and could be inaccurate, so this facility should be used to
> diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
> index 5e38b4887..7b024da3d 100644
> --- a/tools/include/uapi/linux/bpf.h
> +++ b/tools/include/uapi/linux/bpf.h
> @@ -4664,6 +4664,7 @@ union bpf_attr {
> * * **BPF_RB_RING_SIZE**: The size of ring buffer.
> * * **BPF_RB_CONS_POS**: Consumer position (can wrap around).
> * * **BPF_RB_PROD_POS**: Producer(s) position (can wrap around).
> + * * **BPF_RB_OVERWRITE_POS**: Overwrite position (can wrap around).
> *
> * Data returned is just a momentary snapshot of actual values
> * and could be inaccurate, so this facility should be used to
Thanks for updating the docs for this!
Acked-by: Xu Kuohai <xukuohai@huawei.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
2026-07-13 2:49 ` [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query Jianlin Shi
2026-07-14 8:36 ` Xu Kuohai
@ 2026-07-15 9:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-07-15 9:00 UTC (permalink / raw)
To: Jianlin Shi; +Cc: bpf, ast, daniel, andrii, linux-kernel
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Kumar Kartikeya Dwivedi <memxor@gmail.com>:
On Mon, 13 Jul 2026 10:49:01 +0800 you wrote:
> BPF_RB_OVERWRITE_POS is supported by bpf_ringbuf_query() but was missing
> from the helper documentation. Add it to the flags list in both the
> kernel UAPI header and its tools/ mirror.
>
> Signed-off-by: Jianlin Shi <shijianlin11@foxmail.com>
> ---
> include/uapi/linux/bpf.h | 1 +
> tools/include/uapi/linux/bpf.h | 1 +
> 2 files changed, 2 insertions(+)
Here is the summary with links:
- [v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query
https://git.kernel.org/bpf/bpf-next/c/f68df52fbad0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-15 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260713013856.1743009-1-shijianlin11@foxmail.com>
2026-07-13 2:49 ` [PATCH v2] docs: bpf: document BPF_RB_OVERWRITE_POS in bpf_ringbuf_query Jianlin Shi
2026-07-14 8:36 ` Xu Kuohai
2026-07-15 9:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox