Searched refs:ASSERT (Results 1 – 9 of 9) sorted by relevance
/tools/testing/selftests/sync/ |
D | sync_fence.c | 38 ASSERT(valid, "Failure allocating timeline\n"); in test_fence_one_timeline_wait() 42 ASSERT(valid, "Failure allocating fence\n"); in test_fence_one_timeline_wait() 46 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait() 50 ASSERT(ret == 0, "Failure advancing timeline\n"); in test_fence_one_timeline_wait() 54 ASSERT(ret == 0, "Failure waiting on fence until timeout\n"); in test_fence_one_timeline_wait() 58 ASSERT(ret == 0, "Failure signaling the fence\n"); in test_fence_one_timeline_wait() 62 ASSERT(ret > 0, "Failure waiting on fence\n"); in test_fence_one_timeline_wait() 66 ASSERT(ret == 0, "Failure going further\n"); in test_fence_one_timeline_wait() 68 ASSERT(ret > 0, "Failure waiting ahead\n"); in test_fence_one_timeline_wait() 89 ASSERT(valid, "Failure allocating fences\n"); in test_fence_one_timeline_merge() [all …]
|
D | sync_merge.c | 38 ASSERT(valid, "Failure allocating timeline\n"); in test_fence_merge_same_fence() 42 ASSERT(valid, "Failure allocating fence\n"); in test_fence_merge_same_fence() 46 ASSERT(valid, "Failure merging fence\n"); in test_fence_merge_same_fence() 48 ASSERT(sync_fence_count_with_status(merged, FENCE_STATUS_SIGNALED) == 0, in test_fence_merge_same_fence() 52 ASSERT(sync_fence_count_with_status(merged, FENCE_STATUS_SIGNALED) == 1, in test_fence_merge_same_fence()
|
D | sync_stress_consumer.c | 46 ASSERT(error == 0, "Error occurred on fence\n"); in busy_wait_on_fence() 74 ASSERT(valid, "Failure creating fence\n"); in mpsc_producer_thread() 82 ASSERT(sync_wait(fence, -1) > 0, in mpsc_producer_thread() 85 ASSERT(busy_wait_on_fence(fence) == 0, in mpsc_producer_thread() 97 ASSERT(sw_sync_timeline_inc(producer_timelines[id], 1) == 0, in mpsc_producer_thread() 126 ASSERT(valid, "Failure merging fences\n"); in mpcs_consumer_thread() 133 ASSERT(sync_wait(fence, -1) > 0, in mpcs_consumer_thread() 136 ASSERT(busy_wait_on_fence(fence) == 0, in mpcs_consumer_thread() 140 ASSERT(test_data_mpsc.counter == n * it, in mpcs_consumer_thread() 144 ASSERT(sw_sync_timeline_inc(consumer_timeline, 1) == 0, in mpcs_consumer_thread()
|
D | sync_alloc.c | 38 ASSERT(valid, "Failure allocating timeline\n"); in test_alloc_timeline() 50 ASSERT(valid, "Failure allocating timeline\n"); in test_alloc_fence() 54 ASSERT(valid, "Failure allocating fence\n"); in test_alloc_fence() 66 ASSERT(timeline > 0, "Failure allocating timeline\n"); in test_alloc_fence_negative() 69 ASSERT(fence < 0, "Success allocating negative fence\n"); in test_alloc_fence_negative()
|
D | sync_wait.c | 50 ASSERT(valid, "Failure merging fence from various timelines\n"); in test_fence_multi_timeline_wait() 54 ASSERT(active == 3, "Fence signaled too early!\n"); in test_fence_multi_timeline_wait() 57 ASSERT(ret == 0, in test_fence_multi_timeline_wait() 63 ASSERT(active == 2 && signaled == 1, in test_fence_multi_timeline_wait() 69 ASSERT(active == 1 && signaled == 2, in test_fence_multi_timeline_wait() 75 ASSERT(active == 0 && signaled == 3, in test_fence_multi_timeline_wait() 80 ASSERT(ret > 0, "Failure waiting on signaled fence\n"); in test_fence_multi_timeline_wait()
|
D | sync_stress_parallelism.c | 51 ASSERT(valid, "Failure allocating fence\n"); in test_stress_two_threads_shared_timeline_thread() 55 ASSERT(ret > 0, "Problem occurred on prior thread\n"); in test_stress_two_threads_shared_timeline_thread() 61 ASSERT(test_data_two_threads.counter == i * 2 + thread_id, in test_stress_two_threads_shared_timeline_thread() 67 ASSERT(ret == 0, "Advancing timeline failed\n"); in test_stress_two_threads_shared_timeline_thread() 82 ASSERT(valid, "Failure allocating timeline\n"); in test_stress_two_threads_shared_timeline() 104 ASSERT(test_data_two_threads.counter == in test_stress_two_threads_shared_timeline()
|
D | sync_stress_merge.c | 53 ASSERT(valid, "Failure creating fence\n"); in test_merge_stress_random_merge() 82 ASSERT(valid, "Failure creating fence i\n"); in test_merge_stress_random_merge() 91 ASSERT(sync_fence_size(fence) == size, in test_merge_stress_random_merge() 98 ASSERT(ret == 0, in test_merge_stress_random_merge() 107 ASSERT(ret > 0, "Failure triggering fence\n"); in test_merge_stress_random_merge()
|
D | synctest.h | 34 #define ASSERT(cond, msg) do { \ macro
|
/tools/memory-model/Documentation/ |
D | recipes.txt | 318 ASSERT(log->l_curr_block >= 0);
|