Changeset e3306d04 in mainline for kernel/test
- Timestamp:
- 2018-09-07T15:54:32Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5f1d850
- Parents:
- 036e97c
- Location:
- kernel/test
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/atomic/atomic1.c
r036e97c re3306d04 36 36 atomic_t a; 37 37 38 atomic_s et(&a, 10);38 atomic_store(&a, 10); 39 39 if (atomic_load(&a) != 10) 40 return "Failed atomic_s et()/atomic_load()";40 return "Failed atomic_store()/atomic_load()"; 41 41 42 42 if (atomic_postinc(&a) != 10) -
kernel/test/mm/falloc2.c
r036e97c re3306d04 117 117 const char *test_falloc2(void) 118 118 { 119 atomic_s et(&thread_count, THREADS);120 atomic_s et(&thread_fail, 0);119 atomic_store(&thread_count, THREADS); 120 atomic_store(&thread_fail, 0); 121 121 122 122 for (unsigned int i = 0; i < THREADS; i++) { -
kernel/test/synch/rcu1.c
r036e97c re3306d04 268 268 static bool do_nop_callbacks(void) 269 269 { 270 atomic_s et(&nop_callbacks_cnt, 0);270 atomic_store(&nop_callbacks_cnt, 0); 271 271 272 272 size_t exp_cnt = nop_updater_iters * get_thread_cnt(); … … 448 448 seq_test_result = EOK; 449 449 max_upd_done_time = 0; 450 atomic_s et(&cur_time, 1);450 atomic_store(&cur_time, 1); 451 451 452 452 const size_t iters = 100; … … 821 821 { 822 822 barrier_t *b = member_to_inst(item, barrier_t, rcu_item); 823 atomic_s et(&b->done, 1);823 atomic_store(&b->done, 1); 824 824 } 825 825 … … 835 835 } 836 836 837 atomic_s et(&barrier->done, 0);837 atomic_store(&barrier->done, 0); 838 838 839 839 rcu_call(&barrier->rcu_item, barrier_callback); -
kernel/test/synch/semaphore1.c
r036e97c re3306d04 82 82 thread_t *thrd; 83 83 84 atomic_s et(&items_produced, 0);85 atomic_s et(&items_consumed, 0);84 atomic_store(&items_produced, 0); 85 atomic_store(&items_consumed, 0); 86 86 87 87 consumers = i * CONSUMERS; -
kernel/test/synch/workq-test-core.h
r036e97c re3306d04 149 149 { 150 150 for (int i = 0; i < WAVES; ++i) { 151 atomic_s et(&call_cnt[i], 0);151 atomic_store(&call_cnt[i], 0); 152 152 } 153 153 -
kernel/test/thread/thread1.c
r036e97c re3306d04 58 58 atomic_count_t total = 0; 59 59 60 atomic_s et(&finish, 1);61 atomic_s et(&threads_finished, 0);60 atomic_store(&finish, 1); 61 atomic_store(&threads_finished, 0); 62 62 63 63 for (i = 0; i < THREADS; i++) { … … 75 75 thread_sleep(10); 76 76 77 atomic_s et(&finish, 0);77 atomic_store(&finish, 0); 78 78 while (atomic_load(&threads_finished) < total) { 79 79 TPRINTF("Threads left: %zu\n", total - atomic_load(&threads_finished));
Note:
See TracChangeset
for help on using the changeset viewer.