Changeset f272cb8 in mainline for kernel/test/mm/slab1.c
- Timestamp:
- 2006-12-11T19:19:28Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 70b6de1
- Parents:
- 50661ab
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/slab1.c
r50661ab rf272cb8 34 34 #include <panic.h> 35 35 #include <memstr.h> 36 37 #ifdef CONFIG_BENCH 38 #include <arch/cycle.h> 39 #endif 36 40 37 41 #define VAL_COUNT 1024 … … 154 158 } 155 159 156 void test (void)160 void test_slab1(void) 157 161 { 162 #ifdef CONFIG_BENCH 163 uint64_t t0 = get_cycle(); 164 #endif 158 165 testsimple(); 159 166 testthreads(); 167 #ifdef CONFIG_BENCH 168 uint64_t dt = get_cycle() - t0; 169 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 170 #endif 160 171 }
Note:
See TracChangeset
for help on using the changeset viewer.