mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-05 16:19:06 +08:00
bpf: Store cookies in kprobe_multi bpf_link_info data
Storing cookies in kprobe_multi bpf_link_info data. The cookies field is optional and if provided it needs to be an array of __u64 with kprobe_multi.count length. Acked-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20240119110505.400573-3-jolsa@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Andrii Nakryiko
parent
de2f366450
commit
fe508381b4
@@ -6563,6 +6563,7 @@ struct bpf_link_info {
|
|||||||
__u32 count; /* in/out: kprobe_multi function count */
|
__u32 count; /* in/out: kprobe_multi function count */
|
||||||
__u32 flags;
|
__u32 flags;
|
||||||
__u64 missed;
|
__u64 missed;
|
||||||
|
__aligned_u64 cookies;
|
||||||
} kprobe_multi;
|
} kprobe_multi;
|
||||||
struct {
|
struct {
|
||||||
__aligned_u64 path;
|
__aligned_u64 path;
|
||||||
|
|||||||
Reference in New Issue
Block a user