Home
last modified time | relevance | path

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

12

/Linux-v5.4/tools/testing/selftests/bpf/
Dflow_dissector_load.h38 prog_array_fd = bpf_map__fd(prog_array); in bpf_flow_load()
47 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()
Dtest_sock_fields.c460 addr_map_fd = bpf_map__fd(map); in main()
464 sk_map_fd = bpf_map__fd(map); in main()
468 tp_map_fd = bpf_map__fd(map); in main()
472 linum_map_fd = bpf_map__fd(map); in main()
476 sk_pkt_out_cnt_fd = bpf_map__fd(map); in main()
480 sk_pkt_out_cnt10_fd = bpf_map__fd(map); in main()
Dtest_tcpnotify_user.c124 pb = perf_buffer__new(bpf_map__fd(perf_map), 8, &pb_opts); in main()
145 rv = bpf_map_lookup_elem(bpf_map__fd(global_map), &key, &g); in main()
Dtest_select_reuseport.c117 result_map = bpf_map__fd(map); in prepare_bpf_obj()
123 tmp_index_ovr_map = bpf_map__fd(map); in prepare_bpf_obj()
129 linum_map = bpf_map__fd(map); in prepare_bpf_obj()
135 data_check_map = bpf_map__fd(map); in prepare_bpf_obj()
Dtest_netcnt.c31 return bpf_map__fd(map); in bpf_find_map()
Dtest_tcpbpf_user.c87 return bpf_map__fd(map); in bpf_find_map()
Dget_cgroup_id_user.c43 return bpf_map__fd(map); in bpf_find_map()
Dtest_socket_cookie.c106 map_fd = bpf_map__fd(map); in validate_map()
Dxdping.c193 map_fd = bpf_map__fd(map); in main()
Dtest_maps.c847 map_fd_rx = bpf_map__fd(bpf_map_rx); in test_sockmap()
859 map_fd_tx = bpf_map__fd(bpf_map_tx); in test_sockmap()
871 map_fd_msg = bpf_map__fd(bpf_map_msg); in test_sockmap()
883 map_fd_break = bpf_map__fd(bpf_map_break); in test_sockmap()
1192 mim_fd = bpf_map__fd(map); in test_map_in_map()
1209 mim_fd = bpf_map__fd(map); in test_map_in_map()
Dtest_progs.c187 return bpf_map__fd(map); in bpf_find_map()
/Linux-v5.4/tools/perf/util/
Dbpf_map.c32 int fd = bpf_map__fd(map), err; in bpf_map__fprintf()
/Linux-v5.4/samples/bpf/
Dxdp_rxq_info_user.c295 fd = bpf_map__fd(stats_global_map); in stats_collect()
298 fd = bpf_map__fd(rx_queue_index_map); in stats_collect()
499 map_fd = bpf_map__fd(map); in main()
Dxdp_fwd_user.c130 map_fd = bpf_map__fd(bpf_object__find_map_by_name(obj, in main()
Dxdp1_user.c139 map_fd = bpf_map__fd(map); in main()
Dxdp_adjust_tail_user.c158 map_fd = bpf_map__fd(map); in main()
Dxdp_sample_pkts_user.c162 map_fd = bpf_map__fd(map); in main()
Dhbm.c142 map_fd = bpf_map__fd(map); in prog_load()
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dperf_buffer.c60 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_perf_buffer()
Dcore_reloc.c347 err = bpf_map_update_elem(bpf_map__fd(data_map), in test_core_reloc()
356 err = bpf_map_lookup_elem(bpf_map__fd(data_map), &zero, &data); in test_core_reloc()
Dget_stack_raw_tp.c123 pb = perf_buffer__new(bpf_map__fd(map), 8, &pb_opts); in test_get_stack_raw_tp()
Dglobal_data.c112 map_fd = bpf_map__fd(map); in test_global_data_rdonly()
Dtcp_rtt.c140 map_fd = bpf_map__fd(map); in run_test()
/Linux-v5.4/tools/lib/bpf/
Dlibbpf.map16 bpf_map__fd;
Dlibbpf.h323 LIBBPF_API int bpf_map__fd(const struct bpf_map *map);

12