Changeset 201abde in mainline for kernel/test/mm


Ignore:
Timestamp:
2007-04-07T20:06:52Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e58979
Parents:
6adbe3c2
Message:

make thread ID 64 bit (task ID is 64 bit already)
cleanup thread syscalls

Location:
kernel/test/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/falloc2.c

    r6adbe3c2 r201abde  
    5959        if (frames == NULL) {
    6060                if (!sh_quiet)
    61                         printf("Thread #%d (cpu%d): Unable to allocate frames\n", THREAD->tid, CPU->id);
     61                        printf("Thread #%llu (cpu%d): Unable to allocate frames\n", THREAD->tid, CPU->id);
    6262                atomic_inc(&thread_fail);
    6363                atomic_dec(&thread_count);
     
    7070                for (order = 0; order <= MAX_ORDER; order++) {
    7171                        if (!sh_quiet)
    72                                 printf("Thread #%d (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order);
     72                                printf("Thread #%llu (cpu%d): Allocating %d frames blocks ... \n", THREAD->tid, CPU->id, 1 << order);
    7373                       
    7474                        allocated = 0;
     
    8383                       
    8484                        if (!sh_quiet)
    85                                 printf("Thread #%d (cpu%d): %d blocks allocated.\n", THREAD->tid, CPU->id, allocated);
     85                                printf("Thread #%llu (cpu%d): %d blocks allocated.\n", THREAD->tid, CPU->id, allocated);
    8686                       
    8787                        if (!sh_quiet)
    88                                 printf("Thread #%d (cpu%d): Deallocating ... \n", THREAD->tid, CPU->id);
     88                                printf("Thread #%llu (cpu%d): Deallocating ... \n", THREAD->tid, CPU->id);
    8989                       
    9090                        for (i = 0; i < allocated; i++) {
     
    9292                                        if (((uint8_t *) frames[i])[k] != val) {
    9393                                                if (!sh_quiet)
    94                                                         printf("Thread #%d (cpu%d): Unexpected data (%d) in block %p offset %#zx\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);
     94                                                        printf("Thread #%llu (cpu%d): Unexpected data (%d) in block %p offset %#zx\n", THREAD->tid, CPU->id, ((char *) frames[i])[k], frames[i], k);
    9595                                                atomic_inc(&thread_fail);
    9696                                                goto cleanup;
     
    101101                       
    102102                        if (!sh_quiet)
    103                                 printf("Thread #%d (cpu%d): Finished run.\n", THREAD->tid, CPU->id);
     103                                printf("Thread #%llu (cpu%d): Finished run.\n", THREAD->tid, CPU->id);
    104104                }
    105105        }
     
    109109       
    110110        if (!sh_quiet)
    111                 printf("Thread #%d (cpu%d): Exiting\n", THREAD->tid, CPU->id);
     111                printf("Thread #%llu (cpu%d): Exiting\n", THREAD->tid, CPU->id);
    112112        atomic_dec(&thread_count);
    113113}
  • kernel/test/mm/slab1.c

    r6adbe3c2 r201abde  
    138138       
    139139        if (!sh_quiet)
    140                 printf("Starting thread #%d...\n", THREAD->tid);
     140                printf("Starting thread #%llu...\n", THREAD->tid);
    141141       
    142142        for (j = 0; j < 10; j++) {
     
    152152       
    153153        if (!sh_quiet)
    154                 printf("Thread #%d finished\n", THREAD->tid);
     154                printf("Thread #%llu finished\n", THREAD->tid);
    155155       
    156156        semaphore_up(&thr_sem);
  • kernel/test/mm/slab2.c

    r6adbe3c2 r201abde  
    151151       
    152152        if (!sh_quiet)
    153                 printf("Starting thread #%d...\n",THREAD->tid);
     153                printf("Starting thread #%llu...\n",THREAD->tid);
    154154
    155155        /* Alloc all */
    156156        if (!sh_quiet)
    157                 printf("Thread #%d allocating...\n", THREAD->tid);
     157                printf("Thread #%llu allocating...\n", THREAD->tid);
    158158       
    159159        while (1) {
     
    167167       
    168168        if (!sh_quiet)
    169                 printf("Thread #%d releasing...\n", THREAD->tid);
     169                printf("Thread #%llu releasing...\n", THREAD->tid);
    170170       
    171171        while (data) {
     
    177177       
    178178        if (!sh_quiet)
    179                 printf("Thread #%d allocating...\n", THREAD->tid);
     179                printf("Thread #%llu allocating...\n", THREAD->tid);
    180180       
    181181        while (1) {
     
    189189       
    190190        if (!sh_quiet)
    191                 printf("Thread #%d releasing...\n", THREAD->tid);
     191                printf("Thread #%llu releasing...\n", THREAD->tid);
    192192       
    193193        while (data) {
     
    199199       
    200200        if (!sh_quiet)
    201                 printf("Thread #%d finished\n", THREAD->tid);
     201                printf("Thread #%llu finished\n", THREAD->tid);
    202202       
    203203        slab_print_list();
Note: See TracChangeset for help on using the changeset viewer.