/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | libbpf.h | 396 struct bpf_link; 398 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 399 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 400 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 412 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 426 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 427 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 429 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 430 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 431 LIBBPF_API int bpf_link__destroy(struct bpf_link *lin [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | libbpf.h | 223 struct bpf_link; 225 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 226 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 227 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 228 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 229 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 230 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 232 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 233 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 234 LIBBPF_API int bpf_link__destroy(struct bpf_link *lin [all...] |
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | link_iter.c | 16 struct bpf_link *link; in bpf_link_seq_start() 33 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_next() 39 __bpf_md_ptr(struct bpf_link *, link); 42 DEFINE_BPF_ITER_FUNC(bpf_link, struct bpf_iter_meta *meta, struct bpf_link *link) 71 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_stop() 82 BTF_ID(struct, bpf_link) 92 .target = "bpf_link",
|
H A D | net_namespace.c | 13 struct bpf_link link; 102 static void bpf_netns_link_release(struct bpf_link *link) in bpf_netns_link_release() 150 static int bpf_netns_link_detach(struct bpf_link *link) in bpf_netns_link_detach() 156 static void bpf_netns_link_dealloc(struct bpf_link *link) in bpf_netns_link_dealloc() 164 static int bpf_netns_link_update_prog(struct bpf_link *link, in bpf_netns_link_update_prog() 204 static int bpf_netns_link_fill_info(const struct bpf_link *link, in bpf_netns_link_fill_info() 223 static void bpf_netns_link_show_fdinfo(const struct bpf_link *link, in bpf_netns_link_show_fdinfo() 421 static int netns_bpf_link_attach(struct net *net, struct bpf_link *link, in netns_bpf_link_attach()
|
H A D | tcx.c | 141 static int tcx_link_prog_attach(struct bpf_link *link, u32 flags, u32 id_or_fd, in tcx_link_prog_attach() 169 static void tcx_link_release(struct bpf_link *link) in tcx_link_release() 203 static int tcx_link_update(struct bpf_link *link, struct bpf_prog *nprog, in tcx_link_update() 246 static void tcx_link_dealloc(struct bpf_link *link) in tcx_link_dealloc() 251 static void tcx_link_fdinfo(const struct bpf_link *link, struct seq_file *seq) in tcx_link_fdinfo() 267 static int tcx_link_fill_info(const struct bpf_link *link, in tcx_link_fill_info() 283 static int tcx_link_detach(struct bpf_link *link) in tcx_link_detach()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_loop.c | 10 struct bpf_link *link; in check_nr_loops() 45 struct bpf_link *link; in check_callback_fn_stop() 67 struct bpf_link *link; in check_null_callback_ctx() 86 struct bpf_link *link; in check_invalid_flags() 103 struct bpf_link *link; in check_nested_calls() 125 struct bpf_link *link = in check_non_constant_callback() 144 struct bpf_link *link = bpf_program__attach(skel->progs.stack_check); in check_stack()
|
H A D | cgroup_getset_retval.c | 22 struct bpf_link *link_set_eunatch = NULL; in test_setsockopt_set() 58 struct bpf_link *link_set_eunatch = NULL, *link_get_retval = NULL; in test_setsockopt_set_and_get() 101 struct bpf_link *link_get_retval = NULL; in test_setsockopt_default_zero() 137 struct bpf_link *link_get_retval = NULL, *link_set_eunatch = NULL; in test_setsockopt_default_zero_and_set() 181 struct bpf_link *link_set_eunatch = NULL, *link_set_eisconn = NULL; in test_setsockopt_override() 182 struct bpf_link *link_get_retval = NULL; in test_setsockopt_override() 231 struct bpf_link *link_legacy_eperm = NULL, *link_get_retval = NULL; in test_setsockopt_legacy_eperm() 276 struct bpf_link *link_set_eunatch = NULL, *link_legacy_eperm = NULL; in test_setsockopt_legacy_no_override() 277 struct bpf_link *link_get_retval = NULL; in test_setsockopt_legacy_no_override() 328 struct bpf_link *link_get_retva in test_getsockopt_get() [all...] |
H A D | bpf_tcp_ca.c | 174 struct bpf_link *link; in test_cubic() 197 struct bpf_link *link; in test_dctcp() 267 struct bpf_link *link = NULL; in test_dctcp_fallback() 338 struct bpf_link *link; in test_write_sk_pacing() 354 struct bpf_link *link; in test_incompl_cong_ops() 390 struct bpf_link *link; in test_update_ca() 419 struct bpf_link *link; in test_update_wrong() 447 struct bpf_link *link, *link_nl; in test_mixed_links() 474 struct bpf_link *link; in test_multi_links() 498 struct bpf_link *lin in test_link_replace() [all...] |
H A D | cgroup_tcp_skb.c | 17 struct bpf_link **egress_link, in install_filters() 18 struct bpf_link **ingress_link, in install_filters() 40 static void uninstall_filters(struct bpf_link **egress_link, in uninstall_filters() 41 struct bpf_link **ingress_link) in uninstall_filters() 237 struct bpf_link *ingress_link = NULL; in test_cgroup_tcp_skb() 238 struct bpf_link *egress_link = NULL; in test_cgroup_tcp_skb()
|
H A D | sockopt_multi.c | 10 struct bpf_link *link_parent = NULL; in run_getsockopt_test() 11 struct bpf_link *link_child = NULL; in run_getsockopt_test() 161 struct bpf_link *link_parent = NULL; in run_setsockopt_test() 162 struct bpf_link *link_child = NULL; in run_setsockopt_test()
|
H A D | cg_storage_multi.c | 93 struct bpf_link *parent_link = NULL, *child_link = NULL; in test_egress_only() 163 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_isolated() 164 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_isolated() 165 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_isolated() 276 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_shared() 277 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_shared() 278 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_shared()
|
H A D | bpf_cookie.c | 25 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_subtest() 26 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in kprobe_subtest() 179 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_multi_attach_api_subtest() 273 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_multi_attach_api_subtest() 321 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_subtest() 322 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in uprobe_subtest() 375 struct bpf_link *link1 = NULL, *link2 = NULL, *link3 = NULL; in tp_subtest() 444 struct bpf_link *link = NULL; in pe_subtest() 472 /* free up memory used by struct bpf_link */ in pe_subtest()
|
/kernel/linux/linux-6.6/tools/bpf/bpftool/skeleton/ |
H A D | pid_iter.bpf.c | 19 struct bpf_link link; 48 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id() 55 static __u64 get_bpf_cookie(struct bpf_link *link) in get_bpf_cookie() 103 struct bpf_link *link = (struct bpf_link *) file->private_data; in iter()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | trampoline_count.c | 11 struct bpf_link *link_fentry; 12 struct bpf_link *link_fexit; 33 static struct bpf_link *load(struct bpf_object *obj, const char *name) in load() 52 struct bpf_link *link; in test_trampoline_count()
|
H A D | cg_storage_multi.c | 93 struct bpf_link *parent_link = NULL, *child_link = NULL; in test_egress_only() 167 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_isolated() 168 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_isolated() 169 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_isolated() 292 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_shared() 293 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_shared() 294 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_shared()
|
H A D | bpf_iter.c | 43 struct bpf_link *link; in do_dummy_read() 180 struct bpf_link *link; in do_btf_read() 333 struct bpf_link *link; in test_anon_iter() 378 struct bpf_link *link; in test_file_iter() 432 struct bpf_link *link; in test_overflow() 572 struct bpf_link *link; in test_bpf_hash_map() 670 struct bpf_link *link; in test_bpf_percpu_hash_map() 761 struct bpf_link *link; in test_bpf_array_map() 846 struct bpf_link *link; in test_bpf_percpu_array_map() 924 struct bpf_link *lin in test_bpf_sk_storage_map() [all...] |
H A D | attach_probe.c | 29 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 30 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | tcx.h | 21 struct bpf_link link; 41 static inline struct tcx_link *tcx_link(struct bpf_link *link) in tcx_link() 46 static inline const struct tcx_link *tcx_link_const(const struct bpf_link *link) in tcx_link_const() 48 return tcx_link((struct bpf_link *)link); in tcx_link_const()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_bpf_link.c | 24 struct bpf_link link; 112 static void bpf_nf_link_release(struct bpf_link *link) in bpf_nf_link_release() 126 static void bpf_nf_link_dealloc(struct bpf_link *link) in bpf_nf_link_dealloc() 133 static int bpf_nf_link_detach(struct bpf_link *link) in bpf_nf_link_detach() 139 static void bpf_nf_link_show_info(const struct bpf_link *link, in bpf_nf_link_show_info() 149 static int bpf_nf_link_fill_link_info(const struct bpf_link *link, in bpf_nf_link_fill_link_info() 162 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog, in bpf_nf_link_update()
|
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | sampleip_user.c | 37 struct bpf_link *links[]) in sampling_start() 68 static void sampling_end(struct bpf_link *links[]) in sampling_end() 144 struct bpf_link **links; in main() 174 links = calloc(nr_cpus, sizeof(struct bpf_link *)); in main()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | sampleip_user.c | 37 struct bpf_link *links[]) in sampling_start() 68 static void sampling_end(struct bpf_link *links[]) in sampling_end() 144 struct bpf_link **links; in main() 181 links = calloc(nr_cpus, sizeof(struct bpf_link *)); in main()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | net_namespace.c | 12 struct bpf_link link; 101 static void bpf_netns_link_release(struct bpf_link *link) in bpf_netns_link_release() 149 static int bpf_netns_link_detach(struct bpf_link *link) in bpf_netns_link_detach() 155 static void bpf_netns_link_dealloc(struct bpf_link *link) in bpf_netns_link_dealloc() 163 static int bpf_netns_link_update_prog(struct bpf_link *link, in bpf_netns_link_update_prog() 203 static int bpf_netns_link_fill_info(const struct bpf_link *link, in bpf_netns_link_fill_info() 222 static void bpf_netns_link_show_fdinfo(const struct bpf_link *link, in bpf_netns_link_show_fdinfo() 420 static int netns_bpf_link_attach(struct net *net, struct bpf_link *link, in netns_bpf_link_attach()
|
H A D | bpf_iter.c | 16 struct bpf_link link; 349 static void bpf_iter_link_release(struct bpf_link *link) in bpf_iter_link_release() 358 static void bpf_iter_link_dealloc(struct bpf_link *link) in bpf_iter_link_dealloc() 366 static int bpf_iter_link_replace(struct bpf_link *link, in bpf_iter_link_replace() 393 static void bpf_iter_link_show_fdinfo(const struct bpf_link *link, in bpf_iter_link_show_fdinfo() 409 static int bpf_iter_link_fill_link_info(const struct bpf_link *link, in bpf_iter_link_fill_link_info() 457 bool bpf_link_is_iter(struct bpf_link *link) in bpf_link_is_iter() 587 int bpf_iter_new_fd(struct bpf_link *link) in bpf_iter_new_fd()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | bpf_mprog.h | 136 struct bpf_link *link; 155 struct bpf_link *link; 322 struct bpf_prog *prog_new, struct bpf_link *link, 328 struct bpf_prog *prog, struct bpf_link *link,
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | bpf.h | 941 struct bpf_link { struct 951 void (*release)(struct bpf_link *link); 952 void (*dealloc)(struct bpf_link *link); 953 int (*detach)(struct bpf_link *link); 954 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 956 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 957 int (*fill_link_info)(const struct bpf_link *link, 962 struct bpf_link *link; 1384 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, 1386 int bpf_link_prime(struct bpf_link *lin [all...] |