Changeset 1433ecda in mainline for uspace/app/rcutest/rcutest.c


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/rcutest/rcutest.c

    r47b2d7e3 r1433ecda  
    6868                T_STRESS
    6969        } type;
    70         bool (*func)(struct test_info*);
     70        bool (*func)(struct test_info *);
    7171        const char *name;
    7272        const char *desc;
     
    8181
    8282
    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*);
     83static bool run_all_tests(struct test_info *);
     84static bool run_sanity_tests(struct test_info *);
     85static bool run_stress_tests(struct test_info *);
     86
     87static bool wait_for_one_reader(struct test_info *);
     88static bool basic_sanity_check(struct test_info *);
     89static bool dont_wait_for_new_reader(struct test_info *);
     90static bool wait_for_exiting_reader(struct test_info *);
     91static bool seq_test(struct test_info *);
    9292
    9393
     
    171171typedef errno_t (*fibril_func_t)(void *);
    172172
    173 static bool create_fibril(errno_t (*func)(void*), void *arg)
     173static bool create_fibril(errno_t (*func)(void *), void *arg)
    174174{
    175175        fid_t fid = fibril_create(func, arg);
     
    657657        for (size_t k = 0; k < arg->read_iters; ++k) {
    658658                /* 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)) {
    660660                        printf(".");
    661661                }
     
    717717
    718718        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 },
    721721                .read_iters = 10 * 1000,
    722722                .upd_iters = 5 * 1000,
     
    726726                .done_cnt_mtx = FIBRIL_MUTEX_INITIALIZER(info.done_cnt_mtx),
    727727                .done_cnt_changed = FIBRIL_CONDVAR_INITIALIZER(info.done_cnt_changed),
    728                 .seed = {0},
     728                .seed = { 0 },
    729729                .failed = 0,
    730730        };
Note: See TracChangeset for help on using the changeset viewer.