Changeset 319e60e in mainline for kernel/test/mm/slab2/test.c
- Timestamp:
- 2006-12-11T18:33:53Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 50661ab
- Parents:
- 134877d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/slab2/test.c
r134877d r319e60e 38 38 #include <synch/mutex.h> 39 39 40 #ifdef CONFIG_BENCH 41 #include <arch/cycle.h> 42 #endif 43 40 44 #define ITEM_SIZE 256 41 45 … … 209 213 void test(void) 210 214 { 215 #ifdef CONFIG_BENCH 216 uint64_t t0 = get_cycle(); 217 #endif 218 211 219 printf("Running reclaim single-thread test .. pass1\n"); 212 220 totalmemtest(); … … 219 227 multitest(8192); 220 228 printf("All done.\n"); 221 } 229 230 #ifdef CONFIG_BENCH 231 uint64_t dt = get_cycle() - t0; 232 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 233 #endif 234 }
Note:
See TracChangeset
for help on using the changeset viewer.