Lines Matching refs:MT_BUG_ON

26 #undef MT_BUG_ON
28 #define MT_BUG_ON(__tree, __x) do { \ macro
71 MT_BUG_ON(mt, mtree_erase(mt, index) != xa_mk_value(index & LONG_MAX)); in mtree_erase_index()
72 MT_BUG_ON(mt, mtree_load(mt, index) != NULL); in mtree_erase_index()
120 MT_BUG_ON(mt, ret != eret); in check_mtree_alloc_range()
124 MT_BUG_ON(mt, result != expected); in check_mtree_alloc_range()
137 MT_BUG_ON(mt, ret != eret); in check_mtree_alloc_rrange()
141 MT_BUG_ON(mt, result != expected); in check_mtree_alloc_rrange()
152 MT_BUG_ON(mt, ret != ptr); in check_load()
162 MT_BUG_ON(mt, ret != expected); in check_store_range()
178 MT_BUG_ON(mt, ret != expected); in check_insert_range()
193 MT_BUG_ON(mt, ret != 0); in check_insert()
202 MT_BUG_ON(mt, ret != -EEXIST); in check_dup_insert()
232 MT_BUG_ON(mt, !mtree_empty(mt)); in check_rev_seq()
236 MT_BUG_ON(mt, mtree_insert_index(mt, i, GFP_KERNEL)); in check_rev_seq()
242 MT_BUG_ON(mt, !mt_height(mt)); in check_rev_seq()
244 MT_BUG_ON(mt, !mt_height(mt)); in check_rev_seq()
265 MT_BUG_ON(mt, !mtree_empty(mt)); in check_seq()
269 MT_BUG_ON(mt, mtree_insert_index(mt, i, GFP_KERNEL)); in check_seq()
274 MT_BUG_ON(mt, !mt_height(mt)); in check_seq()
310 MT_BUG_ON(mt, !mtree_empty(mt)); in check_lower_bound_split()
319 MT_BUG_ON(mt, !mtree_empty(mt)); in check_upper_bound_split()
361 MT_BUG_ON(mt, val != xa_mk_value(100)); in check_rev_find()
363 MT_BUG_ON(mt, val != NULL); in check_rev_find()
367 MT_BUG_ON(mt, val != NULL); in check_rev_find()
371 MT_BUG_ON(mt, val != xa_mk_value(100)); in check_rev_find()
373 MT_BUG_ON(mt, val != xa_mk_value(99)); in check_rev_find()
377 MT_BUG_ON(mt, val != xa_mk_value(2)); in check_rev_find()
379 MT_BUG_ON(mt, val != xa_mk_value(1)); in check_rev_find()
381 MT_BUG_ON(mt, val != xa_mk_value(0)); in check_rev_find()
383 MT_BUG_ON(mt, val != NULL); in check_rev_find()
399 MT_BUG_ON(mt, mtree_insert_index(mt, val++, GFP_KERNEL)); in check_find()
415 MT_BUG_ON(mt, mtree_insert_index(mt, val, GFP_KERNEL)); in check_find()
417 MT_BUG_ON(mt, mtree_insert(mt, val, in check_find()
428 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
430 MT_BUG_ON(mt, entry != XA_ZERO_ENTRY); in check_find()
444 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
446 MT_BUG_ON(mt, entry != XA_ZERO_ENTRY); in check_find()
460 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
462 MT_BUG_ON(mt, entry != XA_ZERO_ENTRY); in check_find()
477 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
489 MT_BUG_ON(mt, mtree_insert_index(mt, ULONG_MAX, GFP_KERNEL)); in check_find()
492 MT_BUG_ON(mt, entry != xa_mk_value(LONG_MAX)); in check_find()
494 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
508 MT_BUG_ON(mt, max > 25); in check_find()
515 MT_BUG_ON(mt, xa_mk_value(256) != entry); in check_find()
520 MT_BUG_ON(mt, entry != NULL); in check_find()
525 MT_BUG_ON(mt, mtree_insert_index(mt, ULONG_MAX, GFP_KERNEL)); in check_find()
532 MT_BUG_ON(mt, entry != XA_ZERO_ENTRY); in check_find()
534 MT_BUG_ON(mt, entry != xa_mk_value(LONG_MAX)); in check_find()
536 MT_BUG_ON(mt, xa_mk_value(val) != entry); in check_find()
557 MT_BUG_ON(mas.tree, entry == NULL); in check_find()
586 MT_BUG_ON(mt, entry != entry2); in check_find()
587 MT_BUG_ON(mt, index != mas.index); in check_find()
588 MT_BUG_ON(mt, last != mas.last); in check_find()
595 MT_BUG_ON(mt, entry != entry2); in check_find()
598 MT_BUG_ON(mt, mas_prev(&mas, 0) != NULL); in check_find()
612 MT_BUG_ON(mt, true); in check_find_2()
621 MT_BUG_ON(mt, entry != xa_mk_value(j)); in check_find_2()
625 MT_BUG_ON(mt, j != i + 1); in check_find_2()
637 MT_BUG_ON(mt, entry != xa_mk_value(j)); in check_find_2()
641 MT_BUG_ON(mt, j != 256); in check_find_2()
781 MT_BUG_ON(mt, mas_empty_area_rev(&mas, min, in check_alloc_rev_range()
789 MT_BUG_ON(mt, mas.last + 1 != (holes[i+1] >> 12)); in check_alloc_rev_range()
790 MT_BUG_ON(mt, mas.index != (holes[i+1] >> 12) - (holes[i+2] >> 12)); in check_alloc_rev_range()
957 MT_BUG_ON(mt, mas_empty_area(&mas, min >> 12, in check_alloc_range()
960 MT_BUG_ON(mt, mas.index != holes[i] >> 12); in check_alloc_range()
1002 MT_BUG_ON(mt, !mtree_empty(mt)); in check_ranges()
1006 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1011 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1013 MT_BUG_ON(mt, mt_height(mt)); in check_ranges()
1018 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1026 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1033 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1038 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1065 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1083 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1097 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1110 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1120 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1166 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1190 MT_BUG_ON(mt, mtree_test_store_range(mt, val, ULONG_MAX, in check_ranges()
1229 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1251 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1262 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1277 MT_BUG_ON(mt, !mt_height(mt)); in check_ranges()
1285 MT_BUG_ON(mt, mt_height(mt) >= 4); in check_ranges()
1293 MT_BUG_ON(mt, mt_height(mt) >= 4); in check_ranges()
1297 MT_BUG_ON(mt, mt_height(mt) < 4); in check_ranges()
1306 MT_BUG_ON(mt, mt_height(mt) >= 4); in check_ranges()
1315 MT_BUG_ON(mt, mt_height(mt) >= 4); in check_ranges()
1319 MT_BUG_ON(mt, mt_height(mt) != 4); in check_ranges()
1328 MT_BUG_ON(mt, !mtree_empty(mt)); in check_next_entry()
1334 MT_BUG_ON(mt, mas_walk(&mas) != xa_mk_value(i++)); in check_next_entry()
1338 MT_BUG_ON(mt, entry != NULL); in check_next_entry()
1340 MT_BUG_ON(mt, xa_mk_value(i) != entry); in check_next_entry()
1354 MT_BUG_ON(mt, !mtree_empty(mt)); in check_prev_entry()
1359 MT_BUG_ON(mt, value != xa_mk_value(index)); in check_prev_entry()
1361 MT_BUG_ON(mt, value != xa_mk_value(index - 1)); in check_prev_entry()
1375 MT_BUG_ON(mt, value != xa_mk_value(2)); in check_prev_entry()
1378 MT_BUG_ON(mt, value != NULL); in check_prev_entry()
1382 MT_BUG_ON(mt, value != xa_mk_value(8)); in check_prev_entry()
1385 MT_BUG_ON(mt, value != NULL); in check_prev_entry()
1399 MT_BUG_ON(mt, mas.index != 0); in check_root_expand()
1400 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1401 MT_BUG_ON(mt, mas.index != 0); in check_root_expand()
1402 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_root_expand()
1410 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1414 MT_BUG_ON(mt, ptr != &check_prev_entry); in check_root_expand()
1418 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1432 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1433 MT_BUG_ON(mt, mas.index != 1); in check_root_expand()
1434 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_root_expand()
1438 MT_BUG_ON(mt, ptr != &check_prev_entry); in check_root_expand()
1439 MT_BUG_ON(mt, mas.last != 0); in check_root_expand()
1450 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1451 MT_BUG_ON(mt, (mas.index != 1) && (mas.last != ULONG_MAX)); in check_root_expand()
1455 MT_BUG_ON(mt, (mas.index != 0) && (mas.last != 0)); in check_root_expand()
1456 MT_BUG_ON(mt, ptr != (void *)((unsigned long) check_prev_entry | 1UL)); in check_root_expand()
1468 MT_BUG_ON(mt, ptr != NULL); in check_root_expand()
1469 MT_BUG_ON(mt, (mas.index != ULONG_MAX) && (mas.last != ULONG_MAX)); in check_root_expand()
1473 MT_BUG_ON(mt, (mas.index != 0) && (mas.last != 0)); in check_root_expand()
1474 MT_BUG_ON(mt, ptr != (void *)((unsigned long) check_prev_entry | 2UL)); in check_root_expand()
1535 MT_BUG_ON(mt, !mtree_empty(mt)); in check_gap_combining()
1546 MT_BUG_ON(mt, entry != xa_mk_value(index)); in check_gap_combining()
1550 MT_BUG_ON(mt, entry != xa_mk_value(index + 4)); in check_gap_combining()
1552 MT_BUG_ON(mt, mn1 == mn2); /* test the test. */ in check_gap_combining()
1560 MT_BUG_ON(mt, mas_empty_area_rev(&mas, seq100[3], seq100[4], in check_gap_combining()
1562 MT_BUG_ON(mt, mas.index != index + 1); in check_gap_combining()
1577 MT_BUG_ON(mt, entry != xa_mk_value(index)); in check_gap_combining()
1580 MT_BUG_ON(mt, entry != xa_mk_value(index + 4)); in check_gap_combining()
1583 MT_BUG_ON(mt, mn1 == mn2); /* test the next entry is in the next node. */ in check_gap_combining()
1590 MT_BUG_ON(mt, mas_empty_area_rev(&mas, seq100[10], seq100[11], in check_gap_combining()
1592 MT_BUG_ON(mt, mas.index != seq100[6]); in check_gap_combining()
1605 MT_BUG_ON(mt, mas_empty_area_rev(&mas, seq100[16], seq100[15], in check_gap_combining()
1607 MT_BUG_ON(mt, mas.index != seq100[13]); in check_gap_combining()
1620 MT_BUG_ON(mt, mas_empty_area_rev(&mas, seq100[16], seq100[19], in check_gap_combining()
1623 MT_BUG_ON(mt, mas.index != seq100[18]); in check_gap_combining()
1637 MT_BUG_ON(mt, mas_empty_area_rev(&mas, seq2000[2], seq2000[3], in check_gap_combining()
1639 MT_BUG_ON(mt, mas.index != seq2000[1]); in check_gap_combining()
1785 MT_BUG_ON(mt, entry != xa_mk_value(j)); in bench_mt_for_each()
1816 MT_BUG_ON(mt, entry != xa_mk_value(j)); in bench_mas_for_each()
1847 MT_BUG_ON(mt, entry != xa_mk_value(j)); in bench_mas_prev()
1915 MT_BUG_ON(mt, mas.index != i * 10); in check_iteration()
1916 MT_BUG_ON(mt, mas.last != i * 10 + 9); in check_iteration()
1927 MT_BUG_ON(mt, val != xa_mk_value(i)); in check_iteration()
1932 MT_BUG_ON(mt, mas.index != i * 10); in check_iteration()
1933 MT_BUG_ON(mt, mas.last != i * 10 + 9); in check_iteration()
1944 MT_BUG_ON(mt, val != xa_mk_value(i)); in check_iteration()
1949 MT_BUG_ON(mt, mas.index != i * 10); in check_iteration()
1950 MT_BUG_ON(mt, mas.last != i * 10 + 9); in check_iteration()
1961 MT_BUG_ON(mt, val != xa_mk_value(76)); in check_iteration()
2105 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2108 MT_BUG_ON(mt, val != xa_mk_value(690 / 10)); in next_prev_test()
2109 MT_BUG_ON(mt, mas.index != 690); in next_prev_test()
2110 MT_BUG_ON(mt, mas.last != 695); in next_prev_test()
2113 MT_BUG_ON(mt, val != xa_mk_value(680 / 10)); in next_prev_test()
2114 MT_BUG_ON(mt, mas.index != 680); in next_prev_test()
2115 MT_BUG_ON(mt, mas.last != 685); in next_prev_test()
2118 MT_BUG_ON(mt, val != xa_mk_value(690 / 10)); in next_prev_test()
2119 MT_BUG_ON(mt, mas.index != 690); in next_prev_test()
2120 MT_BUG_ON(mt, mas.last != 695); in next_prev_test()
2123 MT_BUG_ON(mt, val != xa_mk_value(700 / 10)); in next_prev_test()
2124 MT_BUG_ON(mt, mas.index != 700); in next_prev_test()
2125 MT_BUG_ON(mt, mas.last != 705); in next_prev_test()
2130 MT_BUG_ON(mt, val != xa_mk_value(70 / 10)); in next_prev_test()
2131 MT_BUG_ON(mt, mas.index != 70); in next_prev_test()
2132 MT_BUG_ON(mt, mas.last != 75); in next_prev_test()
2135 MT_BUG_ON(mt, val != xa_mk_value(80 / 10)); in next_prev_test()
2136 MT_BUG_ON(mt, mas.index != 80); in next_prev_test()
2137 MT_BUG_ON(mt, mas.last != 85); in next_prev_test()
2140 MT_BUG_ON(mt, val != xa_mk_value(70 / 10)); in next_prev_test()
2141 MT_BUG_ON(mt, mas.index != 70); in next_prev_test()
2142 MT_BUG_ON(mt, mas.last != 75); in next_prev_test()
2148 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2150 MT_BUG_ON(mt, val != xa_mk_value(level2[2] / 10)); in next_prev_test()
2151 MT_BUG_ON(mt, mas.index != level2[2]); in next_prev_test()
2152 MT_BUG_ON(mt, mas.last != level2[3]); in next_prev_test()
2156 MT_BUG_ON(mt, val != xa_mk_value(level2[4] / 10)); in next_prev_test()
2157 MT_BUG_ON(mt, mas.index != level2[4]); in next_prev_test()
2158 MT_BUG_ON(mt, mas.last != level2[5]); in next_prev_test()
2159 MT_BUG_ON(mt, mn == mas.node); in next_prev_test()
2162 MT_BUG_ON(mt, val != xa_mk_value(level2[2] / 10)); in next_prev_test()
2163 MT_BUG_ON(mt, mas.index != level2[2]); in next_prev_test()
2164 MT_BUG_ON(mt, mas.last != level2[3]); in next_prev_test()
2169 MT_BUG_ON(mt, val != xa_mk_value(nr_entries)); in next_prev_test()
2170 MT_BUG_ON(mt, mas.index != (nr_entries * 10)); in next_prev_test()
2171 MT_BUG_ON(mt, mas.last != (nr_entries * 10 + 5)); in next_prev_test()
2174 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2175 MT_BUG_ON(mt, mas.index != last_index); in next_prev_test()
2176 MT_BUG_ON(mt, mas.last != ULONG_MAX); in next_prev_test()
2179 MT_BUG_ON(mt, val != xa_mk_value(nr_entries)); in next_prev_test()
2180 MT_BUG_ON(mt, mas.index != (nr_entries * 10)); in next_prev_test()
2181 MT_BUG_ON(mt, mas.last != (nr_entries * 10 + 5)); in next_prev_test()
2187 MT_BUG_ON(mt, val != xa_mk_value(1)); in next_prev_test()
2188 MT_BUG_ON(mt, mas.index != 10); in next_prev_test()
2189 MT_BUG_ON(mt, mas.last != 15); in next_prev_test()
2192 MT_BUG_ON(mt, val != xa_mk_value(0)); in next_prev_test()
2193 MT_BUG_ON(mt, mas.index != 0); in next_prev_test()
2194 MT_BUG_ON(mt, mas.last != 5); in next_prev_test()
2197 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2198 MT_BUG_ON(mt, mas.index != 0); in next_prev_test()
2199 MT_BUG_ON(mt, mas.last != 5); in next_prev_test()
2200 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in next_prev_test()
2210 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2211 MT_BUG_ON(mt, mas.index != 0); in next_prev_test()
2212 MT_BUG_ON(mt, mas.last != 9); in next_prev_test()
2223 MT_BUG_ON(mt, val != NULL); in next_prev_test()
2668 MT_BUG_ON(mt, ret != 0); in check_dup_gaps()
2805 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 5, 90, 10) != -EBUSY); in check_empty_area_window()
2808 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 6, 90, 5) != -EBUSY); in check_empty_area_window()
2812 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 5, 90, 5) != 0); in check_empty_area_window()
2813 MT_BUG_ON(mt, mas.index != 5); in check_empty_area_window()
2814 MT_BUG_ON(mt, mas.last != 9); in check_empty_area_window()
2820 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 5, 217, 9) != 0); in check_empty_area_window()
2821 MT_BUG_ON(mt, mas.index != 161); in check_empty_area_window()
2822 MT_BUG_ON(mt, mas.last != 169); in check_empty_area_window()
2826 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 100, 218, 3) != 0); in check_empty_area_window()
2827 MT_BUG_ON(mt, mas.index != 216); in check_empty_area_window()
2828 MT_BUG_ON(mt, mas.last != 218); in check_empty_area_window()
2832 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 100, 218, 16) != -EBUSY); in check_empty_area_window()
2839 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 167, 200, 4) != -EBUSY); in check_empty_area_window()
2846 MT_BUG_ON(mt, mas_empty_area_rev(&mas, 100, 162, 4) != -EBUSY); in check_empty_area_window()
2850 MT_BUG_ON(mt, mas_empty_area(&mas, 0, 100, 9) != 0); in check_empty_area_window()
2851 MT_BUG_ON(mt, mas.index != 0); in check_empty_area_window()
2852 MT_BUG_ON(mt, mas.last != 8); in check_empty_area_window()
2855 MT_BUG_ON(mt, mas_empty_area(&mas, 0, 100, 4) != 0); in check_empty_area_window()
2856 MT_BUG_ON(mt, mas.index != 0); in check_empty_area_window()
2857 MT_BUG_ON(mt, mas.last != 3); in check_empty_area_window()
2860 MT_BUG_ON(mt, mas_empty_area(&mas, 0, 100, 11) != -EBUSY); in check_empty_area_window()
2863 MT_BUG_ON(mt, mas_empty_area(&mas, 5, 100, 6) != -EBUSY); in check_empty_area_window()
2866 MT_BUG_ON(mt, mas_empty_area(&mas, 0, 8, 10) != -EINVAL); in check_empty_area_window()
2872 MT_BUG_ON(mt, mas_empty_area(&mas, 100, 163, 6) != -EBUSY); in check_empty_area_window()
2890 MT_BUG_ON(mt, mas_empty_area(&mas, 0, max, size) != 0); in check_empty_area_fill()
2891 MT_BUG_ON(mt, mas.last != mas.index + size - 1); in check_empty_area_fill()
2901 MT_BUG_ON(mt, mas_empty_area(&mas, 0, max, size) != -EBUSY); in check_empty_area_fill()
2914 MT_BUG_ON(mt, mas_empty_area(&mas, 629506048, 690000000, 0x5000) != 0); in check_empty_area_fill()
3077 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3078 MT_BUG_ON(mt, mas.status != ma_underflow); in check_state_handling()
3083 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3084 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3085 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3086 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3092 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3093 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3094 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3095 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3100 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3101 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3102 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3103 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3108 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3109 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3110 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3111 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3116 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3117 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3118 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3119 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3123 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3124 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3125 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3126 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3130 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3131 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3132 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3133 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3138 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3139 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3140 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3141 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3145 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3146 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3147 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3148 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3153 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3154 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3155 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3156 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3160 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3161 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3162 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3163 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3167 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3168 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3169 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3170 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3175 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3176 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3177 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3178 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3183 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3184 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3185 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3186 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3192 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3193 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3194 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3195 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3200 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3201 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3202 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3203 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3207 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3208 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3209 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3210 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3215 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3216 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3217 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3218 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3224 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3225 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3226 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3227 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3232 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3233 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3234 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3235 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3239 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3240 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3241 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3242 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3247 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3248 MT_BUG_ON(mt, mas.index != 1); in check_state_handling()
3249 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3250 MT_BUG_ON(mt, mas.status != ma_none); in check_state_handling()
3255 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3256 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3257 MT_BUG_ON(mt, mas.last != 0); in check_state_handling()
3258 MT_BUG_ON(mt, mas.status != ma_root); in check_state_handling()
3273 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3274 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3275 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3276 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3282 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3283 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3284 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3285 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3292 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3293 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3294 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3295 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3299 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3300 MT_BUG_ON(mt, mas.index != 0x2000); in check_state_handling()
3301 MT_BUG_ON(mt, mas.last != 0x2500); in check_state_handling()
3302 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3306 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3307 MT_BUG_ON(mt, mas.index != 0x2501); in check_state_handling()
3308 MT_BUG_ON(mt, mas.last != 0x2fff); in check_state_handling()
3309 MT_BUG_ON(mt, !mas_is_overflow(&mas)); in check_state_handling()
3313 MT_BUG_ON(mt, entry != ptr3); in check_state_handling()
3314 MT_BUG_ON(mt, mas.index != 0x3000); in check_state_handling()
3315 MT_BUG_ON(mt, mas.last != 0x3500); in check_state_handling()
3316 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3320 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3321 MT_BUG_ON(mt, mas.index != 0x3501); in check_state_handling()
3322 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3323 MT_BUG_ON(mt, !mas_is_overflow(&mas)); in check_state_handling()
3327 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3328 MT_BUG_ON(mt, mas.index != 0x3501); in check_state_handling()
3329 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3330 MT_BUG_ON(mt, !mas_is_overflow(&mas)); in check_state_handling()
3334 MT_BUG_ON(mt, entry != ptr3); in check_state_handling()
3335 MT_BUG_ON(mt, mas.index != 0x3000); in check_state_handling()
3336 MT_BUG_ON(mt, mas.last != 0x3500); in check_state_handling()
3337 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3345 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3346 MT_BUG_ON(mt, mas.index != 0x2000); in check_state_handling()
3347 MT_BUG_ON(mt, mas.last != 0x2500); in check_state_handling()
3348 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3352 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3353 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3354 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3355 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3360 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3361 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3362 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3363 MT_BUG_ON(mt, !mas_is_active(&mas)); /* spanning limit */ in check_state_handling()
3365 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3366 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3367 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3368 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3372 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3373 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3374 MT_BUG_ON(mt, mas.last != 0x0FFF); in check_state_handling()
3375 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3379 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3380 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3381 MT_BUG_ON(mt, mas.last != 0x0FFF); in check_state_handling()
3382 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3386 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3387 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3388 MT_BUG_ON(mt, mas.last != 0x0FFF); in check_state_handling()
3389 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3393 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3394 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3395 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3396 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3400 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3401 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3402 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3403 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3407 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3408 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3409 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3410 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3415 MT_BUG_ON(mt, entry != ptr3); in check_state_handling()
3418 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3419 MT_BUG_ON(mt, mas.index != 0x2000); in check_state_handling()
3420 MT_BUG_ON(mt, mas.last != 0x2500); in check_state_handling()
3421 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3425 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3426 MT_BUG_ON(mt, mas.index != 0x1501); in check_state_handling()
3427 MT_BUG_ON(mt, mas.last != 0x1FFF); in check_state_handling()
3428 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3432 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3433 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3434 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3435 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3440 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3441 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3442 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3443 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3449 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3450 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3451 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3452 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3457 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3458 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3459 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3460 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3464 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3465 MT_BUG_ON(mt, mas.index != 0x2000); in check_state_handling()
3466 MT_BUG_ON(mt, mas.last != 0x2500); in check_state_handling()
3467 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3472 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3473 MT_BUG_ON(mt, mas.index != 0x2501); in check_state_handling()
3474 MT_BUG_ON(mt, mas.last != 0x2FFF); in check_state_handling()
3479 MT_BUG_ON(mt, entry != ptr3); in check_state_handling()
3480 MT_BUG_ON(mt, mas.index != 0x3000); in check_state_handling()
3481 MT_BUG_ON(mt, mas.last != 0x3500); in check_state_handling()
3482 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3486 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3487 MT_BUG_ON(mt, mas.index != 0x3501); in check_state_handling()
3488 MT_BUG_ON(mt, mas.last != ULONG_MAX); in check_state_handling()
3493 MT_BUG_ON(mt, entry != ptr3); in check_state_handling()
3494 MT_BUG_ON(mt, mas.index != 0x3000); in check_state_handling()
3495 MT_BUG_ON(mt, mas.last != 0x3500); in check_state_handling()
3496 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3500 MT_BUG_ON(mt, entry != ptr2); in check_state_handling()
3501 MT_BUG_ON(mt, mas.index != 0x2000); in check_state_handling()
3502 MT_BUG_ON(mt, mas.last != 0x2500); in check_state_handling()
3503 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3508 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3509 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3510 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3511 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3515 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3516 MT_BUG_ON(mt, mas.index != 0); in check_state_handling()
3517 MT_BUG_ON(mt, mas.last != 0x0FFF); in check_state_handling()
3518 MT_BUG_ON(mt, !mas_is_underflow(&mas)); in check_state_handling()
3523 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3524 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3525 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3526 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3531 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3532 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3533 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3534 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3539 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3540 MT_BUG_ON(mt, mas.index != 0x1501); in check_state_handling()
3541 MT_BUG_ON(mt, mas.last != 0x1fff); in check_state_handling()
3542 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3548 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3549 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3550 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3551 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3557 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3558 MT_BUG_ON(mt, mas.index != 0x1501); in check_state_handling()
3559 MT_BUG_ON(mt, mas.last != 0x1fff); in check_state_handling()
3560 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3566 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3567 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3568 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3569 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3575 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3576 MT_BUG_ON(mt, mas.index != 0x1501); in check_state_handling()
3577 MT_BUG_ON(mt, mas.last != 0x1fff); in check_state_handling()
3578 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3585 MT_BUG_ON(mt, entry != ptr); in check_state_handling()
3586 MT_BUG_ON(mt, mas.index != 0x1000); in check_state_handling()
3587 MT_BUG_ON(mt, mas.last != 0x1500); in check_state_handling()
3588 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3594 MT_BUG_ON(mt, entry != NULL); in check_state_handling()
3595 MT_BUG_ON(mt, mas.index != 0x1501); in check_state_handling()
3596 MT_BUG_ON(mt, mas.last != 0x1fff); in check_state_handling()
3597 MT_BUG_ON(mt, !mas_is_active(&mas)); in check_state_handling()
3625 MT_BUG_ON(mt, i != location - 2); in alloc_cyclic_testing()
3626 MT_BUG_ON(mt, i != next - 3); in alloc_cyclic_testing()
3627 MT_BUG_ON(mt, mtree_load(mt, location) != mt); in alloc_cyclic_testing()
3634 MT_BUG_ON(mt, ret != 0); in alloc_cyclic_testing()
3636 MT_BUG_ON(mt, ret != 0); in alloc_cyclic_testing()
3638 MT_BUG_ON(mt, ret != 1); in alloc_cyclic_testing()