Lines Matching refs:assert
106 assert(lru->map_fd != -1); in pfect_lru_init()
109 assert(lru->free_nodes); in pfect_lru_init()
155 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_EXIST)); in pfect_lru_lookup_or_insert()
158 assert(!bpf_map_update_elem(lru->map_fd, &key, &node, BPF_NOEXIST)); in pfect_lru_lookup_or_insert()
175 assert(dist_fd != -1); in read_keys()
177 assert(fstat(dist_fd, &fst) == 0); in read_keys()
179 assert(b); in read_keys()
181 assert(read(dist_fd, b, fst.st_size) == fst.st_size); in read_keys()
190 assert(retkeys); in read_keys()
261 assert(waitpid(pid[i], &status, 0) == pid[i]); in run_parallel()
262 assert(status == 0); in run_parallel()
290 assert(0); in do_test_lru_dist()
322 assert(lru_map_fd != -1); in test_parallel_lru_dist()
343 assert(sched_next_online(0, 0) != -1); in test_lru_loss0()
350 assert(map_fd != -1); in test_lru_loss0()
357 assert(bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST) == 0); in test_lru_loss0()
395 assert(sched_next_online(0, 0) != -1); in test_lru_loss1()
402 assert(map_fd != -1); in test_lru_loss1()
407 assert(!bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST)); in test_lru_loss1()
435 assert(bpf_map_update_elem(map_fd, &next_ins_key, value, in do_test_parallel_lru_loss()
480 assert(map_fd != -1); in test_parallel_lru_loss()
510 assert(nr_cpus != -1); in main()