Changeset 62b6d17 in mainline for kernel/test


Ignore:
Timestamp:
2006-12-14T16:47:36Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aeaebcc
Parents:
55cc9bc
Message:

introduce uncounted threads, whose accounting doesn't affect accumulated task accounting
run tests in kconsole thread again

Location:
kernel/test
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/fpu/fpu1.c

    r55cc9bc r62b6d17  
    186186                thread_t *t;
    187187               
    188                 if (!(t = thread_create(e, NULL, TASK, 0, "e"))) {
     188                if (!(t = thread_create(e, NULL, TASK, 0, "e", false))) {
    189189                        printf("could not create thread %d\n", 2 * i);
    190190                        break;
     
    193193                total++;
    194194               
    195                 if (!(t = thread_create(pi, NULL, TASK, 0, "pi"))) {
     195                if (!(t = thread_create(pi, NULL, TASK, 0, "pi", false))) {
    196196                        printf("could not create thread %d\n", 2 * i + 1);
    197197                        break;
  • kernel/test/fpu/mips2.c

    r55cc9bc r62b6d17  
    123123                thread_t *t;
    124124               
    125                 if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1"))) {
     125                if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) {
    126126                        printf("could not create thread %d\n", 2 * i);
    127127                        break;
     
    130130                total++;
    131131               
    132                 if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2"))) {
     132                if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {
    133133                        printf("could not create thread %d\n", 2 * i + 1);
    134134                        break;
  • kernel/test/fpu/sse1.c

    r55cc9bc r62b6d17  
    122122                thread_t *t;
    123123               
    124                 if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1"))) {
     124                if (!(t = thread_create(testit1, (void *) ((unative_t) 2 * i), TASK, 0, "testit1", false))) {
    125125                        printf("could not create thread %d\n", 2 * i);
    126126                        break;
     
    129129                total++;
    130130               
    131                 if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2"))) {
     131                if (!(t = thread_create(testit2, (void *) ((unative_t) 2 * i + 1), TASK, 0, "testit2", false))) {
    132132                        printf("could not create thread %d\n", 2 * i + 1);
    133133                        break;
  • kernel/test/mm/falloc2.c

    r55cc9bc r62b6d17  
    108108               
    109109        for (i = 0; i < THREADS; i++) {
    110                 thread_t * thrd = thread_create(falloc, NULL, TASK, 0, "falloc");
     110                thread_t * thrd = thread_create(falloc, NULL, TASK, 0, "falloc", false);
    111111                if (!thrd) {
    112112                        printf("Could not create thread %d\n", i);
  • kernel/test/mm/slab1.c

    r55cc9bc r62b6d17  
    139139        semaphore_initialize(&thr_sem, 0);
    140140        for (i = 0; i < THREADS; i++) { 
    141                 if (!(t = thread_create(slabtest, (void *) (unative_t) i, TASK, 0, "slabtest")))
     141                if (!(t = thread_create(slabtest, (void *) (unative_t) i, TASK, 0, "slabtest", false)))
    142142                        printf("Could not create thread %d\n", i);
    143143                else
  • kernel/test/mm/slab2.c

    r55cc9bc r62b6d17  
    191191        semaphore_initialize(&thr_sem,0);
    192192        for (i = 0; i < THREADS; i++) { 
    193                 if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest")))
     193                if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest", false)))
    194194                        printf("Could not create thread %d\n", i);
    195195                else
  • kernel/test/synch/rwlock2.c

    r55cc9bc r62b6d17  
    6767        rwlock_read_lock(&rwlock);     
    6868       
    69         thrd = thread_create(writer, NULL, TASK, 0, "writer");
     69        thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    7070        if (thrd)
    7171                thread_ready(thrd);
  • kernel/test/synch/rwlock3.c

    r55cc9bc r62b6d17  
    6565       
    6666        for (i = 0; i < 4; i++) {
    67                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     67                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    6868                if (thrd)
    6969                        thread_ready(thrd);
  • kernel/test/synch/rwlock4.c

    r55cc9bc r62b6d17  
    131131        printf("Creating %d readers\n", k);
    132132        for (i = 0; i < k; i++) {
    133                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     133                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    134134                if (thrd)
    135135                        thread_ready(thrd);
     
    141141        printf("Creating %d writers\n", k);
    142142        for (i = 0; i < k; i++) {
    143                 thrd = thread_create(writer, NULL, TASK, 0, "writer");
     143                thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    144144                if (thrd)
    145145                        thread_ready(thrd);
  • kernel/test/synch/rwlock5.c

    r55cc9bc r62b6d17  
    8888                for (j = 0; j < (READERS + WRITERS) / 2; j++) {
    8989                        for (k = 0; k < i; k++) {
    90                                 thrd = thread_create(reader, NULL, TASK, 0, "reader");
     90                                thrd = thread_create(reader, NULL, TASK, 0, "reader", false);
    9191                                if (thrd)
    9292                                        thread_ready(thrd);
     
    9595                        }
    9696                        for (k = 0; k < (4 - i); k++) {
    97                                 thrd = thread_create(writer, NULL, TASK, 0, "writer");
     97                                thrd = thread_create(writer, NULL, TASK, 0, "writer", false);
    9898                                if (thrd)
    9999                                        thread_ready(thrd);
  • kernel/test/synch/semaphore1.c

    r55cc9bc r62b6d17  
    9191                for (j = 0; j < (CONSUMERS + PRODUCERS) / 2; j++) {
    9292                        for (k = 0; k < i; k++) {
    93                                 thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
     93                                thrd = thread_create(consumer, NULL, TASK, 0, "consumer", false);
    9494                                if (thrd)
    9595                                        thread_ready(thrd);
     
    9898                        }
    9999                        for (k = 0; k < (4 - i); k++) {
    100                                 thrd = thread_create(producer, NULL, TASK, 0, "producer");
     100                                thrd = thread_create(producer, NULL, TASK, 0, "producer", false);
    101101                                if (thrd)
    102102                                        thread_ready(thrd);
  • kernel/test/synch/semaphore2.c

    r55cc9bc r62b6d17  
    9494        printf("Creating %d consumers\n", k);
    9595        for (i = 0; i < k; i++) {
    96                 thrd = thread_create(consumer, NULL, TASK, 0, "consumer");
     96                thrd = thread_create(consumer, NULL, TASK, 0, "consumer", false);
    9797                if (thrd)
    9898                        thread_ready(thrd);
  • kernel/test/thread/thread1.c

    r55cc9bc r62b6d17  
    6262        for (i = 0; i < THREADS; i++) { 
    6363                thread_t *t;
    64                 if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest"))) {
     64                if (!(t = thread_create(threadtest, NULL, TASK, 0, "threadtest", false))) {
    6565                        printf("Could not create thread %d\n", i);
    6666                        break;
Note: See TracChangeset for help on using the changeset viewer.