Changeset f272cb8 in mainline for kernel/test/mm/falloc2.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/falloc2.c
r50661ab rf272cb8 38 38 #include <memstr.h> 39 39 #include <arch.h> 40 41 #ifdef CONFIG_BENCH 42 #include <arch/cycle.h> 43 #endif 40 44 41 45 #define MAX_FRAMES 256 … … 102 106 103 107 104 void test (void)108 void test_falloc2(void) 105 109 { 110 #ifdef CONFIG_BENCH 111 uint64_t t0 = get_cycle(); 112 #endif 106 113 int i; 107 114 … … 121 128 122 129 printf("Test passed.\n"); 130 #ifdef CONFIG_BENCH 131 uint64_t dt = get_cycle() - t0; 132 printf("Time: %.*d cycles\n", sizeof(dt) * 2, dt); 133 #endif 123 134 }
Note:
See TracChangeset
for help on using the changeset viewer.