Changeset deada67 in mainline for kernel/test/mm/falloc1.c
- Timestamp:
- 2006-12-19T17:54:50Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 730376d
- Parents:
- 6536a4a9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc1.c
r6536a4a9 rdeada67 56 56 for (run = 0; run < TEST_RUNS; run++) { 57 57 for (order = 0; order <= MAX_ORDER; order++) { 58 printf("Allocating %d frames blocks ... ", 1 << order); 58 if (!quiet) 59 printf("Allocating %d frames blocks ... ", 1 << order); 60 59 61 allocated = 0; 60 62 for (i = 0; i < MAX_FRAMES >> order; i++) { … … 62 64 63 65 if (ALIGN_UP(frames[allocated], FRAME_SIZE << order) != frames[allocated]) { 64 printf("Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); 66 if (!quiet) 67 printf("Block at address %p (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10); 65 68 return "Test failed"; 66 69 } … … 69 72 allocated++; 70 73 else { 71 printf("done. "); 74 if (!quiet) 75 printf("done. "); 72 76 break; 73 77 } 74 78 } 75 79 76 printf("%d blocks allocated.\n", allocated); 80 if (!quiet) 81 printf("%d blocks allocated.\n", allocated); 77 82 78 83 if (run) { … … 82 87 results[order] = allocated; 83 88 84 printf("Deallocating ... "); 89 if (!quiet) 90 printf("Deallocating ... "); 91 85 92 for (i = 0; i < allocated; i++) 86 93 frame_free(KA2PA(frames[i])); 87 printf("done.\n"); 94 95 if (!quiet) 96 printf("done.\n"); 88 97 } 89 98 }
Note:
See TracChangeset
for help on using the changeset viewer.