Changeset 1433ecda in mainline for uspace/app/rcutest/rcutest.c
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcutest/rcutest.c
r47b2d7e3 r1433ecda 68 68 T_STRESS 69 69 } type; 70 bool (*func)(struct test_info *);70 bool (*func)(struct test_info *); 71 71 const char *name; 72 72 const char *desc; … … 81 81 82 82 83 static bool run_all_tests(struct test_info *);84 static bool run_sanity_tests(struct test_info *);85 static bool run_stress_tests(struct test_info *);86 87 static bool wait_for_one_reader(struct test_info *);88 static bool basic_sanity_check(struct test_info *);89 static bool dont_wait_for_new_reader(struct test_info *);90 static bool wait_for_exiting_reader(struct test_info *);91 static bool seq_test(struct test_info *);83 static bool run_all_tests(struct test_info *); 84 static bool run_sanity_tests(struct test_info *); 85 static bool run_stress_tests(struct test_info *); 86 87 static bool wait_for_one_reader(struct test_info *); 88 static bool basic_sanity_check(struct test_info *); 89 static bool dont_wait_for_new_reader(struct test_info *); 90 static bool wait_for_exiting_reader(struct test_info *); 91 static bool seq_test(struct test_info *); 92 92 93 93 … … 171 171 typedef errno_t (*fibril_func_t)(void *); 172 172 173 static bool create_fibril(errno_t (*func)(void *), void *arg)173 static bool create_fibril(errno_t (*func)(void *), void *arg) 174 174 { 175 175 fid_t fid = fibril_create(func, arg); … … 657 657 for (size_t k = 0; k < arg->read_iters; ++k) { 658 658 /* Print progress if the first reader fibril. */ 659 if (first && 0 == k % (arg->read_iters /100 + 1)) {659 if (first && 0 == k % (arg->read_iters / 100 + 1)) { 660 660 printf("."); 661 661 } … … 717 717 718 718 seq_test_info_t info = { 719 .time = { 0},720 .max_start_time_of_done_sync = { 0},719 .time = { 0 }, 720 .max_start_time_of_done_sync = { 0 }, 721 721 .read_iters = 10 * 1000, 722 722 .upd_iters = 5 * 1000, … … 726 726 .done_cnt_mtx = FIBRIL_MUTEX_INITIALIZER(info.done_cnt_mtx), 727 727 .done_cnt_changed = FIBRIL_CONDVAR_INITIALIZER(info.done_cnt_changed), 728 .seed = { 0},728 .seed = { 0 }, 729 729 .failed = 0, 730 730 };
Note:
See TracChangeset
for help on using the changeset viewer.