/linux-5.19.10/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; 385 static void bpf_iter_link_release(struct bpf_link *link) in bpf_iter_link_release() 394 static void bpf_iter_link_dealloc(struct bpf_link *link) in bpf_iter_link_dealloc() 402 static int bpf_iter_link_replace(struct bpf_link *link, in bpf_iter_link_replace() 429 static void bpf_iter_link_show_fdinfo(const struct bpf_link *link, in bpf_iter_link_show_fdinfo() 445 static int bpf_iter_link_fill_link_info(const struct bpf_link *link, in bpf_iter_link_fill_link_info() 493 bool bpf_link_is_iter(struct bpf_link *link) in bpf_link_is_iter() 623 int bpf_iter_new_fd(struct bpf_link *link) in bpf_iter_new_fd()
|
D | syscall.c | 2647 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, in bpf_link_init() 2682 void bpf_link_inc(struct bpf_link *link) in bpf_link_inc() 2688 static void bpf_link_free(struct bpf_link *link) in bpf_link_free() 2702 struct bpf_link *link = container_of(work, struct bpf_link, work); in bpf_link_put_deferred() 2710 void bpf_link_put(struct bpf_link *link) in bpf_link_put() 2726 struct bpf_link *link = filp->private_data; in bpf_link_release() 2746 const struct bpf_link *link = filp->private_data; in bpf_link_show_fdinfo() 2774 static int bpf_link_alloc_id(struct bpf_link *link) in bpf_link_alloc_id() 2800 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer) in bpf_link_prime() 2842 int bpf_link_new_fd(struct bpf_link *link) in bpf_link_new_fd() [all …]
|
/linux-5.19.10/tools/lib/bpf/ |
D | libbpf.h | 394 struct bpf_link; 396 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 397 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 398 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 410 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 424 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 425 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 427 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 428 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 429 LIBBPF_API int bpf_link__destroy(struct bpf_link *link); [all …]
|
D | libbpf_internal.h | 163 struct bpf_link { struct 164 int (*detach)(struct bpf_link *link); argument 165 void (*dealloc)(struct bpf_link *link); argument 577 struct bpf_link * usdt_manager_attach_usdt(struct usdt_manager *man,
|
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_getset_retval.c | 21 struct bpf_link *link_set_eunatch = NULL; in test_setsockopt_set() 55 struct bpf_link *link_set_eunatch = NULL, *link_get_retval = NULL; in test_setsockopt_set_and_get() 96 struct bpf_link *link_get_retval = NULL; in test_setsockopt_default_zero() 130 struct bpf_link *link_get_retval = NULL, *link_set_eunatch = NULL; in test_setsockopt_default_zero_and_set() 172 struct bpf_link *link_set_eunatch = NULL, *link_set_eisconn = NULL; in test_setsockopt_override() 173 struct bpf_link *link_get_retval = NULL; in test_setsockopt_override() 220 struct bpf_link *link_legacy_eperm = NULL, *link_get_retval = NULL; in test_setsockopt_legacy_eperm() 263 struct bpf_link *link_set_eunatch = NULL, *link_legacy_eperm = NULL; in test_setsockopt_legacy_no_override() 264 struct bpf_link *link_get_retval = NULL; in test_setsockopt_legacy_no_override() 313 struct bpf_link *link_get_retval = NULL; in test_getsockopt_get() [all …]
|
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()
|
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_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 | attach_probe.c | 23 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 24 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe() 27 struct bpf_link *uprobe_err_link; in test_attach_probe()
|
D | bpf_iter.c | 46 struct bpf_link *link; in do_dummy_read() 211 struct bpf_link *link; in do_btf_read() 360 struct bpf_link *link; in test_anon_iter() 403 struct bpf_link *link; in test_file_iter() 455 struct bpf_link *link; in test_overflow() 588 struct bpf_link *link; in test_bpf_hash_map() 675 struct bpf_link *link; in test_bpf_percpu_hash_map() 757 struct bpf_link *link; in test_bpf_array_map() 836 struct bpf_link *link; in test_bpf_percpu_array_map() 907 struct bpf_link *link; in test_bpf_sk_storage_delete() [all …]
|
D | trampoline_count.c | 9 struct bpf_link *link; 42 struct bpf_link *link; in serial_test_trampoline_count()
|
D | fexit_bpf2bpf.c | 64 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() 86 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common() 232 struct bpf_link *link; in test_second_attach() 287 struct bpf_link *freplace_link = NULL; in test_fmod_ret_freplace()
|
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 | 333 struct bpf_link *link; in fastopen_estab() 370 struct bpf_link *link; in syncookie_estab() 414 struct bpf_link *link; in fin() 446 struct bpf_link *link; in __simple_estab() 498 struct bpf_link *link; in misc()
|
D | bpf_tcp_ca.c | 170 struct bpf_link *link; in test_cubic() 191 struct bpf_link *link; in test_dctcp() 261 struct bpf_link *link = NULL; in test_dctcp_fallback()
|
/linux-5.19.10/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-5.19.10/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-5.19.10/include/linux/ |
D | bpf.h | 1107 struct bpf_link { struct 1117 void (*release)(struct bpf_link *link); argument 1118 void (*dealloc)(struct bpf_link *link); 1119 int (*detach)(struct bpf_link *link); 1120 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 1122 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 1123 int (*fill_link_info)(const struct bpf_link *link, 1128 struct bpf_link link; 1141 struct bpf_link *link; 1584 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, [all …]
|
/linux-5.19.10/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-5.19.10/kernel/bpf/preload/ |
D | bpf_preload.h | 7 struct bpf_link *link;
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_bpf_link.c | 12 struct bpf_link *link = ctx->link; in dump_bpf_link()
|
/linux-5.19.10/tools/testing/selftests/bpf/ |
D | testing_helpers.h | 8 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);
|