VirtualBox

Changeset 53026 in vbox for trunk/src


Ignore:
Timestamp:
Oct 10, 2014 12:03:00 PM (10 years ago)
Author:
vboxsync
Message:

testcase/tstGIP-2: Print entries for offline CPUs while printing TSC deltas.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp

    r52871 r53026  
    160160            }
    161161
    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             */
    163169            RTPrintf("tstGIP-2: TSC deltas:\n");
    164             RTPrintf("tstGIP-2: idApic: i64TSCDelta\n");
     170            RTPrintf("tstGIP-2:  idApic: i64TSCDelta\n");
    165171            for (unsigned i = 0; i < RT_ELEMENTS(g_pSUPGlobalInfoPage->aiCpuFromApicId); i++)
    166172            {
     
    168174                if (iCpu != UINT16_MAX)
    169175                {
    170                     RTPrintf("tstGIP-2: %6d: %lld\n", g_pSUPGlobalInfoPage->aCPUs[iCpu].idApic,
     176                    RTPrintf("tstGIP-2: %7d: %lld\n", g_pSUPGlobalInfoPage->aCPUs[iCpu].idApic,
    171177                             g_pSUPGlobalInfoPage->aCPUs[iCpu].i64TSCDelta);
    172178                }
    173179            }
     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);
    174184        }
    175185        else
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette