mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-31 05:39:06 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions.
This commit is contained in:
committed by
Andrii Nakryiko
parent
2cfeea135c
commit
151e3cb314
@@ -190,7 +190,7 @@ static __u32 (*bpf_get_prandom_u32)(void) = (void *) 7;
|
|||||||
* bpf_get_smp_processor_id
|
* bpf_get_smp_processor_id
|
||||||
*
|
*
|
||||||
* Get the SMP (symmetric multiprocessing) processor id. Note that
|
* Get the SMP (symmetric multiprocessing) processor id. Note that
|
||||||
* all programs run with preemption disabled, which means that the
|
* all programs run with migration disabled, which means that the
|
||||||
* SMP processor id is stable during all the execution of the
|
* SMP processor id is stable during all the execution of the
|
||||||
* program.
|
* program.
|
||||||
*
|
*
|
||||||
@@ -3012,7 +3012,7 @@ static __u64 (*bpf_ktime_get_boot_ns)(void) = (void *) 125;
|
|||||||
* arguments. The *data* are a **u64** array and corresponding format string
|
* arguments. The *data* are a **u64** array and corresponding format string
|
||||||
* values are stored in the array. For strings and pointers where pointees
|
* values are stored in the array. For strings and pointers where pointees
|
||||||
* are accessed, only the pointer values are stored in the *data* array.
|
* are accessed, only the pointer values are stored in the *data* array.
|
||||||
* The *data_len* is the size of *data* in bytes.
|
* The *data_len* is the size of *data* in bytes - must be a multiple of 8.
|
||||||
*
|
*
|
||||||
* Formats **%s**, **%p{i,I}{4,6}** requires to read kernel memory.
|
* Formats **%s**, **%p{i,I}{4,6}** requires to read kernel memory.
|
||||||
* Reading kernel memory may fail due to either invalid address or
|
* Reading kernel memory may fail due to either invalid address or
|
||||||
@@ -3873,7 +3873,8 @@ static long (*bpf_for_each_map_elem)(void *map, void *callback_fn, void *callbac
|
|||||||
* Each format specifier in **fmt** corresponds to one u64 element
|
* Each format specifier in **fmt** corresponds to one u64 element
|
||||||
* in the **data** array. For strings and pointers where pointees
|
* in the **data** array. For strings and pointers where pointees
|
||||||
* are accessed, only the pointer values are stored in the *data*
|
* are accessed, only the pointer values are stored in the *data*
|
||||||
* array. The *data_len* is the size of *data* in bytes.
|
* array. The *data_len* is the size of *data* in bytes - must be
|
||||||
|
* a multiple of 8.
|
||||||
*
|
*
|
||||||
* Formats **%s** and **%p{i,I}{4,6}** require to read kernel
|
* Formats **%s** and **%p{i,I}{4,6}** require to read kernel
|
||||||
* memory. Reading kernel memory may fail due to either invalid
|
* memory. Reading kernel memory may fail due to either invalid
|
||||||
@@ -4068,4 +4069,18 @@ static long (*bpf_task_pt_regs)(struct task_struct *task) = (void *) 175;
|
|||||||
*/
|
*/
|
||||||
static long (*bpf_get_branch_snapshot)(void *entries, __u32 size, __u64 flags) = (void *) 176;
|
static long (*bpf_get_branch_snapshot)(void *entries, __u32 size, __u64 flags) = (void *) 176;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* bpf_trace_vprintk
|
||||||
|
*
|
||||||
|
* Behaves like **bpf_trace_printk**\ () helper, but takes an array of u64
|
||||||
|
* to format and can handle more format args as a result.
|
||||||
|
*
|
||||||
|
* Arguments are to be used as in **bpf_seq_printf**\ () helper.
|
||||||
|
*
|
||||||
|
* Returns
|
||||||
|
* The number of bytes written to the buffer, or a negative error
|
||||||
|
* in case of failure.
|
||||||
|
*/
|
||||||
|
static long (*bpf_trace_vprintk)(const char *fmt, __u32 fmt_size, const void *data, __u32 data_len) = (void *) 177;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user