Changeset 09ab0a9a in mainline for kernel/test


Ignore:
Timestamp:
2018-09-13T12:05:53Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Fix vertical spacing with new Ccheck revision.

Location:
kernel/test
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/cht/cht1.c

    rb2aaaa0 r09ab0a9a  
    7575}
    7676
    77 
    7877static cht_ops_t val_ops = {
    7978        .hash = val_hash,
     
    9392
    9493/*-------------------------------------------------------------------*/
    95 
    9694
    9795static const char *do_sanity_test(cht_t *h)
     
    441439        }
    442440
    443 
    444441        /* Remove anything we may have inserted. */
    445442        for (size_t i = 0; i < work->elem_cnt; ++i) {
     
    559556/*-------------------------------------------------------------------*/
    560557
    561 
    562558const char *test_cht1(void)
    563559{
  • kernel/test/smpcall/smpcall1.c

    rb2aaaa0 r09ab0a9a  
    4848#define EACH_CPU_INC_PER_ITER 2
    4949
    50 
    5150static void inc(void *p)
    5251{
     
    6059        ++*pcall_cnt;
    6160}
    62 
    6361
    6462static void test_thread(void *p)
  • kernel/test/synch/rcu1.c

    rb2aaaa0 r09ab0a9a  
    4040#include <synch/rcu.h>
    4141
    42 
    4342#define MAX_THREADS 32
    4443
     
    134133}
    135134
    136 
    137135static void join_one(void)
    138136{
     
    150148/*-------------------------------------------------------------------*/
    151149
    152 
    153150static void nop_reader(void *arg)
    154151{
     
    195192/*-------------------------------------------------------------------*/
    196193
    197 
    198 
    199194static void long_reader(void *arg)
    200195{
     
    236231
    237232/*-------------------------------------------------------------------*/
    238 
    239233
    240234static atomic_t nop_callbacks_cnt = 0;
     
    363357        size_t start_time;
    364358} seq_item_t;
    365 
    366359
    367360static errno_t seq_test_result = EOK;
     
    460453        get_seq(0, total_cnt, get_thread_cnt(), read_cnt);
    461454
    462 
    463455        for (size_t i = 0; i < get_thread_cnt(); ++i) {
    464456                item[i].update_cnt = total_cnt - read_cnt[i];
     
    496488
    497489/*-------------------------------------------------------------------*/
    498 
    499490
    500491static void reader_unlocked(rcu_item_t *item)
     
    555546        errno_t result;
    556547} preempt_t;
    557 
    558548
    559549static void preempted_unlocked(rcu_item_t *item)
     
    607597        TPRINTF("}reader_inside_cur\n");
    608598}
    609 
    610599
    611600static void preempted_reader_cur(void *arg)
     
    683672}
    684673
    685 
    686674static bool do_one_reader_preempt(void (*f)(void *), const char *err)
    687675{
     
    772760}
    773761
    774 
    775762static bool do_synch(void)
    776763{
     
    800787        rcu_synchronize();
    801788        join_one();
    802 
    803789
    804790        if (synch->reader_done) {
     
    857843} stress_t;
    858844
    859 
    860845static void stress_reader(void *arg)
    861846{
     
    1006991        const char *desc;
    1007992};
    1008 
    1009993
    1010994const char *test_rcu1(void)
  • kernel/test/synch/workq-test-core.h

    rb2aaaa0 r09ab0a9a  
    3636#include <synch/workqueue.h>
    3737
    38 
    3938typedef struct test_work {
    4039        work_t work_item;
     
    4645static atomic_t call_cnt[WAVES];
    4746
    48 
    4947/* Fwd decl - implement in your actual test file.. */
    5048static int core_workq_enqueue(work_t *work_item, work_func_t func);
    51 
    5249
    5350static bool new_wave(test_work_t *work)
     
    6259        }
    6360}
    64 
    6561
    6662static int is_pow2(int num)
     
    170166            WAVES, COUNT, exp_call_cnt * WAVES);
    171167
    172 
    173168        core_workq_enqueue(&work->work_item, reproduce);
    174169
     
    200195        }
    201196
    202 
    203197        if (success)
    204198                return NULL;
  • kernel/test/synch/workqueue2.c

    rb2aaaa0 r09ab0a9a  
    3232#include <synch/workqueue.h>
    3333
    34 
    3534#define WAVES 10
    3635#define COUNT_POW 12
     
    4544#include "workq-test-core.h"
    4645
    47 
    4846/*-------------------------------------------------------------------*/
    4947
     
    5654        TPRINTF("basic_test_work()");
    5755}
    58 
    5956
    6057static void basic_test(void)
     
    7471/*-------------------------------------------------------------------*/
    7572
    76 
    7773struct work_queue *workq = NULL;
    7874
     
    8278}
    8379/*-------------------------------------------------------------------*/
    84 
    8580
    8681static const char *test_custom_workq_impl(bool stop, const char *qname)
     
    108103}
    109104
    110 
    111105static const char *test_custom_workq_stop(void)
    112106{
     
    117111        return NULL;
    118112}
    119 
    120113
    121114const char *test_workqueue_all(void)
  • kernel/test/synch/workqueue3.c

    rb2aaaa0 r09ab0a9a  
    3232#include <synch/workqueue.h>
    3333
    34 
    3534#define WAVES 10
    3635#define COUNT_POW 12
     
    4544#include "workq-test-core.h"
    4645
    47 
    4846static int core_workq_enqueue(work_t *work_item, work_func_t func)
    4947{
    5048        return workq_global_enqueue(work_item, func);
    5149}
    52 
    53 
    5450
    5551static const char *do_test(bool exit_early)
  • kernel/test/test.h

    rb2aaaa0 r09ab0a9a  
    8282extern const char *test_rcu1(void);
    8383
    84 
    8584extern test_t tests[];
    8685
Note: See TracChangeset for help on using the changeset viewer.