mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-02 22:59:07 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions.
This commit is contained in:
committed by
Andrii Nakryiko
parent
6e01a23cf6
commit
eb56f8fb12
@@ -2071,7 +2071,7 @@ static __u64 (*bpf_get_current_cgroup_id)(void) = (void *) 80;
|
|||||||
* running simultaneously.
|
* running simultaneously.
|
||||||
*
|
*
|
||||||
* A user should care about the synchronization by himself.
|
* 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.
|
* the shared data.
|
||||||
*
|
*
|
||||||
* Returns
|
* 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
|
* string length is larger than *size*, just *size*-1 bytes are
|
||||||
* copied and the last byte is set to NUL.
|
* copied and the last byte is set to NUL.
|
||||||
*
|
*
|
||||||
* On success, the length of the copied string is returned. This
|
* On success, returns the number of bytes that were written,
|
||||||
* makes this helper useful in tracing programs for reading
|
* including the terminal NUL. This makes this helper useful in
|
||||||
* strings, and more importantly to get its length at runtime. See
|
* tracing programs for reading strings, and more importantly to
|
||||||
* the following snippet:
|
* 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.
|
* one can quickly iterate at the right offset of the memory area.
|
||||||
*
|
*
|
||||||
* Returns
|
* 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
|
* including the trailing NUL character. On error, a negative
|
||||||
* value.
|
* value.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user