Home
last modified time | relevance | path

Searched refs:bpf_link (Results 1 – 25 of 80) sorted by relevance

1234

/Linux-v5.15/tools/lib/bpf/
Dlibbpf.h232 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 …]
Dlibbpf.c221 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/
Dbpf_cookie.c14 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()
Dtrampoline_count.c11 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()
Dcg_storage_multi.c89 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()
Dbpf_iter.c46 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 …]
Dattach_probe.c12 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe()
13 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
Dfexit_bpf2bpf.c64 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()
Dxdp_bonding.c95 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()
Dtcp_hdr_options.c333 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()
Dbpf_tcp_ca.c172 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()
Dbpf_iter_setsockopt.c187 struct bpf_link *cubic_link = NULL; in test_bpf_iter_setsockopt()
188 struct bpf_link *dctcp_link = NULL; in test_bpf_iter_setsockopt()
Dtask_pt_regs.c9 struct bpf_link *uprobe_link; in test_task_pt_regs()
Dsk_lookup.c471 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/
Dsampleip_user.c37 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()
Dtrace_event_user.c140 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()
Dtask_fd_query_user.c25 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()
Dtracex1_user.c9 struct bpf_link *link = NULL; in main()
Dtracex7_user.c9 struct bpf_link *link = NULL; in main()
/Linux-v5.15/kernel/bpf/
Dnet_namespace.c12 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()
Dbpf_iter.c16 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()
Dsyscall.c2376 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/
Dbpf.h944 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/
Diterators.skel.h21 struct bpf_link *dump_bpf_map;
22 struct bpf_link *dump_bpf_prog;
/Linux-v5.15/tools/testing/selftests/bpf/
Dtesting_helpers.h8 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);

1234