Skip to content

Commit 9887060

Browse files
geliangtangAlexei Starovoitov
authored andcommitted
bpf: Sync comments for bpf_get_stack
Commit ee2a098 missed updating the comments for helper bpf_get_stack in tools/include/uapi/linux/bpf.h. Sync it. Fixes: ee2a098 ("bpf: Adjust BPF stack helper functions to accommodate skip > 0") Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/ce54617746b7ed5e9ba3b844e55e74cb8a60e0b5.1648110794.git.geliang.tang@suse.com
1 parent 76db178 commit 9887060

File tree

1 file changed

+4
-4
lines changed
  • tools/include/uapi/linux

1 file changed

+4
-4
lines changed

tools/include/uapi/linux/bpf.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,8 +3009,8 @@ union bpf_attr {
30093009
*
30103010
* # sysctl kernel.perf_event_max_stack=<new value>
30113011
* Return
3012-
* A non-negative value equal to or less than *size* on success,
3013-
* or a negative error in case of failure.
3012+
* The non-negative copied *buf* length equal to or less than
3013+
* *size* on success, or a negative error in case of failure.
30143014
*
30153015
* long bpf_skb_load_bytes_relative(const void *skb, u32 offset, void *to, u32 len, u32 start_header)
30163016
* Description
@@ -4316,8 +4316,8 @@ union bpf_attr {
43164316
*
43174317
* # sysctl kernel.perf_event_max_stack=<new value>
43184318
* Return
4319-
* A non-negative value equal to or less than *size* on success,
4320-
* or a negative error in case of failure.
4319+
* The non-negative copied *buf* length equal to or less than
4320+
* *size* on success, or a negative error in case of failure.
43214321
*
43224322
* long bpf_load_hdr_opt(struct bpf_sock_ops *skops, void *searchby_res, u32 len, u64 flags)
43234323
* Description

0 commit comments

Comments
 (0)