Lines Matching full:map

38 static inline int check_bpf_map_fields(struct bpf_map *map, __u32 key_size,  in check_bpf_map_fields()  argument
41 VERIFY(map->map_type == g_map_type); in check_bpf_map_fields()
42 VERIFY(map->key_size == key_size); in check_bpf_map_fields()
43 VERIFY(map->value_size == value_size); in check_bpf_map_fields()
44 VERIFY(map->max_entries == max_entries); in check_bpf_map_fields()
45 VERIFY(map->id > 0); in check_bpf_map_fields()
92 struct bpf_map map; member
106 __s64 bpf_map_sum_elem_count(struct bpf_map *map) __ksym;
111 struct bpf_map *map = (struct bpf_map *)&m_hash; in check_hash() local
114 VERIFY(check_default_noinline(&hash->map, map)); in check_hash()
120 VERIFY(bpf_map_sum_elem_count(map) == 0); in check_hash()
130 VERIFY(bpf_map_sum_elem_count(map) == HALF_ENTRIES); in check_hash()
136 struct bpf_map map; member
150 struct bpf_map *map = (struct bpf_map *)&m_array; in check_array() local
153 VERIFY(check_default(&array->map, map)); in check_array()
157 for (i = 0; i < array->map.max_entries && i < LOOP_BOUND; ++i) { in check_array()
182 struct bpf_map *map = (struct bpf_map *)&m_prog_array; in check_prog_array() local
184 VERIFY(check_default(&prog_array->map, map)); in check_prog_array()
199 struct bpf_map *map = (struct bpf_map *)&m_perf_event_array; in check_perf_event_array() local
201 VERIFY(check_default(&perf_event_array->map, map)); in check_perf_event_array()
216 struct bpf_map *map = (struct bpf_map *)&m_percpu_hash; in check_percpu_hash() local
218 VERIFY(check_default(&percpu_hash->map, map)); in check_percpu_hash()
233 struct bpf_map *map = (struct bpf_map *)&m_percpu_array; in check_percpu_array() local
235 VERIFY(check_default(&percpu_array->map, map)); in check_percpu_array()
241 struct bpf_map map; member
255 struct bpf_map *map = (struct bpf_map *)&m_stack_trace; in check_stack_trace() local
257 VERIFY(check(&stack_trace->map, map, sizeof(__u32), sizeof(__u64), in check_stack_trace()
273 struct bpf_map *map = (struct bpf_map *)&m_cgroup_array; in check_cgroup_array() local
275 VERIFY(check_default(&cgroup_array->map, map)); in check_cgroup_array()
290 struct bpf_map *map = (struct bpf_map *)&m_lru_hash; in check_lru_hash() local
292 VERIFY(check_default(&lru_hash->map, map)); in check_lru_hash()
307 struct bpf_map *map = (struct bpf_map *)&m_lru_percpu_hash; in check_lru_percpu_hash() local
309 VERIFY(check_default(&lru_percpu_hash->map, map)); in check_lru_percpu_hash()
315 struct bpf_map map; member
334 struct bpf_map *map = (struct bpf_map *)&m_lpm_trie; in check_lpm_trie() local
336 VERIFY(check(&lpm_trie->map, map, sizeof(struct lpm_key), sizeof(__u32), in check_lpm_trie()
369 struct bpf_map *map = (struct bpf_map *)&m_array_of_maps; in check_array_of_maps() local
373 VERIFY(check_default(&array_of_maps->map, map)); in check_array_of_maps()
376 VERIFY(inner_map->map.max_entries == INNER_MAX_ENTRIES); in check_array_of_maps()
396 struct bpf_map *map = (struct bpf_map *)&m_hash_of_maps; in check_hash_of_maps() local
400 VERIFY(check_default(&hash_of_maps->map, map)); in check_hash_of_maps()
403 VERIFY(inner_map->map.max_entries == INNER_MAX_ENTRIES); in check_hash_of_maps()
409 struct bpf_map map; member
422 struct bpf_map *map = (struct bpf_map *)&m_devmap; in check_devmap() local
424 VERIFY(check_default(&devmap->map, map)); in check_devmap()
430 struct bpf_map map; member
443 struct bpf_map *map = (struct bpf_map *)&m_sockmap; in check_sockmap() local
445 VERIFY(check_default(&sockmap->map, map)); in check_sockmap()
451 struct bpf_map map; member
464 struct bpf_map *map = (struct bpf_map *)&m_cpumap; in check_cpumap() local
466 VERIFY(check_default(&cpumap->map, map)); in check_cpumap()
472 struct bpf_map map; member
485 struct bpf_map *map = (struct bpf_map *)&m_xskmap; in check_xskmap() local
487 VERIFY(check_default(&xskmap->map, map)); in check_xskmap()
493 struct bpf_map map; member
506 struct bpf_map *map = (struct bpf_map *)&m_sockhash; in check_sockhash() local
508 VERIFY(check_default(&sockhash->map, map)); in check_sockhash()
514 struct bpf_map map; member
527 struct bpf_map *map = (struct bpf_map *)&m_cgroup_storage; in check_cgroup_storage() local
529 VERIFY(check(&cgroup_storage->map, map, in check_cgroup_storage()
536 struct bpf_map map; member
550 struct bpf_map *map = (struct bpf_map *)&m_reuseport_sockarray; in check_reuseport_sockarray() local
552 VERIFY(check_default(&reuseport_sockarray->map, map)); in check_reuseport_sockarray()
567 struct bpf_map *map = (struct bpf_map *)&m_percpu_cgroup_storage; in check_percpu_cgroup_storage() local
569 VERIFY(check(&percpu_cgroup_storage->map, map, in check_percpu_cgroup_storage()
576 struct bpf_map map; member
588 struct bpf_map *map = (struct bpf_map *)&m_queue; in check_queue() local
590 VERIFY(check(&queue->map, map, 0, sizeof(__u32), MAX_ENTRIES)); in check_queue()
604 struct bpf_map *map = (struct bpf_map *)&m_stack; in check_stack() local
606 VERIFY(check(&stack->map, map, 0, sizeof(__u32), MAX_ENTRIES)); in check_stack()
612 struct bpf_map map; member
626 struct bpf_map *map = (struct bpf_map *)&m_sk_storage; in check_sk_storage() local
628 VERIFY(check(&sk_storage->map, map, sizeof(__u32), sizeof(__u32), 0)); in check_sk_storage()
643 struct bpf_map *map = (struct bpf_map *)&m_devmap_hash; in check_devmap_hash() local
645 VERIFY(check_default(&devmap_hash->map, map)); in check_devmap_hash()
651 struct bpf_map map; member
661 struct bpf_map *map = (struct bpf_map *)&m_ringbuf; in check_ringbuf() local
663 VERIFY(check(&ringbuf->map, map, 0, 0, page_size)); in check_ringbuf()