Home
last modified time | relevance | path

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

123

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dbtf_map_in_map.c17 err = bpf_obj_get_info_by_fd(bpf_map__fd(map), &info, &info_len); in bpf_map_id()
71 map1_fd = bpf_map__fd(skel->maps.inner_map1); in test_lookup_update()
72 map2_fd = bpf_map__fd(skel->maps.inner_map2); in test_lookup_update()
73 map3_fd = bpf_map__fd(skel->maps.inner_map3); in test_lookup_update()
74 map4_fd = bpf_map__fd(skel->maps.inner_map4); in test_lookup_update()
75 map5_fd = bpf_map__fd(skel->maps.inner_map5); in test_lookup_update()
76 outer_arr_dyn_fd = bpf_map__fd(skel->maps.outer_arr_dyn); in test_lookup_update()
77 outer_arr_fd = bpf_map__fd(skel->maps.outer_arr); in test_lookup_update()
78 outer_hash_fd = bpf_map__fd(skel->maps.outer_hash); in test_lookup_update()
175 inner_map_fd = bpf_map__fd(skel->maps.sockarr_sz2); in test_diff_size()
[all …]
H A Dxdp_noinline.c38 bpf_map_update_elem(bpf_map__fd(skel->maps.vip_map), &key, &value, 0); in test_xdp_noinline()
39 bpf_map_update_elem(bpf_map__fd(skel->maps.ch_rings), &ch_key, &real_num, 0); in test_xdp_noinline()
40 bpf_map_update_elem(bpf_map__fd(skel->maps.reals), &real_num, &real_def, 0); in test_xdp_noinline()
58 bpf_map_lookup_elem(bpf_map__fd(skel->maps.stats), &stats_key, stats); in test_xdp_noinline()
H A Dstacktrace_build_id.c28 control_map_fd = bpf_map__fd(skel->maps.control_map); in test_stacktrace_build_id()
29 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_build_id()
30 stackmap_fd = bpf_map__fd(skel->maps.stackmap); in test_stacktrace_build_id()
31 stack_amap_fd = bpf_map__fd(skel->maps.stack_amap); in test_stacktrace_build_id()
H A 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()
H A Dtailcalls.c36 map_fd = bpf_map__fd(prog_array); in test_tailcall_1()
174 map_fd = bpf_map__fd(prog_array); in test_tailcall_2()
251 map_fd = bpf_map__fd(prog_array); in test_tailcall_3()
277 data_fd = bpf_map__fd(data_map); in test_tailcall_3()
331 map_fd = bpf_map__fd(prog_array); in test_tailcall_4()
339 data_fd = bpf_map__fd(data_map); in test_tailcall_4()
419 map_fd = bpf_map__fd(prog_array); in test_tailcall_5()
427 data_fd = bpf_map__fd(data_map); in test_tailcall_5()
505 map_fd = bpf_map__fd(prog_array); in test_tailcall_bpf2bpf_1()
589 map_fd = bpf_map__fd(prog_array); in test_tailcall_bpf2bpf_2()
[all …]
H A Dtcp_hdr_options.c336 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in fastopen_estab()
337 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in fastopen_estab()
374 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in syncookie_estab()
375 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in syncookie_estab()
419 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in fin()
420 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in fin()
452 hdr_stg_map_fd = bpf_map__fd(skel->maps.hdr_stg_map); in __simple_estab()
453 lport_linum_map_fd = bpf_map__fd(skel->maps.lport_linum_map); in __simple_estab()
506 lport_linum_map_fd = bpf_map__fd(misc_skel->maps.lport_linum_map); in misc()
H A Dsockmap_basic.c56 src_fd = bpf_map__fd(src); in compare_cookies()
57 dst_fd = bpf_map__fd(dst); in compare_cookies()
121 map = bpf_map__fd(skel->maps.sock_map); in test_skmsg_helpers()
157 src = bpf_map__fd(skel->maps.src); in test_sockmap_update()
230 src_fd = bpf_map__fd(src); in test_sockmap_copy()
H A Dstacktrace_build_id_nmi.c72 control_map_fd = bpf_map__fd(skel->maps.control_map); in test_stacktrace_build_id_nmi()
73 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_build_id_nmi()
74 stackmap_fd = bpf_map__fd(skel->maps.stackmap); in test_stacktrace_build_id_nmi()
H A Dcore_retro.c17 err = bpf_map_update_elem(bpf_map__fd(skel->maps.exp_tgid_map), &zero, &my_pid, 0); in test_core_retro()
29 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.results), &zero, &res); in test_core_retro()
H A Dns_current_pid_tgid.c61 err = bpf_map_update_elem(bpf_map__fd(bss_map), &key, &bss, 0); in test_ns_current_pid_tgid()
75 err = bpf_map_lookup_elem(bpf_map__fd(bss_map), &key, &bss); in test_ns_current_pid_tgid()
H A Dringbuf_multi.c54 ringbuf = ring_buffer__new(bpf_map__fd(skel->maps.ringbuf1), in test_ringbuf_multi()
59 err = ring_buffer__add(ringbuf, bpf_map__fd(skel->maps.ringbuf2), in test_ringbuf_multi()
H A Drdonly_maps.c56 err = bpf_map_update_elem(bpf_map__fd(bss_map), &zero, &bss, 0); in test_rdonly_maps()
73 err = bpf_map_lookup_elem(bpf_map__fd(bss_map), &zero, &bss); in test_rdonly_maps()
H A Dbpf_iter.c594 linfo.map.map_fd = bpf_map__fd(skel->maps.hashmap2); in test_bpf_hash_map()
602 linfo.map.map_fd = bpf_map__fd(skel->maps.hashmap3); in test_bpf_hash_map()
609 map_fd = bpf_map__fd(skel->maps.hashmap1); in test_bpf_hash_map()
694 map_fd = bpf_map__fd(skel->maps.hashmap1); in test_bpf_percpu_hash_map()
770 map_fd = bpf_map__fd(skel->maps.arraymap1); in test_bpf_array_map()
866 map_fd = bpf_map__fd(skel->maps.arraymap1); in test_bpf_percpu_array_map()
932 map_fd = bpf_map__fd(skel->maps.sk_stg_map); in test_bpf_sk_storage_map()
1002 linfo.map.map_fd = bpf_map__fd(skel->maps.hashmap1); in test_rdonly_buf_out_of_bound()
H A Dsockmap_listen.c1019 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_skb_redir_to_connected()
1020 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_connected()
1043 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_msg_redir_to_connected()
1044 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_connected()
1130 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_skb_redir_to_listening()
1131 int sock_map = bpf_map__fd(inner_map); in test_skb_redir_to_listening()
1154 int verdict_map = bpf_map__fd(skel->maps.verdict_map); in test_msg_redir_to_listening()
1155 int sock_map = bpf_map__fd(inner_map); in test_msg_redir_to_listening()
1428 mapfd = bpf_map__fd(map); in test_ops_cleanup()
1518 map_fd = bpf_map__fd(map); in test_ops()
[all …]
H A Dxdp_bpf2bpf.c61 map_fd = bpf_map__fd(pkt_skel->maps.vip2tnl); in test_xdp_bpf2bpf()
91 pb = perf_buffer__new(bpf_map__fd(ftrace_skel->maps.perf_buf_map), in test_xdp_bpf2bpf()
H A Dkfree_skb.c118 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_kfree_skb()
139 err = bpf_map_lookup_elem(bpf_map__fd(global_data), &zero, test_ok); in test_kfree_skb()
H A Dmmap.c38 data_map_fd = bpf_map__fd(data_map); in test_mmap()
40 rdmap_fd = bpf_map__fd(skel->maps.rdonly_map); in test_mmap()
60 bpf_map__fd(bss_map), 0); in test_mmap()
H A Dbpf_tcp_ca.c132 err = bpf_map_update_elem(bpf_map__fd(sk_stg_map), &fd, in do_test()
147 err = bpf_map_lookup_elem(bpf_map__fd(sk_stg_map), &fd, in do_test()
H A Dsock_fields.c391 linum_map_fd = bpf_map__fd(skel->maps.linum_map); in test_sock_fields()
392 sk_pkt_out_cnt_fd = bpf_map__fd(skel->maps.sk_pkt_out_cnt); in test_sock_fields()
393 sk_pkt_out_cnt10_fd = bpf_map__fd(skel->maps.sk_pkt_out_cnt10); in test_sock_fields()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dflow_dissector_load.h44 prog_array_fd = bpf_map__fd(prog_array); in bpf_flow_load()
53 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()
H A Dtest_tcpnotify_user.c118 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, &pb_opts); in main()
146 rv = bpf_map_lookup_elem(bpf_map__fd(global_map), &key, &g); in main()
H A Dtest_current_pid_tgid_new_ns.c127 err = bpf_map_update_elem(bpf_map__fd(bss_map), &key, &bss, 0); in main()
141 err = bpf_map_lookup_elem(bpf_map__fd(bss_map), &key, &bss); in main()
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_monitor_user.c521 fd = bpf_map__fd(map_data[REDIRECT_ERR_CNT]); in stats_collect()
525 fd = bpf_map__fd(map_data[EXCEPTION_CNT]); in stats_collect()
530 fd = bpf_map__fd(map_data[CPUMAP_ENQUEUE_CNT]); in stats_collect()
534 fd = bpf_map__fd(map_data[CPUMAP_KTHREAD_CNT]); in stats_collect()
537 fd = bpf_map__fd(map_data[DEVMAP_XMIT_CNT]); in stats_collect()
672 int fd = bpf_map__fd(map); in print_bpf_prog_info()
H A Dxdp_rxq_info_user.c288 fd = bpf_map__fd(stats_global_map); in stats_collect()
291 fd = bpf_map__fd(rx_queue_index_map); in stats_collect()
492 map_fd = bpf_map__fd(map); in main()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/benchs/
H A Dbench_ringbufs.c176 ctx->ringbuf = ring_buffer__new(bpf_map__fd(ctx->skel->maps.ringbuf), in ringbuf_libbpf_setup()
244 r->map_fd = bpf_map__fd(ctx->skel->maps.ringbuf); in ringbuf_custom_setup()
425 ctx->perfbuf = perf_buffer__new_raw(bpf_map__fd(ctx->skel->maps.perfbuf), in perfbuf_libbpf_setup()

123