Lines Matching refs:MT_BUG_ON

29 #define RCU_MT_BUG_ON(test, y) {if (y) { test->stop = true; } MT_BUG_ON(test->mt, y); }
83 MT_BUG_ON(mas->tree, get_alloc_node_count(mas) != mas->alloc->total); in check_mas_alloc_node_count()
109 MT_BUG_ON(mt, mas_alloc_req(&mas) != 3); in check_new_node()
111 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node()
112 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
114 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
116 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
117 MT_BUG_ON(mt, mn == NULL); in check_new_node()
118 MT_BUG_ON(mt, mas.alloc == NULL); in check_new_node()
119 MT_BUG_ON(mt, mas.alloc->slot[0] == NULL); in check_new_node()
130 MT_BUG_ON(mt, mas_alloc_req(&mas) != 1); in check_new_node()
133 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
136 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
137 MT_BUG_ON(mt, mn == NULL); in check_new_node()
138 MT_BUG_ON(mt, mn->slot[0] != NULL); in check_new_node()
139 MT_BUG_ON(mt, mn->slot[1] != NULL); in check_new_node()
140 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
151 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
153 MT_BUG_ON(mt, mas_alloc_req(&mas) != 0); in check_new_node()
155 MT_BUG_ON(mt, mas.alloc == NULL); in check_new_node()
156 MT_BUG_ON(mt, mas.alloc->slot[0] == NULL); in check_new_node()
157 MT_BUG_ON(mt, mas.alloc->slot[1] == NULL); in check_new_node()
159 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
165 MT_BUG_ON(mt, mas_alloc_req(&mas) != 1); in check_new_node()
168 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
169 MT_BUG_ON(mt, mas_allocated(&mas) != 1); in check_new_node()
172 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
173 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
174 MT_BUG_ON(mt, mn == NULL); in check_new_node()
175 MT_BUG_ON(mt, mn->slot[0] != NULL); in check_new_node()
176 MT_BUG_ON(mt, mn->slot[1] != NULL); in check_new_node()
177 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
179 MT_BUG_ON(mt, mas_allocated(&mas) != 1); in check_new_node()
180 MT_BUG_ON(mt, mas.alloc->node_count); in check_new_node()
183 MT_BUG_ON(mt, mas_alloc_req(&mas) != 2); in check_new_node()
185 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
186 MT_BUG_ON(mt, mas_allocated(&mas) != 3); in check_new_node()
187 MT_BUG_ON(mt, mas.alloc == NULL); in check_new_node()
188 MT_BUG_ON(mt, mas.alloc->slot[0] == NULL); in check_new_node()
189 MT_BUG_ON(mt, mas.alloc->slot[1] == NULL); in check_new_node()
192 MT_BUG_ON(mt, mas_allocated(&mas) != i); in check_new_node()
193 MT_BUG_ON(mt, !mn); in check_new_node()
194 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
201 MT_BUG_ON(mt, mas_alloc_req(&mas) != total); in check_new_node()
203 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
223 MT_BUG_ON(mt, mas.alloc->node_count != e); in check_new_node()
225 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
226 MT_BUG_ON(mt, mas_allocated(&mas) != i - 1); in check_new_node()
227 MT_BUG_ON(mt, !mn); in check_new_node()
236 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
239 MT_BUG_ON(mt, mas_allocated(&mas) != j - 1); in check_new_node()
240 MT_BUG_ON(mt, !mn); in check_new_node()
241 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
243 MT_BUG_ON(mt, mas_allocated(&mas) != j); in check_new_node()
245 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
246 MT_BUG_ON(mt, mas_allocated(&mas) != j - 1); in check_new_node()
250 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
254 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
256 MT_BUG_ON(mt, mas_allocated(&mas) != i - j); in check_new_node()
258 MT_BUG_ON(mt, mas_allocated(&mas) != i - j - 1); in check_new_node()
264 MT_BUG_ON(mt, mas_allocated(&mas) != i - j); in check_new_node()
266 MT_BUG_ON(mt, mas_allocated(&mas) != i); in check_new_node()
268 MT_BUG_ON(mt, mas_allocated(&mas) != i - j); in check_new_node()
270 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
273 MT_BUG_ON(mt, mas_allocated(&mas) != i - j - 1); in check_new_node()
275 MT_BUG_ON(mt, mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
284 MT_BUG_ON(mt, !mas.alloc); in check_new_node()
290 MT_BUG_ON(mt, !smn->slot[j]); in check_new_node()
296 MT_BUG_ON(mt, mas_allocated(&mas) != total); in check_new_node()
299 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
303 MT_BUG_ON(mt, mas_allocated(&mas) != i); /* check request filled */ in check_new_node()
306 MT_BUG_ON(mt, mn == NULL); in check_new_node()
307 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
311 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
318 MT_BUG_ON(mt, mas_allocated(&mas) != i); /* check request filled */ in check_new_node()
321 MT_BUG_ON(mt, mn == NULL); in check_new_node()
322 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
324 MT_BUG_ON(mt, mas_allocated(&mas2) != j); in check_new_node()
326 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
327 MT_BUG_ON(mt, mas_allocated(&mas2) != i); in check_new_node()
330 MT_BUG_ON(mt, mas_allocated(&mas2) != j); in check_new_node()
332 MT_BUG_ON(mt, mn == NULL); in check_new_node()
333 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
337 MT_BUG_ON(mt, mas_allocated(&mas2) != 0); in check_new_node()
341 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
343 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node()
344 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
345 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 1); in check_new_node()
346 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
349 MT_BUG_ON(mt, mn == NULL); in check_new_node()
350 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
351 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS); in check_new_node()
352 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS - 1); in check_new_node()
355 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 1); in check_new_node()
356 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
360 MT_BUG_ON(mt, mas_alloc_req(&mas) != 1); in check_new_node()
361 MT_BUG_ON(mt, mas.node != MA_ERROR(-ENOMEM)); in check_new_node()
362 MT_BUG_ON(mt, !mas_nomem(&mas, GFP_KERNEL)); in check_new_node()
363 MT_BUG_ON(mt, mas_alloc_req(&mas)); in check_new_node()
364 MT_BUG_ON(mt, mas.alloc->node_count != 1); in check_new_node()
365 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 2); in check_new_node()
367 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
368 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 1); in check_new_node()
369 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
371 MT_BUG_ON(mt, mas.alloc->node_count != 1); in check_new_node()
372 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS + 2); in check_new_node()
374 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
379 MT_BUG_ON(mt, not_empty(mn)); in check_new_node()
383 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_new_node()
440 MT_BUG_ON(mt, mas_allocated(&mas) != 5); in check_new_node()
445 MT_BUG_ON(mt, mas_allocated(&mas) != 10); in check_new_node()
451 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS - 1); in check_new_node()
456 MT_BUG_ON(mt, mas_allocated(&mas) != 10 + MAPLE_ALLOC_SLOTS - 1); in check_new_node()
468 MT_BUG_ON(mt, mtree_test_erase(mt, index) != ptr); in check_erase()
587 MT_BUG_ON(mt, root_node == mt->ma_root); in check_erase_testset()
589 MT_BUG_ON(mt, root_node != mt->ma_root); in check_erase_testset()
592 MT_BUG_ON(mt, !mte_is_leaf(mt->ma_root)); in check_erase_testset()
1062 MT_BUG_ON(mt, !mt_height(mt)); in check_erase2_testset()
1085 MT_BUG_ON(mt, check != entry_count); in check_erase2_testset()
1098 MT_BUG_ON(mt, 1); in check_erase2_testset()
1116 MT_BUG_ON(mt, check != entry_count); in check_erase2_testset()
1118 MT_BUG_ON(mt, mtree_load(mas.tree, 0) != NULL); in check_erase2_testset()
33906 MT_BUG_ON(mt, !!mt_find(mt, &start, 140735933906943UL)); in check_erase2_sets()
33963 MT_BUG_ON(mt, mas.last != 140014592573439); in check_erase2_sets()
34006 MT_BUG_ON(mt, mas.last != 139921865547775); in check_erase2_sets()
34021 MT_BUG_ON(mt, mas.last != 139953197322239); in check_erase2_sets()
34037 MT_BUG_ON(mt, mas.last != 140222968475647); in check_erase2_sets()
34056 MT_BUG_ON(mt, entry != xa_mk_value(140656779083776)); in check_erase2_sets()
34058 MT_BUG_ON(mt, entry != xa_mk_value(140656766251008)); in check_erase2_sets()
34088 MT_BUG_ON(mt, ptr == mtree_load(mt, 140551363420159)); in check_erase2_sets()
34124 MT_BUG_ON(mt, mas.last != 140109040959487); in check_erase2_sets()
34135 MT_BUG_ON(mt, 0 != mtree_load(mt, 140415537422336)); in check_erase2_sets()
34148 MT_BUG_ON(mt, mas.index != 139918401601536); in check_erase2_sets()
34217 MT_BUG_ON(mt, mas.last != 140583003750399); in check_erase2_sets()
34259 MT_BUG_ON(mt, 0 != mtree_load(mt, 94637033459712)); in check_erase2_sets()
34267 MT_BUG_ON(mt, 0 != mtree_load(mt, 94637033459712)); in check_erase2_sets()
34299 MT_BUG_ON(mt, mas.last != 4041211903); in check_erase2_sets()
34870 MT_BUG_ON(test->mt, eval_rcu_entry(test, entry, &update_2, in rcu_val()
34911 MT_BUG_ON(test->mt, entry != expected); in rcu_loop()
34919 MT_BUG_ON(test->mt, eval_rcu_entry(test, entry, in rcu_loop()
34940 MT_BUG_ON(mt, !mt_in_rcu(mt)); in run_check_rcu()
34961 MT_BUG_ON(mt, !vals->seen_entry2); in run_check_rcu()
35002 MT_BUG_ON(mt, !mt_in_rcu(mt)); in run_check_rcu_slot_store()
35038 MT_BUG_ON(mt, !mt_in_rcu(mt)); in run_check_rcu_slowread()
35066 MT_BUG_ON(mt, !vals->seen_entry2); in run_check_rcu_slowread()
35067 MT_BUG_ON(mt, !vals->seen_entry3); in run_check_rcu_slowread()
35068 MT_BUG_ON(mt, !vals->seen_both); in run_check_rcu_slowread()
35093 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35097 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(val)); in check_rcu_simulated()
35110 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35114 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(val)); in check_rcu_simulated()
35127 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35131 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35144 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35148 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(val)); in check_rcu_simulated()
35160 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35164 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(val)); in check_rcu_simulated()
35176 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35180 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(val)); in check_rcu_simulated()
35201 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35206 MT_BUG_ON(mt, mas_next(&mas_reader, ULONG_MAX) != xa_mk_value(val)); in check_rcu_simulated()
35220 MT_BUG_ON(mt, mas_walk(&mas_reader) != xa_mk_value(target/10)); in check_rcu_simulated()
35225 MT_BUG_ON(mt, mas_prev(&mas_reader, 0) != xa_mk_value(val)); in check_rcu_simulated()
35396 MT_BUG_ON(mt, count != e); in check_dfs_preorder()
35411 MT_BUG_ON(mt, count != e); in check_dfs_preorder()
35423 MT_BUG_ON(mt, count != e); in check_dfs_preorder()
35434 MT_BUG_ON(mt, mas_is_err(&mas)); in check_dfs_preorder()
35463 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35466 MT_BUG_ON(mt, allocated == 0); in check_prealloc()
35467 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35470 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35472 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35475 MT_BUG_ON(mt, allocated == 0); in check_prealloc()
35476 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35477 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35480 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35483 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35486 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35488 MT_BUG_ON(mt, mas_allocated(&mas) != allocated - 1); in check_prealloc()
35491 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35494 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35496 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35499 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35501 MT_BUG_ON(mt, mas_allocated(&mas) != allocated - 1); in check_prealloc()
35502 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35505 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35509 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35512 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35514 MT_BUG_ON(mt, mas_allocated(&mas) != allocated - 1); in check_prealloc()
35516 MT_BUG_ON(mt, mas_allocated(&mas) != allocated); in check_prealloc()
35517 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35520 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35522 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35525 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35527 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_prealloc()
35531 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35533 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35535 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_prealloc()
35538 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35541 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35543 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_prealloc()
35547 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35550 MT_BUG_ON(mt, allocated != 1 + height * 2); in check_prealloc()
35552 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_prealloc()
35556 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL & GFP_NOWAIT) == 0); in check_prealloc()
35559 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35564 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL) != 0); in check_prealloc()
35567 MT_BUG_ON(mt, allocated == 0); in check_prealloc()
35568 MT_BUG_ON(mt, allocated != 1 + height * 3); in check_prealloc()
35570 MT_BUG_ON(mt, mas_allocated(&mas) != 0); in check_prealloc()
35573 MT_BUG_ON(mt, mas_preallocate(&mas, ptr, GFP_KERNEL & GFP_NOWAIT) == 0); in check_prealloc()
35576 MT_BUG_ON(mt, allocated != 0); in check_prealloc()
35592 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35603 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35617 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35630 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35643 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35656 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35669 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35685 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35700 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35719 MT_BUG_ON(mt, (mas_data_end(&mas)) != mt_slot_count(mas.node) - 1); in check_spanning_write()
35733 MT_BUG_ON(mt, mas_walk(&mas) != NULL); in check_spanning_write()
35763 MT_BUG_ON(mt, mtree_load(mt, 963) != NULL); in check_null_expand()
35764 MT_BUG_ON(mt, data_end != mas_data_end(&mas)); in check_null_expand()
35772 MT_BUG_ON(mt, mtree_load(mt, 884) != NULL); in check_null_expand()
35773 MT_BUG_ON(mt, mtree_load(mt, 889) != NULL); in check_null_expand()
35775 MT_BUG_ON(mt, data_end != mas_data_end(&mas)); in check_null_expand()
35784 MT_BUG_ON(mt, mtree_load(mt, 899) != NULL); in check_null_expand()
35785 MT_BUG_ON(mt, mtree_load(mt, 900) != NULL); in check_null_expand()
35786 MT_BUG_ON(mt, mtree_load(mt, 905) != NULL); in check_null_expand()
35787 MT_BUG_ON(mt, mtree_load(mt, 906) != NULL); in check_null_expand()
35789 MT_BUG_ON(mt, data_end - 2 != mas_data_end(&mas)); in check_null_expand()
35798 MT_BUG_ON(mt, mtree_load(mt, 809) != NULL); in check_null_expand()
35799 MT_BUG_ON(mt, mtree_load(mt, 810) != NULL); in check_null_expand()
35800 MT_BUG_ON(mt, mtree_load(mt, 825) != NULL); in check_null_expand()
35801 MT_BUG_ON(mt, mtree_load(mt, 826) != NULL); in check_null_expand()
35803 MT_BUG_ON(mt, data_end - 4 != mas_data_end(&mas)); in check_null_expand()
35814 MT_BUG_ON(mt, !mtree_empty(mt)); in check_nomem()
35819 MT_BUG_ON(mt, mtree_insert(mt, 1, &ms, GFP_ATOMIC) != -ENOMEM); in check_nomem()
35821 MT_BUG_ON(mt, mtree_insert(mt, 0, &ms, GFP_ATOMIC) != 0); in check_nomem()
35833 MT_BUG_ON(mt, ms.node != MA_ERROR(-ENOMEM)); in check_nomem()
35835 MT_BUG_ON(mt, ms.node != MAS_START); in check_nomem()
35837 MT_BUG_ON(mt, mtree_insert(mt, 2, mt, GFP_KERNEL) != 0); in check_nomem()