/linux/tools/lib/bpf/ |
A D | libbpf.h | 280 struct bpf_link; 293 LIBBPF_API struct bpf_link * 304 LIBBPF_API struct bpf_link * 307 LIBBPF_API struct bpf_link * 324 LIBBPF_API struct bpf_link * 327 LIBBPF_API struct bpf_link * 347 LIBBPF_API struct bpf_link * 351 LIBBPF_API struct bpf_link * 364 LIBBPF_API struct bpf_link * 368 LIBBPF_API struct bpf_link * [all …]
|
A D | libbpf.c | 9233 struct bpf_link { struct 9301 struct bpf_link *link; in bpf_link__open() 9377 struct bpf_link link; 9707 struct bpf_link * 9715 struct bpf_link *link; in bpf_program__attach_kprobe_opts() 9792 struct bpf_link *link; in attach_kprobe() 9908 struct bpf_link *link; in bpf_program__attach_uprobe_opts() 10040 struct bpf_link *link; in bpf_program__attach_tracepoint_opts() 10243 struct bpf_link * 10249 struct bpf_link * [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | bpf_cookie.c | 14 struct bpf_link *link1 = NULL, *link2 = NULL; in kprobe_subtest() 15 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in kprobe_subtest() 63 struct bpf_link *link1 = NULL, *link2 = NULL; in uprobe_subtest() 64 struct bpf_link *retlink1 = NULL, *retlink2 = NULL; in uprobe_subtest() 117 struct bpf_link *link1 = NULL, *link2 = NULL, *link3 = NULL; in tp_subtest() 186 struct bpf_link *link = NULL; in pe_subtest()
|
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() 53 struct bpf_link *link; in serial_test_trampoline_count()
|
A 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()
|
A D | bpf_iter.c | 46 struct bpf_link *link; in do_dummy_read() 200 struct bpf_link *link; in do_btf_read() 359 struct bpf_link *link; in test_anon_iter() 404 struct bpf_link *link; in test_file_iter() 458 struct bpf_link *link; in test_overflow() 598 struct bpf_link *link; in test_bpf_hash_map() 693 struct bpf_link *link; in test_bpf_percpu_hash_map() 783 struct bpf_link *link; in test_bpf_array_map() 868 struct bpf_link *link; in test_bpf_percpu_array_map() 945 struct bpf_link *link; in test_bpf_sk_storage_delete() [all …]
|
A D | xdp_bonding.c | 95 struct bpf_link *links[MAX_BPF_LINKS]; 100 struct bpf_link *link; in xdp_attach() 385 struct bpf_link *link = NULL; in test_xdp_bonding_attach() 386 struct bpf_link *link2 = NULL; in test_xdp_bonding_attach() 465 struct bpf_link *link = NULL; in test_xdp_bonding_nested()
|
A D | fexit_bpf2bpf.c | 64 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() 81 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common() 220 struct bpf_link *link; in test_second_attach() 272 struct bpf_link *freplace_link = NULL; in test_fmod_ret_freplace()
|
A D | attach_probe.c | 17 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 18 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
|
A 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()
|
A D | bpf_tcp_ca.c | 172 struct bpf_link *link; in test_cubic() 193 struct bpf_link *link; in test_dctcp() 262 struct bpf_link *link = NULL; in test_dctcp_fallback()
|
A D | sk_lookup.c | 471 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog() 473 struct bpf_link *link; in attach_lookup_prog() 518 struct bpf_link *link[3] = {}; in query_lookup_prog() 603 struct bpf_link *lookup_link; in run_lookup_prog() 870 struct bpf_link *lookup_link; in drop_on_lookup() 953 struct bpf_link *lookup_link; in drop_on_reuseport() 1121 struct bpf_link *lookup_link; in run_sk_assign_connected() 1192 struct bpf_link *link1, *link2; in run_multi_prog_lookup()
|
A D | bloom_filter_map.c | 83 struct bpf_link *link; in check_bloom() 100 struct bpf_link *link; in test_inner_map()
|
A D | bpf_iter_setsockopt.c | 187 struct bpf_link *cubic_link = NULL; in serial_test_bpf_iter_setsockopt() 188 struct bpf_link *dctcp_link = NULL; in serial_test_bpf_iter_setsockopt()
|
/linux/samples/bpf/ |
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()
|
A 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()
|
A D | task_fd_query_user.c | 25 static struct bpf_link *links[2]; 132 struct bpf_link *link; in test_nondebug_fs_kuprobe_common() 236 struct bpf_link *link; in test_debug_fs_uprobe()
|
/linux/kernel/bpf/ |
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()
|
A D | bpf_iter.c | 16 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() 624 int bpf_iter_new_fd(struct bpf_link *link) in bpf_iter_new_fd()
|
A D | syscall.c | 2470 struct bpf_link *link = container_of(work, struct bpf_link, work); in bpf_link_put_deferred() 2617 struct bpf_link *link; in bpf_link_get_from_fd() 2634 struct bpf_link link; 2872 struct bpf_link link; 2947 struct bpf_link link; 4329 struct bpf_link *link; in link_update() 4381 struct bpf_link *link; in link_detach() 4400 static struct bpf_link *bpf_link_inc_not_zero(struct bpf_link *link) in bpf_link_inc_not_zero() 4407 struct bpf_link *link; in bpf_link_by_id() 4431 struct bpf_link *link; in bpf_link_get_fd_by_id() [all …]
|
/linux/include/linux/ |
A D | bpf.h | 956 struct bpf_link { struct 966 void (*release)(struct bpf_link *link); argument 967 void (*dealloc)(struct bpf_link *link); 968 int (*detach)(struct bpf_link *link); 977 struct bpf_link *link; 1488 void bpf_link_inc(struct bpf_link *link); 1489 void bpf_link_put(struct bpf_link *link); 1490 int bpf_link_new_fd(struct bpf_link *link); 1555 int bpf_iter_new_fd(struct bpf_link *link); 1556 bool bpf_link_is_iter(struct bpf_link *link); [all …]
|
/linux/tools/testing/selftests/bpf/benchs/ |
A D | bench_bloom_filter_map.c | 298 struct bpf_link *link; in bloom_lookup_setup() 315 struct bpf_link *link; in bloom_update_setup() 332 struct bpf_link *link; in false_positive_setup() 351 struct bpf_link *link; in hashmap_with_bloom_setup() 369 struct bpf_link *link; in hashmap_no_bloom_setup()
|
A D | bench_ringbufs.c | 173 struct bpf_link *link; in ringbuf_libbpf_setup() 230 struct bpf_link *link; in ringbuf_custom_setup() 402 struct bpf_link *link; in perfbuf_libbpf_setup()
|
/linux/kernel/bpf/preload/iterators/ |
A D | iterators.skel.h | 21 struct bpf_link *dump_bpf_map; 22 struct bpf_link *dump_bpf_prog;
|
/linux/tools/testing/selftests/bpf/ |
A D | testing_helpers.h | 8 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);
|