From eb56f8fb1218f43d5a930f96fbd97c3a324c508d Mon Sep 17 00:00:00 2001 From: Andrii Nakryiko Date: Tue, 26 Jan 2021 13:05:28 -0800 Subject: [PATCH] sync: auto-generate latest BPF helpers Latest changes to BPF helper definitions. --- src/bpf_helper_defs.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bpf_helper_defs.h b/src/bpf_helper_defs.h index 4e85c13..b7511f0 100644 --- a/src/bpf_helper_defs.h +++ b/src/bpf_helper_defs.h @@ -2071,7 +2071,7 @@ static __u64 (*bpf_get_current_cgroup_id)(void) = (void *) 80; * running simultaneously. * * A user should care about the synchronization by himself. - * For example, by using the **BPF_STX_XADD** instruction to alter + * For example, by using the **BPF_ATOMIC** instructions to alter * the shared data. * * Returns @@ -2748,10 +2748,10 @@ static long (*bpf_probe_read_kernel)(void *dst, __u32 size, const void *unsafe_p * string length is larger than *size*, just *size*-1 bytes are * copied and the last byte is set to NUL. * - * On success, the length of the copied string is returned. This - * makes this helper useful in tracing programs for reading - * strings, and more importantly to get its length at runtime. See - * the following snippet: + * On success, returns the number of bytes that were written, + * including the terminal NUL. This makes this helper useful in + * tracing programs for reading strings, and more importantly to + * get its length at runtime. See the following snippet: * * :: * @@ -2780,7 +2780,7 @@ static long (*bpf_probe_read_kernel)(void *dst, __u32 size, const void *unsafe_p * one can quickly iterate at the right offset of the memory area. * * Returns - * On success, the strictly positive length of the string, + * On success, the strictly positive length of the output string, * including the trailing NUL character. On error, a negative * value. */