Lines Matching refs:VERIFY
24 #define VERIFY(expr) ({ \ macro
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()
53 VERIFY(indirect->map_type == direct->map_type); in check_bpf_map_ptr()
54 VERIFY(indirect->key_size == direct->key_size); in check_bpf_map_ptr()
55 VERIFY(indirect->value_size == direct->value_size); in check_bpf_map_ptr()
56 VERIFY(indirect->max_entries == direct->max_entries); in check_bpf_map_ptr()
57 VERIFY(indirect->id == direct->id); in check_bpf_map_ptr()
65 VERIFY(check_bpf_map_ptr(indirect, direct)); in check()
66 VERIFY(check_bpf_map_fields(indirect, key_size, value_size, in check()
74 VERIFY(check(indirect, direct, sizeof(__u32), sizeof(__u32), in check_default()
82 VERIFY(check(indirect, direct, sizeof(__u32), sizeof(__u32), in check_default_noinline()
114 VERIFY(check_default_noinline(&hash->map, map)); in check_hash()
116 VERIFY(hash->n_buckets == MAX_ENTRIES); in check_hash()
117 VERIFY(hash->elem_size == 64); in check_hash()
119 VERIFY(hash->count.counter == 0); in check_hash()
120 VERIFY(bpf_map_sum_elem_count(map) == 0); in check_hash()
129 VERIFY(hash->count.counter == HALF_ENTRIES); in check_hash()
130 VERIFY(bpf_map_sum_elem_count(map) == HALF_ENTRIES); in check_hash()
153 VERIFY(check_default(&array->map, map)); in check_array()
155 VERIFY(array->elem_size == 8); in check_array()
166 VERIFY(n_lookups == MAX_ENTRIES); in check_array()
167 VERIFY(n_keys == MAX_ENTRIES); in check_array()
184 VERIFY(check_default(&prog_array->map, map)); in check_prog_array()
201 VERIFY(check_default(&perf_event_array->map, map)); in check_perf_event_array()
218 VERIFY(check_default(&percpu_hash->map, map)); in check_percpu_hash()
235 VERIFY(check_default(&percpu_array->map, map)); in check_percpu_array()
257 VERIFY(check(&stack_trace->map, map, sizeof(__u32), sizeof(__u64), in check_stack_trace()
275 VERIFY(check_default(&cgroup_array->map, map)); in check_cgroup_array()
292 VERIFY(check_default(&lru_hash->map, map)); in check_lru_hash()
309 VERIFY(check_default(&lru_percpu_hash->map, map)); in check_lru_percpu_hash()
336 VERIFY(check(&lpm_trie->map, map, sizeof(struct lpm_key), sizeof(__u32), in check_lpm_trie()
373 VERIFY(check_default(&array_of_maps->map, map)); in check_array_of_maps()
375 VERIFY(inner_map != NULL); in check_array_of_maps()
376 VERIFY(inner_map->map.max_entries == INNER_MAX_ENTRIES); in check_array_of_maps()
400 VERIFY(check_default(&hash_of_maps->map, map)); in check_hash_of_maps()
402 VERIFY(inner_map != NULL); in check_hash_of_maps()
403 VERIFY(inner_map->map.max_entries == INNER_MAX_ENTRIES); in check_hash_of_maps()
424 VERIFY(check_default(&devmap->map, map)); in check_devmap()
445 VERIFY(check_default(&sockmap->map, map)); in check_sockmap()
466 VERIFY(check_default(&cpumap->map, map)); in check_cpumap()
487 VERIFY(check_default(&xskmap->map, map)); in check_xskmap()
508 VERIFY(check_default(&sockhash->map, map)); in check_sockhash()
529 VERIFY(check(&cgroup_storage->map, map, in check_cgroup_storage()
552 VERIFY(check_default(&reuseport_sockarray->map, map)); in check_reuseport_sockarray()
569 VERIFY(check(&percpu_cgroup_storage->map, map, in check_percpu_cgroup_storage()
590 VERIFY(check(&queue->map, map, 0, sizeof(__u32), MAX_ENTRIES)); in check_queue()
606 VERIFY(check(&stack->map, map, 0, sizeof(__u32), MAX_ENTRIES)); in check_stack()
628 VERIFY(check(&sk_storage->map, map, sizeof(__u32), sizeof(__u32), 0)); in check_sk_storage()
645 VERIFY(check_default(&devmap_hash->map, map)); in check_devmap_hash()
663 VERIFY(check(&ringbuf->map, map, 0, 0, page_size)); in check_ringbuf()