Home
last modified time | relevance | path

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

12345678

/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
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
Dtailcalls.c13 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
225 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_count() local
321 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_4() local
411 int err, map_fd, prog_fd, main_fd, data_fd, i, key[] = { 1111, 1234, 5678 }; in test_tailcall_5() local
501 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_1() local
585 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_2() local
665 int err, map_fd, prog_fd, main_fd, i; in test_tailcall_bpf2bpf_3() local
759 int err, map_fd, prog_fd, main_fd, data_fd, i; in test_tailcall_bpf2bpf_4() local
844 int err, map_fd, prog_fd, main_fd, data_fd, i, val; in test_tailcall_bpf2bpf_6() local
[all …]
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
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
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()
Dxdp_cpumap_attach.c19 int err, prog_fd, map_fd; in test_xdp_with_cpumap_helpers() local
79 int err, frags_prog_fd, map_fd; in test_xdp_with_cpumap_frags_helpers() local
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
Dxdp_devmap_attach.c20 int err, dm_fd, map_fd; in test_xdp_with_devmap_helpers() local
92 int err, dm_fd_frags, map_fd; in test_xdp_with_devmap_frags_helpers() local
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
Dmap_percpu_stats.c21 static void map_info(int map_fd, struct bpf_map_info *info) in map_info()
50 static __u32 map_count_elements(__u32 type, int map_fd) in map_count_elements()
62 static void delete_and_lookup_batch(int map_fd, void *keys, __u32 count) in delete_and_lookup_batch()
88 static void delete_all_elements(__u32 type, int map_fd, bool batch) in delete_all_elements()
136 int map_fd; member
142 int map_fd; in create_small_hash() local
237 static void check_expected_number_elements(__u32 n_inserted, int map_fd, in check_expected_number_elements()
265 static void __test(int map_fd) in __test()
308 int map_fd; in map_create_opts() local
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
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/tools/lib/bpf/
Dringbuf.c32 int map_fd; member
50 int map_fd; member
73 int ring_buffer__add(struct ring_buffer *rb, int map_fd, in ring_buffer__add()
183 ring_buffer__new(int map_fd, ring_buffer_sample_fn sample_cb, void *ctx, in ring_buffer__new()
351 static int user_ringbuf_map(struct user_ring_buffer *rb, int map_fd) in user_ringbuf_map()
421 user_ring_buffer__new(int map_fd, const struct user_ring_buffer_opts *opts) in user_ring_buffer__new()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
Dtest_lpm_map.c428 int map_fd; in test_lpm_delete() local
538 int map_fd; in test_lpm_get_next_key() local
685 int map_fd; member
730 static void setup_lpm_mt_test_info(struct lpm_mt_test_info *info, int map_fd) in setup_lpm_mt_test_info()
750 int i, map_fd; in test_lpm_multi_thread() local
/kernel/linux/linux-5.10/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
/kernel/linux/linux-6.6/samples/bpf/
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
Dtest_cgrp2_attach.c43 static int prog_load(int map_fd, int verdict) in prog_load()
94 int prog_fd, map_fd, ret, key; in attach_filter() local
/kernel/linux/linux-5.10/samples/bpf/
Dtest_lru_dist.c102 int map_fd; member
210 int map_fd; in create_map() local
341 int map_fd; in test_lru_loss0() local
392 int map_fd; in test_lru_loss1() local
427 int map_fd = *(int *)data; in do_test_parallel_lru_loss() local
470 int map_fd; in test_parallel_lru_loss() local
Dxdp_fwd_user.c32 static int do_attach(int idx, int prog_fd, int map_fd, const char *name) in do_attach()
81 int prog_fd, map_fd = -1; in main() local
Dtest_cgrp2_attach.c42 static int prog_load(int map_fd, int verdict) in prog_load()
89 int prog_fd, map_fd, ret, key; in attach_filter() local

12345678