Changeset 70b6de1 in mainline
- Timestamp:
- 2006-12-11T19:33:19Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e54fb21
- Parents:
- f272cb8
- Location:
- kernel
- Files:
-
- 6 edited
- 10 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rf272cb8 r70b6de1 231 231 test/mm/slab1.c \ 232 232 test/mm/slab2.c \ 233 test/mm/purge1.c 233 test/mm/purge1.c \ 234 test/synch/rwlock1.c \ 235 test/synch/rwlock2.c \ 236 test/synch/rwlock3.c \ 237 test/synch/rwlock4.c \ 238 test/synch/rwlock5.c \ 239 test/synch/semaphore1.c \ 240 test/synch/semaphore2.c \ 241 test/print/print1.c \ 242 test/thread/thread1.c \ 243 test/sysinfo/sysinfo1.c 234 244 endif 235 245 -
kernel/test/btree/btree1.c
rf272cb8 r70b6de1 36 36 #endif 37 37 38 void *data = (void *) 0xdeadbeef;38 static void *data = (void *) 0xdeadbeef; 39 39 40 40 void test_btree1(void) -
kernel/test/mm/slab1.c
rf272cb8 r70b6de1 41 41 #define VAL_COUNT 1024 42 42 43 void * data[VAL_COUNT];43 static void * data[VAL_COUNT]; 44 44 45 45 static void testit(int size, int count) -
kernel/test/mm/slab2.c
rf272cb8 r70b6de1 120 120 } 121 121 122 s lab_cache_t *thr_cache;123 s emaphore_t thr_sem;124 condvar_t thread_starter;125 mutex_t starter_mutex;122 static slab_cache_t *thr_cache; 123 static semaphore_t thr_sem; 124 static condvar_t thread_starter; 125 static mutex_t starter_mutex; 126 126 127 127 #define THREADS 8 -
kernel/test/print/print1.c
rf272cb8 r70b6de1 31 31 #define BUFFER_SIZE 32 32 32 33 void test (void)33 void test_print1(void) 34 34 { 35 35 int retval; -
kernel/test/synch/rwlock1.c
rf272cb8 r70b6de1 41 41 static rwlock_t rwlock; 42 42 43 void test (void)43 void test_rwlock1(void) 44 44 { 45 45 printf("Read/write locks test #1\n"); -
kernel/test/synch/rwlock2.c
rf272cb8 r70b6de1 43 43 static void failed(void); 44 44 45 void writer(void *arg)45 static void writer(void *arg) 46 46 { 47 47 … … 59 59 } 60 60 61 void failed()61 static void failed() 62 62 { 63 63 printf("Test failed prematurely.\n"); … … 65 65 } 66 66 67 void test (void)67 void test_rwlock2(void) 68 68 { 69 69 thread_t *thrd; -
kernel/test/synch/rwlock3.c
rf272cb8 r70b6de1 43 43 static void failed(void); 44 44 45 void reader(void *arg)45 static void reader(void *arg) 46 46 { 47 47 thread_detach(THREAD); … … 62 62 } 63 63 64 void failed(void)64 static void failed(void) 65 65 { 66 66 printf("Test failed prematurely.\n"); … … 68 68 } 69 69 70 void test (void)70 void test_rwlock3(void) 71 71 { 72 72 int i; -
kernel/test/synch/rwlock4.c
rf272cb8 r70b6de1 47 47 static rwlock_t rwlock; 48 48 49 SPINLOCK_INITIALIZE(lock);49 static SPINLOCK_INITIALIZE(lock); 50 50 51 51 static waitq_t can_start; 52 52 53 uint32_t seed = 0xdeadbeef;53 static uint32_t seed = 0xdeadbeef; 54 54 55 55 static uint32_t random(uint32_t max); … … 59 59 static void failed(void); 60 60 61 uint32_t random(uint32_t max)61 static uint32_t random(uint32_t max) 62 62 { 63 63 uint32_t rc; … … 71 71 72 72 73 void writer(void *arg)73 static void writer(void *arg) 74 74 { 75 75 int rc, to; … … 94 94 } 95 95 96 void reader(void *arg)96 static void reader(void *arg) 97 97 { 98 98 int rc, to; … … 113 113 } 114 114 115 void failed(void)115 static void failed(void) 116 116 { 117 117 printf("Test failed prematurely.\n"); … … 119 119 } 120 120 121 void test (void)121 void test_rwlock4(void) 122 122 { 123 123 context_t ctx; -
kernel/test/synch/rwlock5.c
rf272cb8 r70b6de1 77 77 } 78 78 79 void test (void)79 void test_rwlock5(void) 80 80 { 81 81 int i, j, k; -
kernel/test/synch/semaphore1.c
rf272cb8 r70b6de1 50 50 static void failed(void); 51 51 52 void producer(void *arg)52 static void producer(void *arg) 53 53 { 54 54 thread_detach(THREAD); … … 62 62 } 63 63 64 void consumer(void *arg)64 static void consumer(void *arg) 65 65 { 66 66 thread_detach(THREAD); … … 74 74 } 75 75 76 void failed(void)76 static void failed(void) 77 77 { 78 78 printf("Test failed prematurely.\n"); … … 80 80 } 81 81 82 void test (void)82 void test_semaphore1(void) 83 83 { 84 84 int i, j, k; -
kernel/test/synch/semaphore2.c
rf272cb8 r70b6de1 42 42 static semaphore_t sem; 43 43 44 SPINLOCK_INITIALIZE(lock);44 static SPINLOCK_INITIALIZE(lock); 45 45 46 46 static waitq_t can_start; 47 47 48 uint32_t seed = 0xdeadbeef;48 static uint32_t seed = 0xdeadbeef; 49 49 50 50 static uint32_t random(uint32_t max); … … 53 53 static void failed(void); 54 54 55 uint32_t random(uint32_t max)55 static uint32_t random(uint32_t max) 56 56 { 57 57 uint32_t rc; … … 65 65 66 66 67 void consumer(void *arg)67 static void consumer(void *arg) 68 68 { 69 69 int rc, to; … … 88 88 } 89 89 90 void failed(void)90 static void failed(void) 91 91 { 92 92 printf("Test failed prematurely.\n"); … … 94 94 } 95 95 96 void test (void)96 void test_semaphore2(void) 97 97 { 98 98 uint32_t i, k; -
kernel/test/sysinfo/sysinfo1.c
rf272cb8 r70b6de1 40 40 }*/ 41 41 42 void test (void)42 void test_sysinfo1(void) 43 43 { 44 44 /* sysinfo_set_item_val("Ahoj.lidi.uaaaa",NULL,9); … … 52 52 sysinfo_dump(NULL,0);*/ 53 53 sysinfo_dump(NULL,0); 54 55 54 } -
kernel/test/test.c
rf272cb8 r70b6de1 114 114 true 115 115 }, 116 { 117 "rwlock1", 118 "RW-lock test 1", 119 &test_rwlock1, 120 true 121 }, 122 { 123 "rwlock2", 124 "RW-lock test 2", 125 &test_rwlock2, 126 true 127 }, 128 { 129 "rwlock3", 130 "RW-lock test 3", 131 &test_rwlock3, 132 true 133 }, 134 { 135 "rwlock4", 136 "RW-lock test 4", 137 &test_rwlock4, 138 true 139 }, 140 { 141 "rwlock5", 142 "RW-lock test 5", 143 &test_rwlock5, 144 true 145 }, 146 { 147 "semaphore1", 148 "Semaphore test 1", 149 &test_semaphore1, 150 true 151 }, 152 { 153 "semaphore2", 154 "Semaphore test 2", 155 &test_semaphore2, 156 true 157 }, 158 { 159 "print1", 160 "Printf test", 161 &test_print1, 162 true 163 }, 164 { 165 "thread1", 166 "Thread test", 167 &test_thread1, 168 true 169 }, 170 { 171 "sysinfo1", 172 "Sysinfo test", 173 &test_sysinfo1, 174 true 175 }, 116 176 {NULL, NULL, NULL} 117 177 }; -
kernel/test/test.h
rf272cb8 r70b6de1 59 59 extern void test_slab1(void); 60 60 extern void test_slab2(void); 61 extern void test_rwlock1(void); 62 extern void test_rwlock2(void); 63 extern void test_rwlock3(void); 64 extern void test_rwlock4(void); 65 extern void test_rwlock5(void); 66 extern void test_semaphore1(void); 67 extern void test_semaphore2(void); 68 extern void test_print1(void); 69 extern void test_thread1(void); 70 extern void test_sysinfo1(void); 61 71 62 72 extern test_t tests[]; -
kernel/test/thread/thread1.c
rf272cb8 r70b6de1 49 49 } 50 50 51 void test (void)51 void test_thread1(void) 52 52 { 53 53 thread_t *t;
Note:
See TracChangeset
for help on using the changeset viewer.