Home
last modified time | relevance | path

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

123

/external/libbpf/src/
Dlibbpf.h376 struct bpf_link;
378 LIBBPF_API struct bpf_link *bpf_link__open(const char *path);
379 LIBBPF_API int bpf_link__fd(const struct bpf_link *link);
380 LIBBPF_API const char *bpf_link__pin_path(const struct bpf_link *link);
381 LIBBPF_API int bpf_link__pin(struct bpf_link *link, const char *path);
382 LIBBPF_API int bpf_link__unpin(struct bpf_link *link);
383 LIBBPF_API int bpf_link__update_program(struct bpf_link *link,
385 LIBBPF_API void bpf_link__disconnect(struct bpf_link *link);
386 LIBBPF_API int bpf_link__detach(struct bpf_link *link);
387 LIBBPF_API int bpf_link__destroy(struct bpf_link *link);
[all …]
Dlibbpf.c208 typedef struct bpf_link *(*attach_fn_t)(const struct bpf_program *prog, long cookie);
8584 static struct bpf_link *attach_kprobe(const struct bpf_program *prog, long cookie);
8585 static struct bpf_link *attach_tp(const struct bpf_program *prog, long cookie);
8586 static struct bpf_link *attach_raw_tp(const struct bpf_program *prog, long cookie);
8587 static struct bpf_link *attach_trace(const struct bpf_program *prog, long cookie);
8588 static struct bpf_link *attach_lsm(const struct bpf_program *prog, long cookie);
8589 static struct bpf_link *attach_iter(const struct bpf_program *prog, long cookie);
9538 struct bpf_link { struct
9539 int (*detach)(struct bpf_link *link); argument
9540 void (*dealloc)(struct bpf_link *link); argument
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbpf_loop.c10 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()
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()
53 struct bpf_link *link; in serial_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()
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 …]
Dxdp_bonding.c95 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()
Dfexit_bpf2bpf.c64 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common()
81 link = calloc(sizeof(struct bpf_link *), prog_cnt); in test_fexit_bpf2bpf_common()
229 struct bpf_link *link; in test_second_attach()
281 struct bpf_link *freplace_link = NULL; in test_fmod_ret_freplace()
Dattach_probe.c17 struct bpf_link *kprobe_link, *kretprobe_link; in test_attach_probe()
18 struct bpf_link *uprobe_link, *uretprobe_link; in test_attach_probe()
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()
263 struct bpf_link *link = NULL; in test_dctcp_fallback()
Dbpf_iter_setsockopt.c187 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()
Dbloom_filter_map.c85 struct bpf_link *link; in check_bloom()
102 struct bpf_link *link; in test_inner_map()
Dtask_pt_regs.c9 struct bpf_link *uprobe_link; in test_task_pt_regs()
Dsk_lookup.c470 static struct bpf_link *attach_lookup_prog(struct bpf_program *prog) in attach_lookup_prog()
472 struct bpf_link *link; in attach_lookup_prog()
517 struct bpf_link *link[3] = {}; in query_lookup_prog()
602 struct bpf_link *lookup_link; in run_lookup_prog()
869 struct bpf_link *lookup_link; in drop_on_lookup()
983 struct bpf_link *lookup_link; in drop_on_reuseport()
1151 struct bpf_link *lookup_link; in run_sk_assign_connected()
1222 struct bpf_link *link1, *link2; in run_multi_prog_lookup()
/external/linux-kselftest/tools/testing/selftests/bpf/benchs/
Dbench_bloom_filter_map.c303 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()
Dbench_trigger.c61 struct bpf_link *link; in attach_bpf()
158 struct bpf_link *link; in usetup()
Dbench_ringbufs.c173 struct bpf_link *link; in ringbuf_libbpf_setup()
230 struct bpf_link *link; in ringbuf_custom_setup()
397 struct bpf_link *link; in perfbuf_libbpf_setup()
/external/libbpf/travis-ci/vmtest/configs/blacklist/
DBLACKLIST-5.5.011 bpf_obj_id # bpf_link support missing for GET_OBJ_INFO, GET_FD_BY_ID, etc
29 flow_dissector # bpf_link-based flow dissector is in 5.8+
39 link_pinning # bpf_link is missing
/external/bcc/libbpf-tools/
Dcpufreq.c84 struct bpf_link *links[]) in open_and_attach_perf_event()
186 struct bpf_link *links[MAX_CPU_NR] = {}; in main()
Dllcstat.c88 struct bpf_link *links[]) in open_and_attach_perf_event()
172 struct bpf_link **rlinks = NULL, **mlinks = NULL; in main()
Drunqlen.c127 struct bpf_link *links[]) in open_and_attach_perf_event()
222 struct bpf_link *links[MAX_CPU_NR] = {}; in main()
Dgethostlatency.c148 static int attach_uprobes(struct gethostlatency_bpf *obj, struct bpf_link *links[]) in attach_uprobes()
225 struct bpf_link *links[6] = {}; in main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtesting_helpers.h8 __u32 link_info_prog_id(const struct bpf_link *link, struct bpf_link_info *info);

123