Changeset f272cb8 in mainline for kernel/test/mm/falloc1.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/falloc1.c
r50661ab rf272cb8 36 36 #include <align.h> 37 37 38 #ifdef CONFIG_BENCH 39 #include <arch/cycle.h> 40 #endif 41 38 42 #define MAX_FRAMES 1024 39 43 #define MAX_ORDER 8 40 44 #define TEST_RUNS 2 41 45 42 void test(void) { 46 void test_falloc1(void) { 47 #ifdef CONFIG_BENCH 48 uint64_t t0 = get_cycle(); 49 #endif 43 50 uintptr_t * frames = (uintptr_t *) malloc(MAX_FRAMES*sizeof(uintptr_t), 0); 44 51 int results[MAX_ORDER+1]; … … 89 96 90 97 printf("Test passed.\n"); 98 #ifdef CONFIG_BENCH 99 uint64_t dt = get_cycle() - t0; 100 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 101 #endif 91 102 } 92 103
Note:
See TracChangeset
for help on using the changeset viewer.