Changeset 45399 in vbox for trunk/src/VBox/HostDrivers/Support/testcase
- Timestamp:
- Apr 8, 2013 10:18:06 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84826
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp
r44528 r45399 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 97 97 if (g_pSUPGlobalInfoPage) 98 98 { 99 RTPrintf("tstGIP-2: u32UpdateHz=%RU32 u32UpdateIntervalNS=%RU32 u64NanoTSLastUpdateHz=%RX64 u32Mode=%d (%s) u32Version=%#x\n", 99 RTPrintf("tstGIP-2: cCpus=%d u32UpdateHz=%RU32 u32UpdateIntervalNS=%RU32 u64NanoTSLastUpdateHz=%RX64 u32Mode=%d (%s) u32Version=%#x\n", 100 g_pSUPGlobalInfoPage->cCpus, 100 101 g_pSUPGlobalInfoPage->u32UpdateHz, 101 102 g_pSUPGlobalInfoPage->u32UpdateIntervalNS, … … 109 110 ? "tstGIP-2: it: u64NanoTS delta u64TSC UpIntTSC H TransId CpuHz TSC Interval History...\n" 110 111 : "tstGIP-2: it: u64NanoTS delta u64TSC UpIntTSC H TransId CpuHz TSC Interval History...\n"); 111 static SUPGIPCPU s_aaCPUs[2][ RT_ELEMENTS(g_pSUPGlobalInfoPage->aCPUs)];112 static SUPGIPCPU s_aaCPUs[2][256]; 112 113 for (uint32_t i = 0; i < cIterations; i++) 113 114 { 114 115 /* copy the data */ 115 memcpy(&s_aaCPUs[i & 1][0], &g_pSUPGlobalInfoPage->aCPUs[0], sizeof(g_pSUPGlobalInfoPage->aCPUs));116 memcpy(&s_aaCPUs[i & 1][0], &g_pSUPGlobalInfoPage->aCPUs[0], g_pSUPGlobalInfoPage->cCpus * sizeof(g_pSUPGlobalInfoPage->aCPUs[0])); 116 117 117 118 /* display it & find something to spin on. */ 118 119 uint32_t u32TransactionId = 0; 119 120 uint32_t volatile *pu32TransactionId = NULL; 120 for (unsigned iCpu = 0; iCpu < RT_ELEMENTS(g_pSUPGlobalInfoPage->aCPUs); iCpu++)121 for (unsigned iCpu = 0; iCpu < g_pSUPGlobalInfoPage->cCpus; iCpu++) 121 122 if ( g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz > 0 122 123 && g_pSUPGlobalInfoPage->aCPUs[iCpu].u64CpuHz != _4G + 1)
Note:
See TracChangeset
for help on using the changeset viewer.