Commit 98870605 authored by Geliang Tang's avatar Geliang Tang Committed by Alexei Starovoitov

bpf: Sync comments for bpf_get_stack

Commit ee2a0988 missed updating the comments for helper bpf_get_stack
in tools/include/uapi/linux/bpf.h. Sync it.

Fixes: ee2a0988 ("bpf: Adjust BPF stack helper functions to accommodate skip > 0")
Signed-off-by: default avatarGeliang Tang <geliang.tang@suse.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/ce54617746b7ed5e9ba3b844e55e74cb8a60e0b5.1648110794.git.geliang.tang@suse.com
parent 76db1784
...@@ -3009,8 +3009,8 @@ union bpf_attr { ...@@ -3009,8 +3009,8 @@ union bpf_attr {
* *
* # sysctl kernel.perf_event_max_stack=<new value> * # sysctl kernel.perf_event_max_stack=<new value>
* Return * Return
* A non-negative value equal to or less than *size* on success, * The non-negative copied *buf* length equal to or less than
* or a negative error in case of failure. * *size* on success, or a negative error in case of failure.
* *
* long bpf_skb_load_bytes_relative(const void *skb, u32 offset, void *to, u32 len, u32 start_header) * long bpf_skb_load_bytes_relative(const void *skb, u32 offset, void *to, u32 len, u32 start_header)
* Description * Description
...@@ -4316,8 +4316,8 @@ union bpf_attr { ...@@ -4316,8 +4316,8 @@ union bpf_attr {
* *
* # sysctl kernel.perf_event_max_stack=<new value> * # sysctl kernel.perf_event_max_stack=<new value>
* Return * Return
* A non-negative value equal to or less than *size* on success, * The non-negative copied *buf* length equal to or less than
* or a negative error in case of failure. * *size* on success, or a negative error in case of failure.
* *
* long bpf_load_hdr_opt(struct bpf_sock_ops *skops, void *searchby_res, u32 len, u64 flags) * long bpf_load_hdr_opt(struct bpf_sock_ops *skops, void *searchby_res, u32 len, u64 flags)
* Description * Description
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment