- Timestamp:
- Apr 1, 2019 1:20:22 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp
r77968 r77969 2732 2732 { 2733 2733 RTTestISubF("IO - Sequential read %RU32", cbBlock); 2734 2735 uint8_t *pbBuf = (uint8_t *)RTMemPageAlloc(cbBlock); 2736 if (pbBuf) 2737 { 2738 memset(pbBuf, 0xf7, cbBlock); 2739 PROFILE_IO_FN("RTFileRead", fsPerfIoReadWorker(hFile1, cbFile, cbBlock, pbBuf, &offActual, &cSeeks)); 2740 RTMemPageFree(pbBuf, cbBlock); 2734 if (cbBlock <= cbFile) 2735 { 2736 2737 uint8_t *pbBuf = (uint8_t *)RTMemPageAlloc(cbBlock); 2738 if (pbBuf) 2739 { 2740 memset(pbBuf, 0xf7, cbBlock); 2741 PROFILE_IO_FN("RTFileRead", fsPerfIoReadWorker(hFile1, cbFile, cbBlock, pbBuf, &offActual, &cSeeks)); 2742 RTMemPageFree(pbBuf, cbBlock); 2743 } 2744 else 2745 RTTestSkipped(g_hTest, "insufficient (virtual) memory available"); 2741 2746 } 2742 2747 else 2743 RTTestSkipped(g_hTest, " insufficient (virtual) memory available");2748 RTTestSkipped(g_hTest, "test file too small"); 2744 2749 } 2745 2750 … … 3186 3191 RTTestISubF("IO - Sequential write %RU32", cbBlock); 3187 3192 3188 uint8_t *pbBuf = (uint8_t *)RTMemPageAlloc(cbBlock); 3189 if (pbBuf) 3190 { 3191 memset(pbBuf, 0xf7, cbBlock); 3192 PROFILE_IO_FN("RTFileWrite", fsPerfIoWriteWorker(hFile1, cbFile, cbBlock, pbBuf, &offActual, &cSeeks)); 3193 RTMemPageFree(pbBuf, cbBlock); 3193 if (cbBlock <= cbFile) 3194 { 3195 uint8_t *pbBuf = (uint8_t *)RTMemPageAlloc(cbBlock); 3196 if (pbBuf) 3197 { 3198 memset(pbBuf, 0xf7, cbBlock); 3199 PROFILE_IO_FN("RTFileWrite", fsPerfIoWriteWorker(hFile1, cbFile, cbBlock, pbBuf, &offActual, &cSeeks)); 3200 RTMemPageFree(pbBuf, cbBlock); 3201 } 3202 else 3203 RTTestSkipped(g_hTest, "insufficient (virtual) memory available"); 3194 3204 } 3195 3205 else 3196 RTTestSkipped(g_hTest, " insufficient (virtual) memory available");3206 RTTestSkipped(g_hTest, "test file too small"); 3197 3207 } 3198 3208
Note:
See TracChangeset
for help on using the changeset viewer.