2025-01-29 18:39 UTC+0100 ~ Mauro Carvalho Chehab
> Modern Python versions complain about usage of "\" inside normal
> strings, as they should use r-string notation.
>
> Change the annotations there to avoid such warnings:
>
> tools/testing/selftests/bpf/test_bpftool_synctypes.py:319:
> S
t_stackid(): Add a note about PERF_MAX_STACK_DEPTH being
configurable.
Cc: Alexei Starovoitov
Signed-off-by: Quentin Monnet
Acked-by: Alexei Starovoitov
---
include/uapi/linux/bpf.h | 254 +++
1 file changed, 254 insertions(+)
diff --git a/include
e description of BPF_F_INGRESS flag.
Cc: Alexei Starovoitov
Signed-off-by: Quentin Monnet
Acked-by: Alexei Starovoitov
---
include/uapi/linux/bpf.h | 230 +++
1 file changed, 230 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/
Update tools/include/uapi/linux/bpf.h file in order to reflect the
changes for BPF helper functions documentation introduced in previous
commits.
Signed-off-by: Quentin Monnet
---
tools/include/uapi/linux/bpf.h | 1776 +++-
1 file changed, 1380 insertions
versions).
Cc: Nikita V. Shirokov
Cc: Eyal Birger
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 30 ++
1 file changed, 30 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 335ac427d43b..3b91e22f68c1 100644
--- a
sper Dangaard Brouer
Cc: John Fastabend
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 147 +++
1 file changed, 147 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 9fe008dd51e7..335ac427d43b 100644
---
e that the helper is not restricted to
programs attached to sockets.
- bpf_skb_adjust_room(): Clarify comment about invalidated verifier
checks.
- bpf_xdp_adjust_meta(): Clarify comment about invalidated verifier
checks.
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
Acked-by
description. Remove occurences of "cores" to avoid confusion with
"CPU".
- bpf_bind(): Remove last paragraph of description, which was off topic.
Cc: Lawrence Brakmo
Cc: Yonghong Song
Cc: Josef Bacik
Cc: Andrey Ignatov
Signed-off-by: Quentin Monnet
Acked-by:
Martin KaFai Lau
Cc: Sargun Dhillon
Cc: Thomas Graf
Cc: Gianluca Borello
Cc: Chenbo Feng
Signed-off-by: Quentin Monnet
Acked-by: Alexei Starovoitov
Acked-by: Martin KaFai Lau
[for bpf_skb_under_cgroup(), bpf_xdp_adjust_head()]
---
include/uapi/linux/bpf.h | 172 ++
page header text.
- Move and fix comment on helpers introducing no overhead.
- Remove "NOTES" section from man page footer.
- Add "LICENSE" section to man page footer.
- Edit description of file include/uapi/linux/bpf.h in man page footer.
Signed-off-by: Quentin Monn
g a task in net_cls controller disables cgroup-bpf.
- bpf_get_route_realm(): State that CONFIG_CGROUP_NET_CLASSID is
required to use this helper.
- bpf_skb_load_bytes(): Fix comment on current use cases for the helper.
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
Acked-by: Alexei Starovoitov
mment on top of the description list to explain how this
documentation is supposed to be processed.
- Update Python script accordingly (remove the same sections, and remove
paragraphs on program types and GPL restrictions from man page
header).
- Split series into several patches.
Cc: linux-doc@vge
2018-04-19 13:16 UTC+0200 ~ Daniel Borkmann
> On 04/17/2018 04:34 PM, Quentin Monnet wrote:
>> Add documentation for eBPF helper functions to bpf.h user header file.
>> This documentation can be parsed with the Python script provided in
>> another commit of the patch series,
2018-04-18 17:43 UTC+0200 ~ Jesper Dangaard Brouer
> On Wed, 18 Apr 2018 15:09:41 +0100
> Quentin Monnet wrote:
>
>> 2018-04-18 15:34 UTC+0200 ~ Jesper Dangaard Brouer
>>> On Tue, 17 Apr 2018 15:34:38 +0100
>>> Quentin Monnet wrote:
>>>
>>&g
2018-04-18 15:34 UTC+0200 ~ Jesper Dangaard Brouer
> On Tue, 17 Apr 2018 15:34:38 +0100
> Quentin Monnet wrote:
>
>> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
>> index 350459c583de..3d329538498f 100644
>> --- a/include/uapi/linux/bpf.h
>&g
emove last paragraph of description, which was off topic.
Cc: Lawrence Brakmo
Cc: Yonghong Song
Cc: Josef Bacik
Cc: Andrey Ignatov
Signed-off-by: Quentin Monnet
fix patch 7: Yonghong and Andrey
---
include/uapi/linux/bpf.h | 178 +++
1 file cha
. Remove occurences of "cores" to avoid confusion with
"CPU".
Cc: Kaixu Xia
Cc: Martin KaFai Lau
Cc: Sargun Dhillon
Cc: Thomas Graf
Cc: Gianluca Borello
Cc: Chenbo Feng
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 158 +++
.
Cc: Jesper Dangaard Brouer
Cc: John Fastabend
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 140 +++
1 file changed, 140 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 350459c583de..3d329538498f
()
- bpf_get_numa_node_id()
- bpf_set_hash()
- bpf_skb_adjust_room()
- bpf_xdp_adjust_meta()
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 155 +++
1 file changed, 155 insertions(+)
diff --git a/include/uapi/linux/bpf.h b
: Quentin Monnet
---
include/uapi/linux/bpf.h | 210 +++
1 file changed, 210 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 45f77f01e672..02b7d522b3c0 100644
--- a/include/uapi/linux/bpf.h
+++ b/include/uapi/linux
s" in man page header text.
- Move and fix comment on helpers introducing no overhead.
- Remove "NOTES" section from man page footer.
- Add "LICENSE" section to man page footer.
- Edit description of file include/uapi/linux/bpf.h in
.
- bpf_perf_event_output(): Fix first sentence of description. Delete
wrong statement on context being evaluated as a struct pt_reg. Remove
the long yet incomplete example.
- bpf_get_stackid(): Add a note about PERF_MAX_STACK_DEPTH being
configurable.
Cc: Alexei Starovoitov
Signed-off-by: Quentin Monnet
(): State that CONFIG_CGROUP_NET_CLASSID is
required to use this helper.
- bpf_skb_load_bytes(): Fix comment on current use cases for the helper.
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 152 +++
1 file changed
essed.
- Update Python script accordingly (remove the same sections, and remove
paragraphs on program types and GPL restrictions from man page
header).
- Split series into several patches.
Cc: linux-doc@vger.kernel.org
Cc: linux-...@vger.kernel.org
Quentin Monnet (8):
bpf: add script and
2018-04-12 17:28 UTC-0700 ~ Alexei Starovoitov
> On Tue, Apr 10, 2018 at 03:41:53PM +0100, Quentin Monnet wrote:
>> Add documentation for eBPF helper functions to bpf.h user header file.
>> This documentation can be parsed with the Python script provided in
>> another commi
2018-04-11 16:44 UTC+0100 ~ Quentin Monnet
> 2018-04-10 09:58 UTC-0700 ~ Yonghong Song
>> On 4/10/18 7:41 AM, Quentin Monnet wrote:
>>> Add documentation for eBPF helper functions to bpf.h user header file.
>>> This documentation can be parsed with the Python scr
2018-04-11 12:17 UTC+0200 ~ Jesper Dangaard Brouer
> On Tue, 10 Apr 2018 15:41:57 +0100
> Quentin Monnet wrote:
>
>> diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
>> index 7343af4196c8..db090ad03626 100644
>> --- a/include/uapi/linux/bpf.h
>&g
2018-04-10 10:50 UTC-0700 ~ Andrey Ignatov
> Quentin Monnet [Tue, 2018-04-10 07:43 -0700]:
>> + * int bpf_bind(struct bpf_sock_addr_kern *ctx, struct sockaddr *addr, int
>> addr_len)
>> + * Description
>> + * Bind the socket associated to *ctx
2018-04-10 09:58 UTC-0700 ~ Yonghong Song
> On 4/10/18 7:41 AM, Quentin Monnet wrote:
>> Add documentation for eBPF helper functions to bpf.h user header file.
>> This documentation can be parsed with the Python script provided in
>> another commit of the patch series, in o
2018-04-10 15:43 UTC-0700 ~ Alexei Starovoitov
> On Tue, Apr 10, 2018 at 03:41:52PM +0100, Quentin Monnet wrote:
>> Add documentation for eBPF helper functions to bpf.h user header file.
>> This documentation can be parsed with the Python script provided in
>> another commi
2018-04-10 10:56 UTC-0700 ~ Alexei Starovoitov
> On Tue, Apr 10, 2018 at 03:41:51PM +0100, Quentin Monnet wrote:
>> Add documentation for eBPF helper functions to bpf.h user header file.
>> This documentation can be parsed with the Python script provided in
>> another commi
2018-04-10 11:16 UTC-0700 ~ Alexei Starovoitov
> On Tue, Apr 10, 2018 at 03:41:50PM +0100, Quentin Monnet wrote:
>> Remove previous "overview" of eBPF helpers from user bpf.h header.
>> Replace it by a comment explaining how to process the new documentation
>> (to
()
- bpf_skb_load_bytes()
- bpf_csum_diff()
- bpf_skb_get_tunnel_opt()
- bpf_skb_set_tunnel_opt()
- bpf_skb_change_proto()
- bpf_skb_change_type()
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 125 +++
1 file changed, 125 insertions
()
- bpf_skb_get_tunnel_key()
- bpf_skb_set_tunnel_key()
- bpf_redirect()
- bpf_perf_event_output()
- bpf_get_stackid()
- bpf_get_current_task()
Cc: Alexei Starovoitov
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 237 +++
1 file changed
documentation is supposed to be processed.
- Update Python script accordingly (remove the same sections, and remove
paragraphs on program types and GPL restrictions from man page
header).
- Split series into several patches.
Cc: linux-doc@vger.kernel.org
Cc: linux-...@vger.kernel.org
Signed-
()
- bpf_trace_printk()
- bpf_skb_store_bytes()
- bpf_l3_csum_replace()
- bpf_l4_csum_replace()
- bpf_tail_call()
- bpf_clone_redirect()
Cc: Alexei Starovoitov
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 199 +++
1 file changed, 199 insertions
()
- bpf_msg_cork_bytes()
- bpf_msg_pull_data()
Cc: John Fastabend
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 140 +++
1 file changed, 140 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index 7343af4196c8
not available directly in the header files
(pre-processor directives are used to produce them at the beginning of
the compilation process).
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 406 ++--
scripts/bpf_helpers_doc.py | 414
Borello
Cc: Chenbo Feng
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 158 +++
1 file changed, 158 insertions(+)
diff --git a/include/uapi/linux/bpf.h b/include/uapi/linux/bpf.h
index af429ec79f50..15d9ccafebbe 100644
--- a/include/uapi
()
- bpf_get_numa_node_id()
- bpf_set_hash()
- bpf_skb_adjust_room()
- bpf_xdp_adjust_meta()
Cc: Daniel Borkmann
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 155 +++
1 file changed, 155 insertions(+)
diff --git a/include/uapi/linux/bpf.h b
()
- bpf_perf_prog_read_value()
Helper from Josef:
- bpf_override_return()
Helper from Andrey:
- bpf_bind()
Cc: Lawrence Brakmo
Cc: Yonghong Song
Cc: Josef Bacik
Cc: Andrey Ignatov
Signed-off-by: Quentin Monnet
---
include/uapi/linux/bpf.h | 184
2018-04-09 18:47 UTC-0700 ~ Alexei Starovoitov
> On Mon, Apr 09, 2018 at 02:25:26PM +0100, Quentin Monnet wrote:
>>
>> Anyway, I am fine with keeping just signatures, descriptions and return
>> values for now. I will submit a new version with only those items.
>
> Tha
2018-04-09 12:52 UTC+0200 ~ Markus Heiser
>
>> Am 09.04.2018 um 12:08 schrieb Daniel Borkmann :
> [...]
>
>>> May I completely misunderstood you, so correct my if I'am wrong:
>>>
>>> - ./scripts/bpf_helpers_doc.py : produces reST markup from C-comments
>>> - ./scripts/kerne-doc : produc
2018-04-09 11:01 UTC+0200 ~ Daniel Borkmann
> On 04/06/2018 01:11 PM, Quentin Monnet wrote:
>> eBPF helper functions can be called from within eBPF programs to perform
>> a variety of tasks that would be otherwise hard or impossible to do with
>> eBPF itself. There is a g
44 matches
Mail list logo