/Linux-v5.10/tools/lib/bpf/ |
D | libbpf.h | 223 struct bpf_link; 225 LIBBPF_API struct bpf_link *bpf_link__open(const char *path); 226 LIBBPF_API int bpf_link__fd(const struct bpf_link *link); 227 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link); 228 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path); 229 LIBBPF_API int bpf_link__unpin(struct bpf_link *link); 230 LIBBPF_API int bpf_link__update_program(struct bpf_link *link, 232 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link); 233 LIBBPF_API int bpf_link__detach(struct bpf_link *link); 234 LIBBPF_API int bpf_link__destroy(struct bpf_link *link); [all …]
|
D | libbpf.c | 201 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_sec_def *sec, 8225 static struct bpf_link *attach_kprobe(const struct bpf_sec_def *sec, 8227 static struct bpf_link *attach_tp(const struct bpf_sec_def *sec, 8229 static struct bpf_link *attach_raw_tp(const struct bpf_sec_def *sec, 8231 static struct bpf_link *attach_trace(const struct bpf_sec_def *sec, 8233 static struct bpf_link *attach_lsm(const struct bpf_sec_def *sec, 8235 static struct bpf_link *attach_iter(const struct bpf_sec_def *sec, 9055 struct bpf_link { struct 9056 int (*detach)(struct bpf_link *link); argument 9057 int (*destroy)(struct bpf_link *link); argument [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
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() 163 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_isolated() 164 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_isolated() 165 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_isolated() 288 struct bpf_link *parent_egress1_link = NULL, *parent_egress2_link = NULL; in test_shared() 289 struct bpf_link *child_egress1_link = NULL, *child_egress2_link = NULL; in test_shared() 290 struct bpf_link *parent_ingress_link = NULL, *child_ingress_link = NULL; in test_shared()
|
D | bpf_iter.c | 43 struct bpf_link *link; in do_dummy_read() 180 struct bpf_link *link; in do_btf_read() 333 struct bpf_link *link; in test_anon_iter() 378 struct bpf_link *link; in test_file_iter() 432 struct bpf_link *link; in test_overflow() 572 struct bpf_link *link; in test_bpf_hash_map() 670 struct bpf_link *link; in test_bpf_percpu_hash_map() 761 struct bpf_link *link; in test_bpf_array_map() 846 struct bpf_link *link; in test_bpf_percpu_array_map() 924 struct bpf_link *link; in test_bpf_sk_storage_map() [all …]
|
D | fexit_bpf2bpf.c | 62 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() 75 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common() 190 struct bpf_link *link; in test_second_attach() 242 struct bpf_link *freplace_link = NULL; in test_fmod_ret_freplace()
|
D | attach_probe.c | 29 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe() 30 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
|
D | tcp_hdr_options.c | 333 struct bpf_link *link; in fastopen_estab() 371 struct bpf_link *link; in syncookie_estab() 416 struct bpf_link *link; in fin() 449 struct bpf_link *link; in __simple_estab() 502 struct bpf_link *link; in misc()
|
D | sk_lookup.c | 429 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog() 431 struct bpf_link *link; in attach_lookup_prog() 476 struct bpf_link *link[3] = {}; in query_lookup_prog() 561 struct bpf_link *lookup_link; in run_lookup_prog() 828 struct bpf_link *lookup_link; in drop_on_lookup() 911 struct bpf_link *lookup_link; in drop_on_reuseport() 1015 struct bpf_link *lookup_link; in run_sk_assign() 1068 struct bpf_link *lookup_link; in run_sk_assign_connected() 1139 struct bpf_link *link1, *link2; in run_multi_prog_lookup()
|
D | bpf_tcp_ca.c | 185 struct bpf_link *link; in test_cubic() 207 struct bpf_link *link; in test_dctcp()
|
D | stacktrace_map_raw_tp.c | 13 struct bpf_link *link = NULL; in test_stacktrace_map_raw_tp()
|
/Linux-v5.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()
|
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.10/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; 349 static void bpf_iter_link_release(struct bpf_link *link) in bpf_iter_link_release() 358 static void bpf_iter_link_dealloc(struct bpf_link *link) in bpf_iter_link_dealloc() 366 static int bpf_iter_link_replace(struct bpf_link *link, in bpf_iter_link_replace() 393 static void bpf_iter_link_show_fdinfo(const struct bpf_link *link, in bpf_iter_link_show_fdinfo() 409 static int bpf_iter_link_fill_link_info(const struct bpf_link *link, in bpf_iter_link_fill_link_info() 457 bool bpf_link_is_iter(struct bpf_link *link) in bpf_link_is_iter() 587 int bpf_iter_new_fd(struct bpf_link *link) in bpf_iter_new_fd()
|
D | syscall.c | 2281 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, in bpf_link_init() 2316 void bpf_link_inc(struct bpf_link *link) in bpf_link_inc() 2322 static void bpf_link_free(struct bpf_link *link) in bpf_link_free() 2336 struct bpf_link *link = container_of(work, struct bpf_link, work); in bpf_link_put_deferred() 2344 void bpf_link_put(struct bpf_link *link) in bpf_link_put() 2359 struct bpf_link *link = filp->private_data; in bpf_link_release() 2379 const struct bpf_link *link = filp->private_data; in bpf_link_show_fdinfo() 2407 static int bpf_link_alloc_id(struct bpf_link *link) in bpf_link_alloc_id() 2433 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer) in bpf_link_prime() 2475 int bpf_link_new_fd(struct bpf_link *link) in bpf_link_new_fd() [all …]
|
/Linux-v5.10/include/linux/ |
D | bpf.h | 855 struct bpf_link { struct 865 void (*release)(struct bpf_link *link); argument 866 void (*dealloc)(struct bpf_link *link); 867 int (*detach)(struct bpf_link *link); 868 int (*update_prog)(struct bpf_link *link, struct bpf_prog *new_prog, 870 void (*show_fdinfo)(const struct bpf_link *link, struct seq_file *seq); 871 int (*fill_link_info)(const struct bpf_link *link, 876 struct bpf_link *link; 1265 void bpf_link_init(struct bpf_link *link, enum bpf_link_type type, 1267 int bpf_link_prime(struct bpf_link *link, struct bpf_link_primer *primer); [all …]
|
/Linux-v5.10/kernel/bpf/preload/iterators/ |
D | iterators.skel.h | 21 struct bpf_link *dump_bpf_map; 22 struct bpf_link *dump_bpf_prog;
|
D | iterators.c | 19 static int send_link_to_kernel(struct bpf_link *link, const char *link_name) in send_link_to_kernel()
|
/Linux-v5.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);
|
D | testing_helpers.c | 68 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info) in link_info_prog_id()
|
/Linux-v5.10/tools/testing/selftests/bpf/benchs/ |
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-v5.10/tools/bpf/bpftool/skeleton/ |
D | pid_iter.bpf.c | 35 return BPF_CORE_READ((struct bpf_link *)ent, id); in get_obj_id()
|