/openbmc/linux/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 *link); [all …]
|
/openbmc/linux/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) 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 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()
|
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 | bpf_struct_ops.c | 42 struct bpf_link **links; 64 struct bpf_link link; 336 static void bpf_struct_ops_link_release(struct bpf_link *link) in bpf_struct_ops_link_release() 340 static void bpf_struct_ops_link_dealloc(struct bpf_link *link) in bpf_struct_ops_link_dealloc() 767 static void bpf_struct_ops_map_link_dealloc(struct bpf_link *link) in bpf_struct_ops_map_link_dealloc() 785 static void bpf_struct_ops_map_link_show_fdinfo(const struct bpf_link *link, in bpf_struct_ops_map_link_show_fdinfo() 798 static int bpf_struct_ops_map_link_fill_link_info(const struct bpf_link *link, in bpf_struct_ops_map_link_fill_link_info() 812 static int bpf_struct_ops_map_link_update(struct bpf_link *link, struct bpf_map *new_map, in bpf_struct_ops_map_link_update()
|
H A D | bpf_iter.c | 17 struct bpf_link link; 394 static void bpf_iter_link_release(struct bpf_link *link) in bpf_iter_link_release() 403 static void bpf_iter_link_dealloc(struct bpf_link *link) in bpf_iter_link_dealloc() 411 static int bpf_iter_link_replace(struct bpf_link *link, in bpf_iter_link_replace() 438 static void bpf_iter_link_show_fdinfo(const struct bpf_link *link, in bpf_iter_link_show_fdinfo() 454 static int bpf_iter_link_fill_link_info(const struct bpf_link *link, in bpf_iter_link_fill_link_info() 502 bool bpf_link_is_iter(struct bpf_link *link) in bpf_link_is_iter() 636 int bpf_iter_new_fd(struct bpf_link *link) in bpf_iter_new_fd()
|
/openbmc/linux/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_retval = NULL; 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() 421 struct bpf_link *link; in test_update_wrong() 451 struct bpf_link *link, *link_nl; in test_mixed_links() 480 struct bpf_link *link; in test_multi_links() 504 struct bpf_link *link; in test_link_replace()
|
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 | 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 | 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 | 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()
|
H A D | cgroup_iter.c | 55 struct bpf_link *link; in read_from_cgroup_iter() 99 struct bpf_link *link; in test_invalid_cgroup() 116 struct bpf_link *link; in test_invalid_cgroup_spec() 199 struct bpf_link *link; in test_walk_dead_self_only()
|
H A D | attach_probe.c | 41 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 D | xdp_bonding.c | 96 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 D | netfilter_link_attach.c | 49 struct bpf_link *link; in test_netfilter_link_attach() 62 struct bpf_link *link2; in test_netfilter_link_attach()
|
H A D | trampoline_count.c | 7 struct bpf_link *link; 40 struct bpf_link *link; in serial_test_trampoline_count()
|
/openbmc/linux/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()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_bpf_link.c | 24 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()
|
/openbmc/linux/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()
|
/openbmc/linux/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()
|
/openbmc/linux/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,
|
H A D | bpf.h | 1535 struct bpf_link { struct 1551 void (*release)(struct bpf_link *link); argument 1555 void (*dealloc)(struct bpf_link *link); 1560 void (*dealloc_deferred)(struct bpf_link *link); 1561 int (*detach)(struct bpf_link *link); 1562 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 1564 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 1565 int (*fill_link_info)(const struct bpf_link *link, 1567 int (*update_map)(struct bpf_link *link, struct bpf_map *new_map, 1572 struct bpf_link link; [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/benchs/ |
H A D | bench_bloom_filter_map.c | 303 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()
|