Changeset 201abde in mainline for kernel/test
- Timestamp:
- 2007-04-07T20:06:52Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7e58979
- Parents:
- 6adbe3c2
- Location:
- kernel/test
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/fpu/fpu1.c
r6adbe3c2 r201abde 127 127 if ((int) (100000000 * e) != E_10e8) { 128 128 if (!sh_quiet) 129 printf("tid% d: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8);129 printf("tid%llu: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8); 130 130 atomic_inc(&threads_fault); 131 131 break; … … 162 162 if ((int) (1000000 * pi) != PI_10e8) { 163 163 if (!sh_quiet) 164 printf("tid% d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));164 printf("tid%llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100)); 165 165 atomic_inc(&threads_fault); 166 166 break; … … 169 169 if ((int) (100000000 * pi) != PI_10e8) { 170 170 if (!sh_quiet) 171 printf("tid% d: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8);171 printf("tid%llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8); 172 172 atomic_inc(&threads_fault); 173 173 break; -
kernel/test/fpu/mips2.c
r6adbe3c2 r201abde 73 73 if (arg != after_arg) { 74 74 if (!sh_quiet) 75 printf("General reg tid% d: arg(%d) != %d\n", THREAD->tid, arg, after_arg);75 printf("General reg tid%llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg); 76 76 atomic_inc(&threads_fault); 77 77 break; … … 105 105 if (arg != after_arg) { 106 106 if (!sh_quiet) 107 printf("General reg tid% d: arg(%d) != %d\n", THREAD->tid, arg, after_arg);107 printf("General reg tid%llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg); 108 108 atomic_inc(&threads_fault); 109 109 break; -
kernel/test/fpu/sse1.c
r6adbe3c2 r201abde 73 73 if (arg != after_arg) { 74 74 if (!sh_quiet) 75 printf("tid% d: arg(%d) != %d\n", THREAD->tid, arg, after_arg);75 printf("tid%llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg); 76 76 atomic_inc(&threads_fault); 77 77 break; … … 105 105 if (arg != after_arg) { 106 106 if (!sh_quiet) 107 printf("tid% d: arg(%d) != %d\n", THREAD->tid, arg, after_arg);107 printf("tid%llu: arg(%d) != %d\n", THREAD->tid, arg, after_arg); 108 108 atomic_inc(&threads_fault); 109 109 break; -
kernel/test/mm/falloc2.c
r6adbe3c2 r201abde 59 59 if (frames == NULL) { 60 60 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); 62 62 atomic_inc(&thread_fail); 63 63 atomic_dec(&thread_count); … … 70 70 for (order = 0; order <= MAX_ORDER; order++) { 71 71 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); 73 73 74 74 allocated = 0; … … 83 83 84 84 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); 86 86 87 87 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); 89 89 90 90 for (i = 0; i < allocated; i++) { … … 92 92 if (((uint8_t *) frames[i])[k] != val) { 93 93 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); 95 95 atomic_inc(&thread_fail); 96 96 goto cleanup; … … 101 101 102 102 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); 104 104 } 105 105 } … … 109 109 110 110 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); 112 112 atomic_dec(&thread_count); 113 113 } -
kernel/test/mm/slab1.c
r6adbe3c2 r201abde 138 138 139 139 if (!sh_quiet) 140 printf("Starting thread #% d...\n", THREAD->tid);140 printf("Starting thread #%llu...\n", THREAD->tid); 141 141 142 142 for (j = 0; j < 10; j++) { … … 152 152 153 153 if (!sh_quiet) 154 printf("Thread #% dfinished\n", THREAD->tid);154 printf("Thread #%llu finished\n", THREAD->tid); 155 155 156 156 semaphore_up(&thr_sem); -
kernel/test/mm/slab2.c
r6adbe3c2 r201abde 151 151 152 152 if (!sh_quiet) 153 printf("Starting thread #% d...\n",THREAD->tid);153 printf("Starting thread #%llu...\n",THREAD->tid); 154 154 155 155 /* Alloc all */ 156 156 if (!sh_quiet) 157 printf("Thread #% dallocating...\n", THREAD->tid);157 printf("Thread #%llu allocating...\n", THREAD->tid); 158 158 159 159 while (1) { … … 167 167 168 168 if (!sh_quiet) 169 printf("Thread #% dreleasing...\n", THREAD->tid);169 printf("Thread #%llu releasing...\n", THREAD->tid); 170 170 171 171 while (data) { … … 177 177 178 178 if (!sh_quiet) 179 printf("Thread #% dallocating...\n", THREAD->tid);179 printf("Thread #%llu allocating...\n", THREAD->tid); 180 180 181 181 while (1) { … … 189 189 190 190 if (!sh_quiet) 191 printf("Thread #% dreleasing...\n", THREAD->tid);191 printf("Thread #%llu releasing...\n", THREAD->tid); 192 192 193 193 while (data) { … … 199 199 200 200 if (!sh_quiet) 201 printf("Thread #% dfinished\n", THREAD->tid);201 printf("Thread #%llu finished\n", THREAD->tid); 202 202 203 203 slab_print_list(); -
kernel/test/synch/rwlock3.c
r6adbe3c2 r201abde 46 46 47 47 if (!sh_quiet) 48 printf("cpu%d, tid % d: trying to lock rwlock for reading....\n", CPU->id, THREAD->tid);48 printf("cpu%d, tid %llu: trying to lock rwlock for reading....\n", CPU->id, THREAD->tid); 49 49 50 50 rwlock_read_lock(&rwlock); … … 52 52 53 53 if (!sh_quiet) { 54 printf("cpu%d, tid % d: success\n", CPU->id, THREAD->tid);55 printf("cpu%d, tid % d: trying to lock rwlock for writing....\n", CPU->id, THREAD->tid);54 printf("cpu%d, tid %llu: success\n", CPU->id, THREAD->tid); 55 printf("cpu%d, tid %llu: trying to lock rwlock for writing....\n", CPU->id, THREAD->tid); 56 56 } 57 57 … … 60 60 61 61 if (!sh_quiet) 62 printf("cpu%d, tid % d: success\n", CPU->id, THREAD->tid);62 printf("cpu%d, tid %llu: success\n", CPU->id, THREAD->tid); 63 63 64 64 atomic_dec(&thread_count); -
kernel/test/synch/rwlock4.c
r6adbe3c2 r201abde 75 75 76 76 if (!sh_quiet) 77 printf("cpu%d, tid % dw+ (%d)\n", CPU->id, THREAD->tid, to);77 printf("cpu%d, tid %llu w+ (%d)\n", CPU->id, THREAD->tid, to); 78 78 79 79 rc = rwlock_write_lock_timeout(&rwlock, to); 80 80 if (SYNCH_FAILED(rc)) { 81 81 if (!sh_quiet) 82 printf("cpu%d, tid % dw!\n", CPU->id, THREAD->tid);82 printf("cpu%d, tid %llu w!\n", CPU->id, THREAD->tid); 83 83 atomic_dec(&thread_count); 84 84 return; … … 86 86 87 87 if (!sh_quiet) 88 printf("cpu%d, tid % dw=\n", CPU->id, THREAD->tid);88 printf("cpu%d, tid %llu w=\n", CPU->id, THREAD->tid); 89 89 90 90 if (rwlock.readers_in) { … … 107 107 108 108 if (!sh_quiet) 109 printf("cpu%d, tid % dw-\n", CPU->id, THREAD->tid);109 printf("cpu%d, tid %llu w-\n", CPU->id, THREAD->tid); 110 110 atomic_dec(&thread_count); 111 111 } … … 120 120 121 121 if (!sh_quiet) 122 printf("cpu%d, tid % dr+ (%d)\n", CPU->id, THREAD->tid, to);122 printf("cpu%d, tid %llu r+ (%d)\n", CPU->id, THREAD->tid, to); 123 123 124 124 rc = rwlock_read_lock_timeout(&rwlock, to); 125 125 if (SYNCH_FAILED(rc)) { 126 126 if (!sh_quiet) 127 printf("cpu%d, tid % dr!\n", CPU->id, THREAD->tid);127 printf("cpu%d, tid %llu r!\n", CPU->id, THREAD->tid); 128 128 atomic_dec(&thread_count); 129 129 return; … … 131 131 132 132 if (!sh_quiet) 133 printf("cpu%d, tid % dr=\n", CPU->id, THREAD->tid);133 printf("cpu%d, tid %llu r=\n", CPU->id, THREAD->tid); 134 134 135 135 thread_usleep(30000); … … 137 137 138 138 if (!sh_quiet) 139 printf("cpu%d, tid % dr-\n", CPU->id, THREAD->tid);139 printf("cpu%d, tid %llu r-\n", CPU->id, THREAD->tid); 140 140 atomic_dec(&thread_count); 141 141 } -
kernel/test/synch/semaphore2.c
r6adbe3c2 r201abde 68 68 69 69 to = random(20000); 70 printf("cpu%d, tid % ddown+ (%d)\n", CPU->id, THREAD->tid, to);70 printf("cpu%d, tid %llu down+ (%d)\n", CPU->id, THREAD->tid, to); 71 71 rc = semaphore_down_timeout(&sem, to); 72 72 if (SYNCH_FAILED(rc)) { 73 printf("cpu%d, tid % ddown!\n", CPU->id, THREAD->tid);73 printf("cpu%d, tid %llu down!\n", CPU->id, THREAD->tid); 74 74 return; 75 75 } 76 76 77 printf("cpu%d, tid % ddown=\n", CPU->id, THREAD->tid);77 printf("cpu%d, tid %llu down=\n", CPU->id, THREAD->tid); 78 78 thread_usleep(random(30000)); 79 79 80 80 semaphore_up(&sem); 81 printf("cpu%d, tid % dup\n", CPU->id, THREAD->tid);81 printf("cpu%d, tid %llu up\n", CPU->id, THREAD->tid); 82 82 } 83 83 -
kernel/test/thread/thread1.c
r6adbe3c2 r201abde 49 49 while (atomic_get(&finish)) { 50 50 if (!sh_quiet) 51 printf("% d ", (int) (THREAD->tid));51 printf("%llu ", THREAD->tid); 52 52 thread_usleep(100000); 53 53 }
Note:
See TracChangeset
for help on using the changeset viewer.