Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlookup_and_delete.c13 static int fill_values(int map_fd) in fill_values()
27 static int fill_values_percpu(int map_fd) in fill_values_percpu()
45 int *map_fd) in setup_prog()
102 int map_fd, err; in test_lookup_and_delete_hash() local
138 int map_fd, err, i; in test_lookup_and_delete_percpu_hash() local
178 int map_fd, err; in test_lookup_and_delete_lru_hash() local
224 int map_fd, err, i, cpucnt = 0; in test_lookup_and_delete_lru_percpu_hash() local
H A Dtailcalls.c18 int err, map_fd, prog_fd, main_fd, i, j; in test_tailcall_1() local
154 int err, map_fd, prog_f in test_tailcall_2() local
233 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_count() local
414 int err, map_fd, prog_fd, main_fd, data_fd, i; test_tailcall_4() local
504 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; test_tailcall_5() local
594 int err, map_fd, prog_fd, main_fd, i; test_tailcall_bpf2bpf_1() local
678 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_2() local
758 int err, map_fd, prog_fd, main_fd, i; test_tailcall_bpf2bpf_3() local
852 int err, map_fd, prog_fd, main_fd, data_fd, i; test_tailcall_bpf2bpf_4() local
937 int err, map_fd, prog_fd, main_fd, data_fd, i, val; test_tailcall_bpf2bpf_6() local
1016 int err, map_fd, prog_fd, data_fd, i, val; test_tailcall_bpf2bpf_fentry_entry() local
1121 __u32 zero = 0, prog1_fd, prog2_fd, map_fd; poke_update() local
1198 int err, map_fd, prog_fd, main_data_fd, fentry_data_fd, fexit_data_fd, i, val; test_tailcall_hierarchy_count() local
1509 int prog_fd, tc_prog_fd, map_fd; test_tailcall_freplace() local
1568 int prog_fd, map_fd; test_tailcall_bpf2bpf_freplace() local
[all...]
H A 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
H A Dtask_local_storage.c90 int err, map_fd, prog_fd, task_fd; in test_recursion() local
258 int map_fd, parent_task_fd, ev_fd; in test_uptr_basic() local
380 int err, task_fd, map_fd; in test_uptr_across_pages() local
419 int err, task_fd, map_fd; in test_uptr_update_failure() local
463 int map_fd, err; in test_uptr_map_failure() local
H A 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
H A Dbpf_obj_pinning.c41 int map_fd = -1, map_fd2 = -1; in bpf_obj_pinning_detached() local
123 static void validate_pin(int map_fd, const char *map_name, int src_value, in validate_pin()
183 static void validate_get(int map_fd, const char *map_name, int src_value, in validate_get()
247 int map_fd; in bpf_obj_pinning_mounted() local
H A Dxdp_devmap_attach.c24 int err, dm_fd, dm_fd_redir, map_fd; in test_xdp_with_devmap_helpers() local
118 int err, dm_fd_frags, map_fd; in test_xdp_with_devmap_frags_helpers() local
160 int err, dm_fd, dm_fd_redir, map_fd, ifindex_dst; in test_xdp_with_devmap_helpers_veth() local
H A Dtest_bprm_opts.c16 static int update_storage(int map_fd, int secureexec) in update_storage()
32 static int run_set_secureexec(int map_fd, int secureexec) in run_set_secureexec()
H A Dmap_lock.c23 int err, map_fd = *(u32 *) arg; in parallel_map_access() local
53 int prog_fd, map_fd[2], vars[17] = {}; in test_map_lock() local
H A Dxdp_cpumap_attach.c21 int err, prog_fd, prog_redir_fd, map_fd; in test_xdp_with_cpumap_helpers() local
107 int err, frags_prog_fd, map_fd; in test_xdp_with_cpumap_frags_helpers() local
H A Dbpf_iter.c779 int err, i, len, map_fd, iter_fd; test_bpf_hash_map() local
872 int err, i, j, len, map_fd, iter_fd; test_bpf_percpu_hash_map() local
956 int err, i, map_fd, hash_fd, iter_fd; test_bpf_array_map() local
1056 int err, i, j, map_fd, iter_fd; test_bpf_percpu_array_map() local
1129 int err, len, map_fd, iter_fd; test_bpf_sk_storage_delete() local
1198 int err, map_fd, val = -1; test_bpf_sk_storage_get() local
1255 int err, i, len, map_fd, iter_fd, num_sockets; test_bpf_sk_storage_map() local
[all...]
H A Dtcp_rtt.c50 static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, in verify_sk()
110 int map_fd; in run_test() local
H A Dcg_storage_multi.c26 int map_fd; in assert_storage() local
43 int map_fd; in assert_storage_noexist() local
/linux/tools/testing/selftests/bpf/map_tests/
H A Dmap_percpu_stats.c22 static void map_info(int map_fd, struct bpf_map_info *info) in map_info()
51 static __u32 map_count_elements(__u32 type, int map_fd) in map_count_elements()
63 static void delete_and_lookup_batch(int map_fd, void *keys, __u32 count) in delete_and_lookup_batch()
89 static void delete_all_elements(__u32 type, int map_fd, bool batch) in delete_all_elements()
143 int map_fd; member
150 int map_fd; in create_small_hash() local
264 static void check_expected_number_elements(__u32 n_inserted, int map_fd, in check_expected_number_elements()
292 static void __test(int map_fd) in __test()
342 int map_fd; in map_create_opts() local
H A Dsk_storage_map.c144 int btf_fd, map_fd; in create_sk_storage_map() local
166 int i, map_fd, err, *sk_fds; in insert_close_thread() local
225 int i, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_free() local
283 int map_fd = READ_ONCE(sk_storage_map); in update_thread() local
307 int map_fd = READ_ONCE(sk_storage_map); in delete_thread() local
331 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() local
463 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local
H A Dlpm_trie_map_batch_ops.c22 static void map_batch_update(int map_fd, __u32 max_entries, in map_batch_update()
70 int map_fd, *values, *visited; in test_lpm_trie_map_batch_ops() local
H A Dlpm_trie_map_basic_ops.c446 int map_fd; in test_lpm_delete() local
556 int map_fd; in test_lpm_get_next_key() local
703 int map_fd; member
748 static void setup_lpm_mt_test_info(struct lpm_mt_test_info *info, int map_fd) in setup_lpm_mt_test_info()
768 int i, map_fd; in test_lpm_multi_thread() local
H A Darray_map_batch_ops.c15 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update()
72 int map_fd, *keys, *visited; in __test_map_lookup_and_update_batch() local
H A Dlpm_trie_map_get_next_key.c27 int map_fd; member
67 int map_fd; in test_lpm_trie_map_get_next_key() local
H A Dhtab_map_batch_ops.c14 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update()
81 int map_fd, *keys, *visited, key; in __test_map_lookup_and_delete_batch() local
H A Dmap_in_map_batch_ops.c15 static __u32 get_map_id_from_fd(int map_fd) in get_map_id_from_fd()
34 int map_fd, map_index, ret; in create_inner_maps() local
/linux/samples/bpf/
H A Dtest_lru_dist.c96 int map_fd; member
207 int map_fd; in create_map() local
338 int map_fd; in test_lru_loss0() local
389 int map_fd; in test_lru_loss1() local
424 int map_fd = *(int *)data; in do_test_parallel_lru_loss() local
467 int map_fd; in test_parallel_lru_loss() local
H A Dxdp_adjust_tail_user.c52 static void poll_stats(unsigned int map_fd, unsigned int kill_after_s) in poll_stats()
89 int i, prog_fd, map_fd, opt; in main() local
H A Dxdp_fwd_user.c32 static int do_attach(int idx, int prog_fd, int map_fd, const char *name) in do_attach()
125 int prog_fd = -1, map_fd = -1; in main() local
/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c31 int map_fd; in create_map() local
547 static void do_test_lru_sanity5(unsigned long long last_key, int map_fd) in do_test_lru_sanity5()
568 int map_fd; in test_lru_sanity5() local

1234