Lines Matching full:keys
121 static void test_percpu_map_op_cpu_flag(struct bpf_map *map, void *keys, size_t key_sz, u32 entries, in test_percpu_map_op_cpu_flag() argument
149 err = bpf_map_lookup_elem_flags(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
153 err = bpf_map_update_elem(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
158 err = bpf_map_lookup_elem_flags(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
163 err = bpf_map_lookup_elem_flags(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
168 err = bpf_map_update_elem(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
173 err = bpf_map_update_elem(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
177 err = bpf_map__update_elem(map, keys, key_sz, values, value_sz, flags); in test_percpu_map_op_cpu_flag()
181 err = bpf_map_lookup_elem_flags(map_fd, keys, values, flags); in test_percpu_map_op_cpu_flag()
185 err = bpf_map__lookup_elem(map, keys, key_sz, values, value_sz, flags); in test_percpu_map_op_cpu_flag()
194 err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, in test_percpu_map_op_cpu_flag()
204 err = bpf_map__update_elem(map, keys + i * key_sz, key_sz, values, in test_percpu_map_op_cpu_flag()
212 err = bpf_map__lookup_elem(map, keys + i * key_sz, key_sz, values, in test_percpu_map_op_cpu_flag()
228 err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); in test_percpu_map_op_cpu_flag()
238 err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); in test_percpu_map_op_cpu_flag()
250 err = bpf_map_update_batch(map_fd, keys, values, &count, &batch_opts); in test_percpu_map_op_cpu_flag()
260 err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values, &count, &batch_opts); in test_percpu_map_op_cpu_flag()
276 err = bpf_map_lookup_batch(map_fd, NULL, &batch, keys, values_percpu, &count, in test_percpu_map_op_cpu_flag()
304 int *keys, nr_cpus, i, err; in test_percpu_map_cpu_flag() local
313 keys = calloc(max_entries, key_sz); in test_percpu_map_cpu_flag()
314 if (!ASSERT_OK_PTR(keys, "calloc keys")) in test_percpu_map_cpu_flag()
318 keys[i] = i; in test_percpu_map_cpu_flag()
322 free(keys); in test_percpu_map_cpu_flag()
334 test_percpu_map_op_cpu_flag(map, keys, key_sz, nr_cpus, nr_cpus, true); in test_percpu_map_cpu_flag()
337 free(keys); in test_percpu_map_cpu_flag()