Changeset 54288 in vbox
- Timestamp:
- Feb 19, 2015 12:11:01 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstSupTscDelta.cpp
r54287 r54288 55 55 56 56 uint32_t cIterations = 0; /* Currently 0 so that it doesn't upset testing. */ 57 uint32_t cMsSleepBetweenIterations = 10; 57 58 58 59 int ch; … … 88 89 return RTTestSkipAndDestroy(hTest, "No deltas to play with: enmUseTscDelta=%d\n", pGip->enmUseTscDelta); 89 90 91 /* 92 * Init stats. 93 */ 90 94 struct 91 95 { … … 98 102 } aCpuStats[RTCPUSET_MAX_CPUS]; 99 103 RT_ZERO(aCpuStats); 100 104 for (uint32_t i = 0; i < pGip->cCpus; i++) 105 { 106 aCpuStats[i].iLowest = INT64_MAX; 107 aCpuStats[i].uAbsMin = UINT64_MAX; 108 } 109 110 /* 111 * Do the work. 112 */ 101 113 for (uint32_t iIteration = 0; ; iIteration++) 102 114 { … … 149 161 * Force a new measurement. 150 162 */ 151 RTThreadSleep( 16);163 RTThreadSleep(cMsSleepBetweenIterations); 152 164 for (uint32_t iCpu = 0; iCpu < pGip->cCpus; iCpu++) 153 165 if (pGip->aCPUs[iCpu].enmState == SUPGIPCPUSTATE_ONLINE) … … 179 191 aCpuStats[iCpu].iTotal / cIterations, 180 192 aCpuStats[iCpu].iHighest - aCpuStats[iCpu].iLowest); 181 RTPrintf( "tstSupTscDelta: absmin=%-12llu absmax=%-12llu absavg=%-12llu \n",193 RTPrintf( "tstSupTscDelta: absmin=%-12llu absmax=%-12llu absavg=%-12llu idCpu=%#4x idApic=%#4x\n", 182 194 aCpuStats[iCpu].uAbsMin, 183 195 aCpuStats[iCpu].uAbsMax, 184 aCpuStats[iCpu].uAbsTotal / cIterations); 196 aCpuStats[iCpu].uAbsTotal / cIterations, 197 pGip->aCPUs[iCpu].idCpu, 198 pGip->aCPUs[iCpu].idApic); 185 199 if (iLowest > aCpuStats[iCpu].iLowest) 186 200 iLowest = aCpuStats[iCpu].iLowest;
Note:
See TracChangeset
for help on using the changeset viewer.