Home
last modified time | relevance | path

Searched refs:bpf_link__fd (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dtc_links.c47 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_links_basic()
82 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in serial_test_tc_links_basic()
160 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_before_target()
170 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in test_tc_links_before_target()
213 lid3 = id_from_link_fd(bpf_link__fd(skel->links.tc3)); in test_tc_links_before_target()
226 lid4 = id_from_link_fd(bpf_link__fd(skel->links.tc4)); in test_tc_links_before_target()
314 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_after_target()
324 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in test_tc_links_after_target()
367 lid3 = id_from_link_fd(bpf_link__fd(skel->links.tc3)); in test_tc_links_after_target()
371 .relative_fd = bpf_link__fd(skel->links.tc2), in test_tc_links_after_target()
[all …]
Dbpf_iter.c58 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_dummy_read_opts()
95 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_read_map_iter_fd()
196 err = bpf_link_get_info_by_fd(bpf_link__fd(link), &info, &info_len); in check_bpf_link_info()
421 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_btf_read()
575 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_anon_iter()
715 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_overflow()
841 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_bpf_hash_map()
924 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_bpf_percpu_hash_map()
989 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_bpf_array_map()
1098 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_bpf_percpu_array_map()
[all …]
Dfill_link_info.c169 link_fd = bpf_link__fd(link); in test_kprobe_fill_link_info()
194 link_fd = bpf_link__fd(link); in test_tp_fill_link_info()
224 link_fd = bpf_link__fd(link); in test_event_fill_link_info()
250 link_fd = bpf_link__fd(link); in test_uprobe_fill_link_info()
371 link_fd = bpf_link__fd(link); in test_kprobe_multi_fill_link_info()
568 link_fd = bpf_link__fd(link); in test_uprobe_multi_fill_link_info()
Dxdp_link.c122 err = bpf_link_get_info_by_fd(bpf_link__fd(link), in serial_test_xdp_link()
141 err = bpf_link_get_info_by_fd(bpf_link__fd(link), in serial_test_xdp_link()
Dtc_netkit.c208 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_netkit_basic()
243 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in serial_test_tc_netkit_basic()
322 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_netkit_multi_links_target()
362 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in serial_test_tc_netkit_multi_links_target()
569 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_netkit_device()
669 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_netkit_neigh_links_target()
Dcgroup_link.c188 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
198 err = bpf_link_update(bpf_link__fd(links[0]), in serial_test_cgroup_link()
Dcgroup_iter.c72 iter_fd = bpf_iter_create(bpf_link__fd(link)); in read_from_cgroup_iter()
223 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_walk_dead_self_only()
Dbpf_iter_setsockopt_unix.c87 iter_fd = bpf_iter_create(bpf_link__fd(skel->links.change_sndbuf)); in test_bpf_iter_setsockopt_unix()
Dnetfilter_link_attach.c55 fd = bpf_link__fd(link); in verify_netfilter_link_info()
Dsock_iter_batch.c49 iter_fd = bpf_iter_create(bpf_link__fd(link)); in do_test()
Dmissed.c33 err = bpf_link_get_info_by_fd(bpf_link__fd(skel->links.test2), &info, &len); in test_missed_perf_kprobe()
Dbpf_tcp_ca.c555 err = bpf_link_update(bpf_link__fd(link), in test_link_replace()
562 err = bpf_link_update(bpf_link__fd(link), in test_link_replace()
Dsock_destroy.c21 iter_fd = bpf_iter_create(bpf_link__fd(link)); in start_iter_sockets()
Dcheck_mtu.c61 fd = bpf_link__fd(link); in test_check_mtu_xdp_attach()
Dbpf_iter_setsockopt.c145 iter_fd = bpf_iter_create(bpf_link__fd(iter_skel->links.change_tcp_cc)); in do_bpf_iter_setsockopt()
Dsockmap_basic.c179 err = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), &opts); in test_skmsg_helpers_with_link()
185 err = bpf_link_update(bpf_link__fd(link), bpf_program__fd(prog), &opts); in test_skmsg_helpers_with_link()
301 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_sockmap_copy()
Dtest_struct_ops_module.c266 fd = bpf_link__fd(link); in test_detach_link()
Dcgrp_local_storage.c203 iter_fd = bpf_iter_create(bpf_link__fd(link)); in test_cgroup_iter_sleepable()
Dbpf_obj_id.c141 err = bpf_link_get_info_by_fd(bpf_link__fd(links[i]), in serial_test_bpf_obj_id()
Dunpriv_bpf_disabled.c195 if (ASSERT_OK(bpf_link_get_info_by_fd(bpf_link__fd(skel->links.sys_nanosleep_enter), in test_unpriv_bpf_disabled_negative()
/linux-6.12.1/tools/bpf/bpftool/
Dpids.c144 fd = bpf_iter_create(bpf_link__fd(skel->links.iter)); in build_obj_refs_table()
/linux-6.12.1/tools/lib/bpf/
Dlibbpf.map146 bpf_link__fd;
/linux-6.12.1/samples/bpf/
Dtask_fd_query_user.c100 event_fd = bpf_link__fd(links[link_idx]); in test_debug_fs_kprobe()
/linux-6.12.1/tools/testing/selftests/bpf/
Dtesting_helpers.c246 err = bpf_link_get_info_by_fd(bpf_link__fd(link), info, &info_len); in link_info_prog_id()
/linux-6.12.1/tools/testing/selftests/bpf/map_tests/
Dmap_percpu_stats.c252 iter_fd = bpf_iter_create(bpf_link__fd(link)); in get_cur_elements()

12