/Linux-v5.15/tools/lib/bpf/ |
D | libbpf.h | 232 struct bpf_link; 234 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 235 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 236 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 237 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 238 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 239 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 241 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 242 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 243 LIBBPF_API int bpf_link__destroy(struct bpf_link *link); [all …]
|
D | libbpf.c | 221 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec, 7911 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec, 7913 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec, 7915 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec, 7917 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec, 7919 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec, 7921 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec, 8848 struct bpf_link { struct 8849 int (*detach)(struct bpf_link *link); argument 8850 void (*dealloc)(struct bpf_link *link); argument [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
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()
|
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() 52 struct bpf_link *link; in test_trampoline_count()
|
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_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() 694 struct bpf_link *link; in test_bpf_percpu_hash_map() 785 struct bpf_link *link; in test_bpf_array_map() 870 struct bpf_link *link; in test_bpf_percpu_array_map() 947 struct bpf_link *link; in test_bpf_sk_storage_delete() [all …]
|
D | attach_probe.c | 12 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 13 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
|
D | fexit_bpf2bpf.c | 64 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() 84 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common() 218 struct bpf_link *link; in test_second_attach() 270 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() 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()
|
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 | 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()
|
D | bpf_iter_setsockopt.c | 187 struct bpf_link *cubic_link = NULL; in test_bpf_iter_setsockopt() 188 struct bpf_link *dctcp_link = NULL; in test_bpf_iter_setsockopt()
|
D | task_pt_regs.c | 9 struct bpf_link *uprobe_link; in test_task_pt_regs()
|
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()
|
/Linux-v5.15/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()
|
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()
|
D | tracex1_user.c | 9 struct bpf_link *link = NULL; in main()
|
D | tracex7_user.c | 9 struct bpf_link *link = NULL; in main()
|
/Linux-v5.15/kernel/bpf/ |
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()
|
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()
|
D | syscall.c | 2376 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, in bpf_link_init() 2411 void bpf_link_inc(struct bpf_link *link) in bpf_link_inc() 2417 static void bpf_link_free(struct bpf_link *link) in bpf_link_free() 2431 struct bpf_link *link = container_of(work, struct bpf_link, work); in bpf_link_put_deferred() 2439 void bpf_link_put(struct bpf_link *link) in bpf_link_put() 2454 struct bpf_link *link = filp->private_data; in bpf_link_release() 2474 const struct bpf_link *link = filp->private_data; in bpf_link_show_fdinfo() 2502 static int bpf_link_alloc_id(struct bpf_link *link) in bpf_link_alloc_id() 2528 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer) in bpf_link_prime() 2570 int bpf_link_new_fd(struct bpf_link *link) in bpf_link_new_fd() [all …]
|
/Linux-v5.15/include/linux/ |
D | bpf.h | 944 struct bpf_link { struct 954 void (*release)(struct bpf_link *link); argument 955 void (*dealloc)(struct bpf_link *link); 956 int (*detach)(struct bpf_link *link); 957 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 959 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 960 int (*fill_link_info)(const struct bpf_link *link, 965 struct bpf_link *link; 1461 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, 1463 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer); [all …]
|
/Linux-v5.15/kernel/bpf/preload/iterators/ |
D | iterators.skel.h | 21 struct bpf_link *dump_bpf_map; 22 struct bpf_link *dump_bpf_prog;
|
/Linux-v5.15/tools/testing/selftests/bpf/ |
D | testing_helpers.h | 8 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);
|