Home
last modified time | relevance | path

Searched refs:bpf_map__fd (Results 1 – 25 of 120) sorted by relevance

12345

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dbtf_map_in_map.c17 err = bpf_map_get_info_by_fd(bpf_map__fd(map), &info, &info_len); in bpf_map_id()
38 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update()
39 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update()
40 map3_fd = bpf_map__fd(skel->maps.inner_map3); in test_lookup_update()
41 map4_fd = bpf_map__fd(skel->maps.inner_map4); in test_lookup_update()
42 map5_fd = bpf_map__fd(skel->maps.inner_map5); in test_lookup_update()
43 outer_arr_dyn_fd = bpf_map__fd(skel->maps.outer_arr_dyn); in test_lookup_update()
44 outer_arr_fd = bpf_map__fd(skel->maps.outer_arr); in test_lookup_update()
45 outer_hash_fd = bpf_map__fd(skel->maps.outer_hash); in test_lookup_update()
118 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
[all …]
Drecursion.c23 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
25 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash1), &key); in test_recursion()
29 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash2), &key); in test_recursion()
31 bpf_map_delete_elem(bpf_map__fd(skel->maps.hash2), &key); in test_recursion()
Dunpriv_bpf_disabled.c78 perfbuf = perf_buffer__new(bpf_map__fd(skel->maps.perfbuf), 8, process_perfbuf, NULL, NULL, in test_unpriv_bpf_disabled_positive()
83 ringbuf = ring_buffer__new(bpf_map__fd(skel->maps.ringbuf), process_ringbuf, NULL, NULL); in test_unpriv_bpf_disabled_positive()
247 map_fds[0] = bpf_map__fd(skel->maps.array); in test_unpriv_bpf_disabled()
248 map_fds[1] = bpf_map__fd(skel->maps.percpu_array); in test_unpriv_bpf_disabled()
249 map_fds[2] = bpf_map__fd(skel->maps.hash); in test_unpriv_bpf_disabled()
250 map_fds[3] = bpf_map__fd(skel->maps.percpu_hash); in test_unpriv_bpf_disabled()
251 map_fds[4] = bpf_map__fd(skel->maps.perfbuf); in test_unpriv_bpf_disabled()
252 map_fds[5] = bpf_map__fd(skel->maps.ringbuf); in test_unpriv_bpf_disabled()
253 map_fds[6] = bpf_map__fd(skel->maps.prog_array); in test_unpriv_bpf_disabled()
Dtailcalls.c46 map_fd = bpf_map__fd(prog_array); in test_tailcall_1()
182 map_fd = bpf_map__fd(prog_array); in test_tailcall_2()
259 map_fd = bpf_map__fd(prog_array); in test_tailcall_count()
332 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
347 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
364 data_fd = bpf_map__fd(data_map); in test_tailcall_count()
443 map_fd = bpf_map__fd(prog_array); in test_tailcall_4()
451 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
533 map_fd = bpf_map__fd(prog_array); in test_tailcall_5()
541 data_fd = bpf_map__fd(data_map); in test_tailcall_5()
[all …]
Dsockmap_basic.c64 src_fd = bpf_map__fd(src); in compare_cookies()
65 dst_fd = bpf_map__fd(dst); in compare_cookies()
121 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
149 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers_with_link()
216 src = bpf_map__fd(skel->maps.src); in test_sockmap_update()
282 src_fd = bpf_map__fd(src); in test_sockmap_copy()
344 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach()
371 map = bpf_map__fd(skel->maps.sock_map); in test_sockmap_skb_verdict_attach_with_link()
420 map_fd = bpf_map__fd(skel->maps.sock_map); in test_sockmap_progs_query()
466 map = bpf_map__fd(skel->maps.sock_map_rx); in test_sockmap_skb_verdict_shutdown()
[all …]
Dxdp_noinline.c44 bpf_map_update_elem(bpf_map__fd(skel->maps.vip_map), &key, &value, 0); in test_xdp_noinline()
45 bpf_map_update_elem(bpf_map__fd(skel->maps.ch_rings), &ch_key, &real_num, 0); in test_xdp_noinline()
46 bpf_map_update_elem(bpf_map__fd(skel->maps.reals), &real_num, &real_def, 0); in test_xdp_noinline()
65 bpf_map_lookup_elem(bpf_map__fd(skel->maps.stats), &stats_key, stats); in test_xdp_noinline()
Dstacktrace_build_id.c27 control_map_fd = bpf_map__fd(skel->maps.control_map); in test_stacktrace_build_id()
28 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_build_id()
29 stackmap_fd = bpf_map__fd(skel->maps.stackmap); in test_stacktrace_build_id()
30 stack_amap_fd = bpf_map__fd(skel->maps.stack_amap); in test_stacktrace_build_id()
Dmetadata.c76 bpf_map__fd(obj->maps.rodata)); in test_metadata_unused()
93 bpf_map__fd(obj->maps.rodata), NULL); in test_metadata_unused()
110 bpf_map__fd(obj->maps.rodata)); in test_metadata_used()
127 bpf_map__fd(obj->maps.rodata), NULL); in test_metadata_used()
Dstacktrace_map_skip.c18 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_map_skip()
22 stackmap_fd = bpf_map__fd(skel->maps.stackmap); in test_stacktrace_map_skip()
26 stack_amap_fd = bpf_map__fd(skel->maps.stack_amap); in test_stacktrace_map_skip()
Dverify_pkcs7_sig.c318 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
327 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
336 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
347 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
361 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
369 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, BPF_ANY); in test_verify_pkcs7_sig_from_map()
382 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, in test_verify_pkcs7_sig_from_map()
389 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, in test_verify_pkcs7_sig_from_map()
396 ret = bpf_map_update_elem(bpf_map__fd(map), &zero, &data, in test_verify_pkcs7_sig_from_map()
Dmap_lookup_percpu_elem.c37 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_array_map), &key, buf, 0); in test_map_lookup_percpu_elem()
40 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_hash_map), &key, buf, 0); in test_map_lookup_percpu_elem()
43 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.percpu_lru_hash_map), &key, buf, 0); in test_map_lookup_percpu_elem()
Dtcp_hdr_options.c300 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in fastopen_estab()
301 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in fastopen_estab()
337 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in syncookie_estab()
338 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in syncookie_estab()
381 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in fin()
382 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in fin()
413 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in __simple_estab()
414 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in __simple_estab()
466 lport_linum_map_fd = bpf_map__fd(misc_skel->maps.lport_linum_map); in misc()
Dsockmap_listen.c730 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_skb_redir_to_connected()
731 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_connected()
754 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_msg_redir_to_connected()
755 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected()
772 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_msg_redir_to_connected_with_link()
773 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected_with_link()
850 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_skb_redir_to_listening()
851 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_listening()
874 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_msg_redir_to_listening()
875 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_listening()
[all …]
Dnetns_cookie.c36 map = bpf_map__fd(skel->maps.sock_map); in test_netns_cookie()
53 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.sockops_netns_cookies), in test_netns_cookie()
65 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.sk_msg_netns_cookies), in test_netns_cookie()
Dsk_storage_tracing.c30 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.sk_stg_map), &sk_fd, in check_sk_stg()
63 err = bpf_map_update_elem(bpf_map__fd(skel->maps.del_sk_stg_map), in do_test()
83 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.del_sk_stg_map), in do_test()
Dstacktrace_build_id_nmi.c55 control_map_fd = bpf_map__fd(skel->maps.control_map); in test_stacktrace_build_id_nmi()
56 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_build_id_nmi()
57 stackmap_fd = bpf_map__fd(skel->maps.stackmap); in test_stacktrace_build_id_nmi()
Dtest_local_storage.c111 if (!check_syscall_operations(bpf_map__fd(skel->maps.task_storage_map), in test_test_local_storage()
128 if (!check_syscall_operations(bpf_map__fd(skel->maps.inode_storage_map), in test_test_local_storage()
160 if (!check_syscall_operations(bpf_map__fd(skel->maps.sk_storage_map), in test_test_local_storage()
Dlegacy_printk.c24 map_fd = bpf_map__fd(skel->maps.my_pid_map); in execute_one_variant()
40 map_fd = bpf_map__fd(skel->maps.res_map); in execute_one_variant()
Dtest_bprm_opts.c95 err = run_set_secureexec(bpf_map__fd(skel->maps.secure_exec_task_map), in test_test_bprm_opts()
101 err = run_set_secureexec(bpf_map__fd(skel->maps.secure_exec_task_map), in test_test_bprm_opts()
Dmap_btf.c33 new_fd = dup(bpf_map__fd(skel->maps.array)); in do_test_normal_map_btf()
74 new_fd = dup(bpf_map__fd(skel->maps.inner_array)); in do_test_map_in_map_btf()
Dlibbpf_get_fd_by_id_opts.c32 ret = bpf_map_get_info_by_fd(bpf_map__fd(skel->maps.data_input), in test_libbpf_get_fd_by_id_opts()
63 ret = bpf_map_update_elem(bpf_map__fd(skel->maps.data_input), &zero, in test_libbpf_get_fd_by_id_opts()
/linux-6.12.1/tools/perf/util/
Dbpf_lock_contention.c121 fd = bpf_map__fd(skel->maps.cpu_filter); in lock_contention_prepare()
133 fd = bpf_map__fd(skel->maps.task_filter); in lock_contention_prepare()
145 fd = bpf_map__fd(skel->maps.task_filter); in lock_contention_prepare()
152 fd = bpf_map__fd(skel->maps.type_filter); in lock_contention_prepare()
161 fd = bpf_map__fd(skel->maps.addr_filter); in lock_contention_prepare()
170 fd = bpf_map__fd(skel->maps.cgroup_filter); in lock_contention_prepare()
257 ts_fd = bpf_map__fd(skel->maps.tstamp); in account_end_timestamp()
258 stat_fd = bpf_map__fd(skel->maps.lock_stat); in account_end_timestamp()
280 ts_fd = bpf_map__fd(skel->maps.tstamp_cpu); in account_end_timestamp()
333 int task_fd = bpf_map__fd(skel->maps.task_data); in lock_contention_get_name()
[all …]
Dbpf_off_cpu.c82 fd = bpf_map__fd(skel->maps.task_filter); in off_cpu_start()
216 fd = bpf_map__fd(skel->maps.cpu_filter); in off_cpu_prepare()
227 fd = bpf_map__fd(skel->maps.task_filter); in off_cpu_prepare()
245 fd = bpf_map__fd(skel->maps.task_filter); in off_cpu_prepare()
257 fd = bpf_map__fd(skel->maps.cgroup_filter); in off_cpu_prepare()
331 fd = bpf_map__fd(skel->maps.off_cpu); in off_cpu_write()
332 stack = bpf_map__fd(skel->maps.stacks); in off_cpu_write()
Dbpf_ftrace.c66 fd = bpf_map__fd(skel->maps.cpu_filter); in perf_ftrace__latency_prepare_bpf()
78 fd = bpf_map__fd(skel->maps.task_filter); in perf_ftrace__latency_prepare_bpf()
129 fd = bpf_map__fd(skel->maps.latency); in perf_ftrace__latency_read_bpf()
/linux-6.12.1/tools/testing/selftests/bpf/
Dflow_dissector_load.h39 prog_array_fd = bpf_map__fd(prog_array); in bpf_flow_load()
48 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()

12345