Home
last modified time | relevance | path

Searched defs:map_fd (Results 1 – 25 of 46) sorted by relevance

12

/tools/testing/selftests/bpf/prog_tests/
Dtailcalls.c11 int err, map_fd, prog_fd, main_fd, i, j; in test_tailcall_1() local
149 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_2() local
227 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_3() local
305 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
393 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
481 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_1() local
565 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local
643 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_3() local
733 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_4() local
Dmap_init.c20 static int map_populate(int map_fd, int num) in map_populate()
39 int *map_fd, int populate) in setup()
133 int map_fd, err; in test_pcpu_map_init() local
173 int map_fd, err; in test_pcpu_lru_map_init() local
Dglobal_data.c7 int i, err, map_fd; in test_global_data_number() local
42 int i, err, map_fd; in test_global_data_string() local
77 int i, err, map_fd; in test_global_data_struct() local
105 int err = -ENOMEM, map_fd, zero = 0; in test_global_data_rdonly() local
Dmap_lock.c20 int err, map_fd = *(u32 *) arg; in parallel_map_access() local
50 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
Dtcp_rtt.c46 static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, in verify_sk()
103 int map_fd; in run_test() local
Dglobal_data_init.c7 int err = -ENOMEM, map_fd, zero = 0; in test_global_data_init() local
Dcg_storage_multi.c26 int map_fd; in assert_storage() local
43 int map_fd; in assert_storage_noexist() local
Dload_bytes_relative.c12 int server_fd, cgroup_fd, prog_fd, map_fd, client_fd; in test_load_bytes_relative() local
Dxdp_cpumap_attach.c19 int err, prog_fd, map_fd; in test_xdp_with_cpumap_helpers() local
Dbpf_iter.c569 int err, i, len, map_fd, iter_fd; in test_bpf_hash_map() local
667 int err, i, j, len, map_fd, iter_fd; in test_bpf_percpu_hash_map() local
760 int err, i, map_fd, iter_fd; in test_bpf_array_map() local
845 int err, i, j, map_fd, iter_fd; in test_bpf_percpu_array_map() local
919 int err, i, len, map_fd, iter_fd, num_sockets; in test_bpf_sk_storage_map() local
Dxdp.c17 int err, prog_fd, map_fd; in test_xdp() local
Dxdp_devmap_attach.c20 int err, dm_fd, map_fd; in test_xdp_with_devmap_helpers() local
Dmetadata.c16 static int prog_holds_map(int prog_fd, int map_fd) in prog_holds_map()
Dpinning.c40 int err, map_fd; in test_pinning() local
Dcgroup_attach_multi.c11 static int map_fd = -1; variable
/tools/testing/selftests/bpf/map_tests/
Dsk_storage_map.c148 int btf_fd, map_fd; in create_sk_storage_map() local
170 int i, map_fd, err, *sk_fds; in insert_close_thread() local
229 int i, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_free() local
287 int map_fd = READ_ONCE(sk_storage_map); in update_thread() local
311 int map_fd = READ_ONCE(sk_storage_map); in delete_thread() local
335 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() local
467 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local
Darray_map_batch_ops.c12 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update()
55 int map_fd, *keys, *values, *visited; in test_array_map_batch_ops() local
Dhtab_map_batch_ops.c13 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update()
80 int map_fd, *keys, *visited, key; in __test_map_lookup_and_delete_batch() local
/tools/testing/selftests/bpf/
Dtest_lpm_map.c428 int map_fd; in test_lpm_delete() local
541 int map_fd; in test_lpm_get_next_key() local
695 int map_fd; member
740 static void setup_lpm_mt_test_info(struct lpm_mt_test_info *info, int map_fd) in setup_lpm_mt_test_info()
759 int i, map_fd; in test_lpm_multi_thread() local
Dtest_skb_cgroup_id_user.c86 int map_fd = -1; in get_map_fd_by_prog_id() local
121 int map_fd; in check_ancestor_cgroup_ids() local
Dtest_cgroup_storage.c40 int map_fd, percpu_map_fd, prog_fd, cgroup_fd; in main() local
Dtest_netcnt.c38 int map_fd, percpu_map_fd; in main() local
Dtest_lru_map.c31 int map_fd; in create_map() local
555 static void do_test_lru_sanity5(unsigned long long last_key, int map_fd) in do_test_lru_sanity5()
577 int map_fd; in test_lru_sanity5() local
/tools/lib/bpf/
Dringbuf.c31 int map_fd; member
55 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add()
165 ring_buffer__new(int map_fd, ring_buffer_sample_fn sample_cb, void *ctx, in ring_buffer__new()
/tools/bpf/bpftool/
Diter.c19 int err = -1, map_fd = -1; in do_pin() local

12