Searched refs:hash_map (Results 1 – 12 of 12) sorted by relevance
| /tools/testing/selftests/bpf/progs/ |
| A D | test_ringbuf_map_key.c | 26 } hash_map SEC(".maps"); 55 lookup_val = (int *)bpf_map_lookup_elem(&hash_map, sample); in test_ringbuf_mem_map_key() 67 bpf_map_update_elem(&hash_map, &sample_copy, &sample->seq, BPF_ANY); in test_ringbuf_mem_map_key()
|
| A D | test_lookup_and_delete.c | 15 } hash_map SEC(".maps"); 21 bpf_map_update_elem(&hash_map, &set_key, &set_value, BPF_NOEXIST); in bpf_lookup_and_delete_test()
|
| A D | freplace_attach_probe.c | 21 } hash_map SEC(".maps"); 29 val = bpf_map_lookup_elem(&hash_map, &key); in new_handle_kprobe()
|
| A D | test_hash_large_key.c | 13 } hash_map SEC(".maps"); 39 if (bpf_map_update_elem(&hash_map, key, &value, BPF_ANY)) in bpf_hash_large_key_test()
|
| A D | test_map_ops.c | 14 } hash_map SEC(".maps"); 46 err = bpf_map_update_elem(&hash_map, &key, &val, BPF_NOEXIST); in map_update() 59 err = bpf_map_delete_elem(&hash_map, &key); in map_delete()
|
| A D | test_map_lock.c | 19 } hash_map SEC(".maps"); 41 val = bpf_map_lookup_elem(&hash_map, &key); in bpf_map_lock_test()
|
| A D | map_kptr.c | 26 struct hash_map { struct 31 } hash_map SEC(".maps"); 110 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, hash_map, array_of_hash_maps); 116 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_HASH_OF_MAPS, hash_map, hash_of_hash_maps); 208 TEST(hash_map); in test_map_kptr() 409 bpf_map_update_elem(&hash_map, &key, &val, 0); in test_map_kptr_ref1() 418 TEST(hash_map); in test_map_kptr_ref1() 456 TEST(hash_map); in test_map_kptr_ref2()
|
| A D | iters.c | 531 } hash_map SEC(".maps"); 542 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive1() 564 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive2() 569 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive2() 588 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_err_too_permissive3() 609 map_val = bpf_map_lookup_elem(&hash_map, &key); in iter_tricky_but_fine()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | lookup_and_delete.c | 54 err = bpf_map__set_type(skel->maps.hash_map, map_type); in setup_prog() 58 err = bpf_map__set_max_entries(skel->maps.hash_map, MAX_ENTRIES); in setup_prog() 66 *map_fd = bpf_map__fd(skel->maps.hash_map); in setup_prog() 115 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_hash() 151 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_percpu_hash() 196 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_lru_hash() 246 err = bpf_map__lookup_and_delete_elem(skel->maps.hash_map, in test_lookup_and_delete_lru_percpu_hash()
|
| A D | hash_large_key.c | 22 hash_map_fd = bpf_map__fd(skel->maps.hash_map); in test_hash_large_key()
|
| A D | map_kptr.c | 67 ret = bpf_map__delete_elem(skel->maps.hash_map, &key, sizeof(key), 0); in test_map_kptr_success()
|
| A D | ringbuf.c | 455 err = bpf_map_lookup_elem(skel_map_key->maps.hash_map.map_fd, in process_map_key_sample()
|
Completed in 18 milliseconds