Searched refs:pcpu_hash_map (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | map_kptr.c | 45 struct pcpu_hash_map { struct 50 } pcpu_hash_map SEC(".maps"); 126 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_ARRAY_OF_MAPS, pcpu_hash_map, array_of_pcpu_hash_maps); 132 DEFINE_MAP_OF_MAP(BPF_MAP_TYPE_HASH_OF_MAPS, pcpu_hash_map, hash_of_pcpu_hash_maps); 224 TEST(pcpu_hash_map); in test_map_kptr() 425 bpf_map_update_elem(&pcpu_hash_map, &key, &val, 0); in test_map_kptr_ref1() 435 TEST_PCPU(pcpu_hash_map); in test_map_kptr_ref1() 473 TEST_PCPU(pcpu_hash_map); in test_map_kptr_ref2()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | map_kptr.c | 71 ret = bpf_map__delete_elem(skel->maps.pcpu_hash_map, &key, sizeof(key), 0); in test_map_kptr_success() 72 ASSERT_OK(ret, "pcpu_hash_map delete"); in test_map_kptr_success()
|