| /Linux-v6.1/tools/lib/bpf/ |
| D | libbpf.h | 349 struct bpf_link; 351 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 352 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 353 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 365 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 379 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 380 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 382 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 383 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 384 LIBBPF_API int bpf_link__destroy(struct bpf_link *link); [all …]
|
| D | libbpf_internal.h | 162 struct bpf_link { struct 163 int (*detach)(struct bpf_link *link); argument 164 void (*dealloc)(struct bpf_link *link); argument 565 struct bpf_link * usdt_manager_attach_usdt(struct usdt_manager *man,
|
| /Linux-v6.1/kernel/bpf/ |
| 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)
|
| 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()
|
| 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()
|
| D | syscall.c | 2677 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, in bpf_link_init() 2712 void bpf_link_inc(struct bpf_link *link) in bpf_link_inc() 2718 static void bpf_link_free(struct bpf_link *link) in bpf_link_free() 2732 struct bpf_link *link = container_of(work, struct bpf_link, work); in bpf_link_put_deferred() 2740 void bpf_link_put(struct bpf_link *link) in bpf_link_put() 2756 struct bpf_link *link = filp->private_data; in bpf_link_release() 2776 const struct bpf_link *link = filp->private_data; in bpf_link_show_fdinfo() 2804 static int bpf_link_alloc_id(struct bpf_link *link) in bpf_link_alloc_id() 2830 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer) in bpf_link_prime() 2872 int bpf_link_new_fd(struct bpf_link *link) in bpf_link_new_fd() [all …]
|
| /Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
| 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()
|
| D | cgroup_getset_retval.c | 22 struct bpf_link *link_set_eunatch = NULL; in test_setsockopt_set() 56 struct bpf_link *link_set_eunatch = NULL, *link_get_retval = NULL; in test_setsockopt_set_and_get() 97 struct bpf_link *link_get_retval = NULL; in test_setsockopt_default_zero() 131 struct bpf_link *link_get_retval = NULL, *link_set_eunatch = NULL; in test_setsockopt_default_zero_and_set() 173 struct bpf_link *link_set_eunatch = NULL, *link_set_eisconn = NULL; in test_setsockopt_override() 174 struct bpf_link *link_get_retval = NULL; in test_setsockopt_override() 221 struct bpf_link *link_legacy_eperm = NULL, *link_get_retval = NULL; in test_setsockopt_legacy_eperm() 264 struct bpf_link *link_set_eunatch = NULL, *link_legacy_eperm = NULL; in test_setsockopt_legacy_no_override() 265 struct bpf_link *link_get_retval = NULL; in test_setsockopt_legacy_no_override() 314 struct bpf_link *link_get_retval = NULL; in test_getsockopt_get() [all …]
|
| D | cg_storage_multi.c | 89 struct bpf_link *parent_link = NULL, *child_link = NULL; in test_egress_only() 159 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_isolated() 160 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_isolated() 161 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_isolated() 272 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_shared() 273 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_shared() 274 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_shared()
|
| D | bpf_tcp_ca.c | 173 struct bpf_link *link; in test_cubic() 194 struct bpf_link *link; in test_dctcp() 264 struct bpf_link *link = NULL; in test_dctcp_fallback() 335 struct bpf_link *link; in test_write_sk_pacing() 351 struct bpf_link *link; in test_incompl_cong_ops()
|
| D | bpf_cookie.c | 24 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_subtest() 25 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in kprobe_subtest() 178 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_multi_attach_api_subtest() 245 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_subtest() 246 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in uprobe_subtest() 299 struct bpf_link *link1 = NULL, *link2 = NULL, *link3 = NULL; in tp_subtest() 368 struct bpf_link *link = NULL; in pe_subtest()
|
| D | bpf_iter.c | 51 struct bpf_link *link; in do_dummy_read_opts() 84 struct bpf_link *link; in do_read_map_iter_fd() 188 struct bpf_link *link; in check_bpf_link_info() 400 struct bpf_link *link; in do_btf_read() 549 struct bpf_link *link; in test_anon_iter() 592 struct bpf_link *link; in test_file_iter() 644 struct bpf_link *link; in test_overflow() 777 struct bpf_link *link; in test_bpf_hash_map() 870 struct bpf_link *link; in test_bpf_percpu_hash_map() 952 struct bpf_link *link; in test_bpf_array_map() [all …]
|
| 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()
|
| D | trampoline_count.c | 9 struct bpf_link *link; 42 struct bpf_link *link; in serial_test_trampoline_count()
|
| D | attach_probe.c | 31 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 32 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe() 35 struct bpf_link *uprobe_err_link; in test_attach_probe()
|
| D | xdp_bonding.c | 95 struct bpf_link *links[MAX_BPF_LINKS]; 100 struct bpf_link *link; in xdp_attach() 389 struct bpf_link *link = NULL; in test_xdp_bonding_attach() 390 struct bpf_link *link2 = NULL; in test_xdp_bonding_attach() 469 struct bpf_link *link = NULL; in test_xdp_bonding_nested()
|
| D | tcp_hdr_options.c | 297 struct bpf_link *link; in fastopen_estab() 334 struct bpf_link *link; in syncookie_estab() 378 struct bpf_link *link; in fin() 410 struct bpf_link *link; in __simple_estab() 462 struct bpf_link *link; in misc()
|
| D | fexit_bpf2bpf.c | 65 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() 87 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common() 233 struct bpf_link *link; in test_second_attach() 288 struct bpf_link *freplace_link = NULL; in test_fmod_ret_freplace()
|
| /Linux-v6.1/tools/bpf/bpftool/skeleton/ |
| D | pid_iter.bpf.c | 35 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id() 42 static __u64 get_bpf_cookie(struct bpf_link *link) in get_bpf_cookie() 88 struct bpf_link *link = (struct bpf_link *) file->private_data; in iter()
|
| /Linux-v6.1/samples/bpf/ |
| 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()
|
| D | trace_event_user.c | 140 struct bpf_link **links = calloc(nr_cpus, sizeof(struct bpf_link *)); in test_perf_event_all_cpu() 183 struct bpf_link *link = NULL; in test_perf_event_task()
|
| /Linux-v6.1/tools/testing/selftests/bpf/benchs/ |
| 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()
|
| /Linux-v6.1/include/linux/ |
| D | bpf.h | 1257 struct bpf_link { struct 1267 void (*release)(struct bpf_link *link); argument 1268 void (*dealloc)(struct bpf_link *link); 1269 int (*detach)(struct bpf_link *link); 1270 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 1272 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 1273 int (*fill_link_info)(const struct bpf_link *link, 1278 struct bpf_link link; 1296 struct bpf_link *link; 1813 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, [all …]
|
| /Linux-v6.1/kernel/bpf/preload/ |
| D | bpf_preload.h | 7 struct bpf_link *link;
|
| /Linux-v6.1/tools/testing/selftests/bpf/progs/ |
| D | bpf_iter_bpf_link.c | 12 struct bpf_link *link = ctx->link; in dump_bpf_link()
|