- Timestamp:
- Oct 10, 2014 12:03:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r52871 r53026 160 160 } 161 161 162 /* Display TSC deltas. */ 162 /* 163 * Display TSC deltas. 164 * 165 * First iterative over the APIC ID array to get mostly consistent CPUID to APIC ID mapping. 166 * Then iterate over the offline CPUs. It is possible that there's a race between the online/offline 167 * states between the two iterations, but that cannot be helped from ring-3 anyway and not a biggie. 168 */ 163 169 RTPrintf("tstGIP-2: TSC deltas:\n"); 164 RTPrintf("tstGIP-2: idApic: i64TSCDelta\n");170 RTPrintf("tstGIP-2: idApic: i64TSCDelta\n"); 165 171 for (unsigned i = 0; i < RT_ELEMENTS(g_pSUPGlobalInfoPage->aiCpuFromApicId); i++) 166 172 { … … 168 174 if (iCpu != UINT16_MAX) 169 175 { 170 RTPrintf("tstGIP-2: % 6d: %lld\n", g_pSUPGlobalInfoPage->aCPUs[iCpu].idApic,176 RTPrintf("tstGIP-2: %7d: %lld\n", g_pSUPGlobalInfoPage->aCPUs[iCpu].idApic, 171 177 g_pSUPGlobalInfoPage->aCPUs[iCpu].i64TSCDelta); 172 178 } 173 179 } 180 181 for (unsigned iCpu = 0; iCpu < g_pSUPGlobalInfoPage->cCpus; iCpu++) 182 if (g_pSUPGlobalInfoPage->aCPUs[iCpu].idApic == UINT16_MAX) 183 RTPrintf("tstGIP-2: offline: %lld\n", g_pSUPGlobalInfoPage->aCPUs[iCpu].i64TSCDelta); 174 184 } 175 185 else
Note:
See TracChangeset
for help on using the changeset viewer.