- Timestamp:
- 2006-03-16T22:31:39Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93165be
- Parents:
- 37c57f2
- Location:
- test/mm
- Files:
-
- 3 edited
-
falloc2/test.c (modified) (2 diffs)
-
slab1/test.c (modified) (2 diffs)
-
slab2/test.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test/mm/falloc2/test.c
r37c57f2 rff14c520 45 45 #define THREADS 8 46 46 47 static void thread(void * arg);47 static void falloc(void * arg); 48 48 static void failed(void); 49 49 50 50 static atomic_t thread_count; 51 51 52 void thread(void * arg)52 void falloc(void * arg) 53 53 { 54 54 int status, order, run, allocated, i; … … 108 108 for (i = 0; i < THREADS; i++) { 109 109 thread_t * thrd; 110 thrd = thread_create( thread, NULL, TASK, 0);110 thrd = thread_create(falloc, NULL, TASK, 0, "falloc"); 111 111 if (thrd) 112 112 thread_ready(thrd); -
test/mm/slab1/test.c
r37c57f2 rff14c520 109 109 semaphore_t thr_sem; 110 110 111 static void thread(void *data)111 static void slabtest(void *data) 112 112 { 113 113 int offs = (int)(__native) data; … … 139 139 semaphore_initialize(&thr_sem,0); 140 140 for (i=0; i<THREADS; i++) { 141 if (!(t = thread_create( thread, (void *)(__native)i, TASK, 0)))141 if (!(t = thread_create(slabtest, (void *)(__native)i, TASK, 0, "slabtest"))) 142 142 panic("could not create thread\n"); 143 143 thread_ready(t); -
test/mm/slab2/test.c
r37c57f2 rff14c520 123 123 #define THREADS 8 124 124 125 static void thread(void *priv)125 static void slabtest(void *priv) 126 126 { 127 127 void *data=NULL, *new; … … 189 189 semaphore_initialize(&thr_sem,0); 190 190 for (i=0; i<THREADS; i++) { 191 if (!(t = thread_create( thread, NULL, TASK, 0)))191 if (!(t = thread_create(slabtest, NULL, TASK, 0, "slabtest"))) 192 192 panic("could not create thread\n"); 193 193 thread_ready(t);
Note:
See TracChangeset
for help on using the changeset viewer.
