Changeset 09ab0a9a in mainline for uspace/app/rcutest/rcutest.c
- Timestamp:
- 2018-09-13T12:05:53Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcutest/rcutest.c
rb2aaaa0 r09ab0a9a 51 51 #include <rcu.h> 52 52 53 54 55 53 #define USECS_PER_SEC (1000 * 1000) 56 54 #define USECS_PER_MS 1000 … … 72 70 } test_desc_t; 73 71 74 75 72 typedef struct test_info { 76 73 size_t thread_cnt; 77 74 test_desc_t *desc; 78 75 } test_info_t; 79 80 81 76 82 77 static bool run_all_tests(struct test_info *); … … 89 84 static bool wait_for_exiting_reader(struct test_info *); 90 85 static bool seq_test(struct test_info *); 91 92 86 93 87 static test_desc_t test_desc[] = { … … 167 161 } 168 162 169 170 163 typedef errno_t (*fibril_func_t)(void *); 171 164 … … 306 299 size_t failed; 307 300 } one_reader_info_t; 308 309 301 310 302 static errno_t sleeping_reader(one_reader_info_t *arg) … … 389 381 } two_reader_info_t; 390 382 391 392 383 static errno_t preexisting_reader(two_reader_info_t *arg) 393 384 { … … 550 541 } exit_reader_info_t; 551 542 552 553 543 static errno_t exiting_locked_reader(exit_reader_info_t *arg) 554 544 { … … 579 569 return 0; 580 570 } 581 582 571 583 572 static bool wait_for_exiting_reader(test_info_t *test_info) … … 614 603 #undef WAIT_STEP_US 615 604 616 617 605 /*--------------------------------------------------------------------*/ 618 606 … … 633 621 int failed; 634 622 } seq_test_info_t; 635 636 623 637 624 static void signal_seq_fibril_done(seq_test_info_t *arg, size_t *cnt) … … 810 797 } 811 798 812 813 799 static void print_usage(void) 814 800 { … … 820 806 printf("\trcutest sanity-tests\n"); 821 807 } 822 823 808 824 809 static bool parse_cmd_line(int argc, char **argv, test_info_t *info) … … 882 867 } 883 868 884 885 869 /** 886 870 * @}
Note:
See TracChangeset
for help on using the changeset viewer.