Home
last modified time | relevance | path

Searched refs:bpf_link (Results 1 – 25 of 177) sorted by relevance

12345678

/linux-6.15/tools/lib/bpf/
H A Dlibbpf.h439 struct bpf_link;
492 LIBBPF_API struct bpf_link *
506 LIBBPF_API struct bpf_link *
509 LIBBPF_API struct bpf_link *
545 LIBBPF_API struct bpf_link *
548 LIBBPF_API struct bpf_link *
575 LIBBPF_API struct bpf_link *
626 LIBBPF_API struct bpf_link *
674 LIBBPF_API struct bpf_link *
1717 struct bpf_link **link;
[all …]
/linux-6.15/kernel/bpf/
H A Dlink_iter.c16 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) in DEFINE_BPF_ITER_FUNC() argument
71 bpf_link_put((struct bpf_link *)v); in bpf_link_seq_stop()
82 BTF_ID(struct, bpf_link)
H A Dtcx.c141 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()
H A Dnet_namespace.c13 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()
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_loop.c10 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 Dcgroup_getset_retval.c22 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()
277 struct bpf_link *link_get_retval = NULL; in test_setsockopt_legacy_no_override()
328 struct bpf_link *link_get_retval = NULL; in test_getsockopt_get()
370 struct bpf_link *link_set_eisconn = NULL; in test_getsockopt_override()
[all …]
H A Dbpf_tcp_ca.c99 struct bpf_link *link; in test_cubic()
151 struct bpf_link *link; in test_dctcp()
194 struct bpf_link *link; in test_dctcp_autoattach_map()
263 struct bpf_link *link = NULL; in test_dctcp_fallback()
342 struct bpf_link *link; in test_write_sk_pacing()
358 struct bpf_link *link; in test_incompl_cong_ops()
401 struct bpf_link *link; in test_update_ca()
439 struct bpf_link *link; in test_update_wrong()
505 struct bpf_link *link; in test_multi_links()
529 struct bpf_link *link; in test_link_replace()
[all …]
H A Dcgroup_tcp_skb.c17 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 Dcg_storage_multi.c93 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 Dbpf_cookie.c25 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()
580 struct bpf_link *link = NULL; in tp_btf_subtest()
642 struct bpf_link *link = NULL; in raw_tp_subtest()
H A Dnetfilter_link_attach.c47 static void verify_netfilter_link_info(struct bpf_link *link, const struct nf_link_test nf_expected) in verify_netfilter_link_info()
82 struct bpf_link *link; in test_netfilter_link_attach()
95 struct bpf_link *link2; in test_netfilter_link_attach()
H A Dsockopt_multi.c10 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 Dcgroup1_hierarchy.c12 struct bpf_link *lsm_link, *fentry_link; in bpf_cgroup1()
30 struct bpf_link *lsm_link, *fentry_link; in bpf_cgroup1_sleepable()
48 struct bpf_link *lsm_link, *fentry_link; in bpf_cgroup1_invalid_id()
H A Dstruct_ops_private_stack.c11 struct bpf_link *link; in test_private_stack()
68 struct bpf_link *link; in test_private_stack_recur()
H A Dattach_probe.c41 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe_manual()
42 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe_manual()
127 struct bpf_link *uprobe_err_link; in test_attach_probe_auto()
198 struct bpf_link *uprobe_link, *uretprobe_link; in test_uprobe_ref_ctr()
H A Dxdp_bonding.c96 struct bpf_link *links[MAX_BPF_LINKS];
101 struct bpf_link *link; in xdp_attach()
382 struct bpf_link *link = NULL; in test_xdp_bonding_attach()
383 struct bpf_link *link2 = NULL; in test_xdp_bonding_attach()
462 struct bpf_link *link = NULL; in test_xdp_bonding_nested()
500 struct bpf_link *link = NULL; in test_xdp_bonding_features()
H A Dcgroup_iter.c56 struct bpf_link *link; in read_from_cgroup_iter()
100 struct bpf_link *link; in test_invalid_cgroup()
117 struct bpf_link *link; in test_invalid_cgroup_spec()
200 struct bpf_link *link; in test_walk_dead_self_only()
H A Dtrampoline_count.c7 struct bpf_link *link;
40 struct bpf_link *link; in serial_test_trampoline_count()
/linux-6.15/tools/bpf/bpftool/skeleton/
H A Dpid_iter.bpf.c19 struct bpf_link link;
49 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id()
56 static __u64 get_bpf_cookie(struct bpf_link *link) in get_bpf_cookie()
108 struct bpf_link *link = (struct bpf_link *) file->private_data; in iter()
/linux-6.15/net/netfilter/
H A Dnf_bpf_link.c24 struct bpf_link link;
113 static void bpf_nf_link_release(struct bpf_link *link) in bpf_nf_link_release()
128 static void bpf_nf_link_dealloc(struct bpf_link *link) in bpf_nf_link_dealloc()
135 static int bpf_nf_link_detach(struct bpf_link *link) in bpf_nf_link_detach()
141 static void bpf_nf_link_show_info(const struct bpf_link *link, in bpf_nf_link_show_info()
151 static int bpf_nf_link_fill_link_info(const struct bpf_link *link, in bpf_nf_link_fill_link_info()
165 static int bpf_nf_link_update(struct bpf_link *link, struct bpf_prog *new_prog, in bpf_nf_link_update()
/linux-6.15/samples/bpf/
H A Dsampleip_user.c37 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()
/linux-6.15/include/linux/
H A Dbpf.h1674 struct bpf_link { struct
1695 void (*release)(struct bpf_link *link); argument
1699 void (*dealloc)(struct bpf_link *link);
1707 int (*detach)(struct bpf_link *link);
1719 struct bpf_link link;
1737 struct bpf_link link;
1743 struct bpf_link *link;
2477 void bpf_link_inc(struct bpf_link *link);
2478 struct bpf_link *bpf_link_inc_not_zero(struct bpf_link *link);
2737 struct bpf_link *bpf_link_by_id(u32 id);
[all …]
H A Dbpf_mprog.h136 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,
/linux-6.15/tools/testing/selftests/bpf/test_kmods/
H A Dbpf_test_no_cfi.c25 static int dummy_reg(void *kdata, struct bpf_link *link) in dummy_reg()
30 static void dummy_unreg(void *kdata, struct bpf_link *link) in dummy_unreg()
/linux-6.15/tools/testing/selftests/bpf/benchs/
H A Dbench_bloom_filter_map.c303 struct bpf_link *link; in bloom_lookup_setup()
320 struct bpf_link *link; in bloom_update_setup()
337 struct bpf_link *link; in false_positive_setup()
356 struct bpf_link *link; in hashmap_with_bloom_setup()
374 struct bpf_link *link; in hashmap_no_bloom_setup()

12345678