Searched refs:bpf_map__fd (Results 1 – 25 of 29) sorted by relevance
12
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | flow_dissector_load.h | 38 prog_array_fd = bpf_map__fd(prog_array); in bpf_flow_load() 47 *keys_fd = bpf_map__fd(keys); in bpf_flow_load()
|
D | test_sock_fields.c | 460 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()
|
D | test_tcpnotify_user.c | 124 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()
|
D | test_select_reuseport.c | 117 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()
|
D | test_netcnt.c | 31 return bpf_map__fd(map); in bpf_find_map()
|
D | test_tcpbpf_user.c | 87 return bpf_map__fd(map); in bpf_find_map()
|
D | get_cgroup_id_user.c | 43 return bpf_map__fd(map); in bpf_find_map()
|
D | test_socket_cookie.c | 106 map_fd = bpf_map__fd(map); in validate_map()
|
D | xdping.c | 193 map_fd = bpf_map__fd(map); in main()
|
D | test_maps.c | 847 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()
|
D | test_progs.c | 187 return bpf_map__fd(map); in bpf_find_map()
|
/Linux-v5.4/tools/perf/util/ |
D | bpf_map.c | 32 int fd = bpf_map__fd(map), err; in bpf_map__fprintf()
|
/Linux-v5.4/samples/bpf/ |
D | xdp_rxq_info_user.c | 295 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()
|
D | xdp_fwd_user.c | 130 map_fd = bpf_map__fd(bpf_object__find_map_by_name(obj, in main()
|
D | xdp1_user.c | 139 map_fd = bpf_map__fd(map); in main()
|
D | xdp_adjust_tail_user.c | 158 map_fd = bpf_map__fd(map); in main()
|
D | xdp_sample_pkts_user.c | 162 map_fd = bpf_map__fd(map); in main()
|
D | hbm.c | 142 map_fd = bpf_map__fd(map); in prog_load()
|
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/ |
D | perf_buffer.c | 60 pb = perf_buffer__new(bpf_map__fd(perf_buf_map), 1, &pb_opts); in test_perf_buffer()
|
D | core_reloc.c | 347 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()
|
D | get_stack_raw_tp.c | 123 pb = perf_buffer__new(bpf_map__fd(map), 8, &pb_opts); in test_get_stack_raw_tp()
|
D | global_data.c | 112 map_fd = bpf_map__fd(map); in test_global_data_rdonly()
|
D | tcp_rtt.c | 140 map_fd = bpf_map__fd(map); in run_test()
|
/Linux-v5.4/tools/lib/bpf/ |
D | libbpf.map | 16 bpf_map__fd;
|
D | libbpf.h | 323 LIBBPF_API int bpf_map__fd(const struct bpf_map *map);
|
12