Home
last modified time | relevance | path

Searched refs:ASSERT (Results 1 – 9 of 9) sorted by relevance

/tools/testing/selftests/sync/
Dsync_fence.c38 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 …]
Dsync_merge.c38 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()
Dsync_stress_consumer.c46 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()
Dsync_alloc.c38 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()
Dsync_wait.c50 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()
Dsync_stress_parallelism.c51 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()
Dsync_stress_merge.c53 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()
Dsynctest.h34 #define ASSERT(cond, msg) do { \ macro
/tools/memory-model/Documentation/
Drecipes.txt318 ASSERT(log->l_curr_block >= 0);