/vbox/src/VBox/Runtime/testcase/ |
H A D | tstSemMutex.cpp | 113 static int Test1(unsigned cThreads, unsigned cSeconds, bool fYield, bool fQuiet) argument 119 AssertRelease(cThreads <= RT_ELEMENTS(g_au64)); 139 for (i = 0; i < cThreads; i++) 149 cThreads, cSeconds, g_fYield ? "yielding" : "no yielding"); 159 for (i = 0; i < cThreads; i++) 177 for (i = 1; i < cThreads; i++) 180 uint64_t Normal = Total / cThreads; 182 for (i = 0; i < cThreads; i++) 194 cThreads, 223 for (unsigned cThreads [all...] |
H A D | tstRTCritSect.cpp | 130 uint32_t cThreads; member in struct:THREADTEST2ARGS 189 static int Test1(unsigned cThreads) argument 191 RTTestSubF(g_hTest, "Test #1 with %u thread", cThreads); 210 for (uint32_t iThread = 0; iThread < cThreads; iThread++) 231 while (u32Release < cThreads) 270 if ((*pArgs->pu32Release % pArgs->cThreads) != pArgs->iThread) 272 pArgs->iThread, i, *pArgs->pu32Release % pArgs->cThreads, *pArgs->pu32Release); 275 pArgs->iThread, i, *pArgs->pu32Release % pArgs->cThreads, *pArgs->pu32Release); 286 uint32_t u32Perfect = *pArgs->pu32Release / pArgs->cThreads; 287 for (int iThread = 0 ; iThread < (int)pArgs->cThreads; iThrea 352 Test2(unsigned cThreads, unsigned cIterations, unsigned cCheckLoops) argument [all...] |
H A D | tstRTSemXRoads.cpp | 94 static void tstTraffic(unsigned cThreads, unsigned cSecs) argument 96 RTTestSubF(g_hTest, "Traffic - %u threads per direction, %u sec", cThreads, cSecs); 109 AssertRelease(RT_ELEMENTS(ahThreadsX) >= cThreads); 114 AssertRelease(RT_ELEMENTS(ahThreadsY) >= cThreads); 125 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++) 131 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++)
|
H A D | tstHandleTable.cpp | 371 static int tstHandleTableTest2(uint32_t uBase, uint32_t cMax, uint32_t cThreads) argument 376 RTPrintf("tstHandleTable: TESTING %u threads: uBase=%u, cMax=%u\n", cThreads, uBase, cMax); 391 PTSTHTTEST2ARGS paThread = (PTSTHTTEST2ARGS)alloca(sizeof(*paThread) * cThreads); 392 for (uint32_t i = 0; i < cThreads; i++) 397 paThread[i].cMax = cMax / cThreads; 399 for (uint32_t i = 0; i < cThreads; i++) 415 uint32_t cRunning = cThreads; 418 if (cRunning != cThreads) 421 for (uint32_t i = 0; i < cThreads; i++) 462 uint32_t cThreads local [all...] |
H A D | tstRTReqPool.cpp | 92 uint32_t cThreads = RTReqPoolGetStat(hPool, RTREQPOOLSTAT_THREADS); local 93 RTTestIValue("thread-count-1", cThreads, RTTESTUNIT_OCCURRENCES); 94 RTTESTI_CHECK(cThreads >= cMinThreads); 95 RTTESTI_CHECK(cThreads <= cMaxThreads); 111 RTTESTI_CHECK(cThreads2 < cThreads || cThreads2 <= cMinThreads);
|
H A D | tstRTMemCache.cpp | 256 static void tst3(uint32_t cThreads, uint32_t cbObject, int iMethod, uint32_t cSecs) argument 258 RTTestISubF("Benchmark - %u threads, %u bytes, %u secs, %s", cThreads, cbObject, cSecs, 272 RTTESTI_CHECK_RETV(cThreads < RT_ELEMENTS(aThreads)); 275 for (uint32_t i = 0; i < cThreads; i++) 295 for (uint32_t i = 0; i < cThreads; i++) 303 for (uint32_t i = 0; i < cThreads; i++) 315 static void tst3AllMethods(uint32_t cThreads, uint32_t cbObject, uint32_t cSecs) 317 tst3(cThreads, cbObject, 0, cSecs); 318 tst3(cThreads, cbObject, 1, cSecs);
|
H A D | tstRTCritSectRw.cpp | 216 static void Test4(unsigned cThreads, unsigned cSeconds, unsigned uWritePercent, bool fYield, bool fQuiet) argument 221 AssertRelease(cThreads <= RT_ELEMENTS(acIterations)); 224 cThreads, cSeconds, uWritePercent, fYield ? "" : "non-"); 243 for (i = 0; i < cThreads; i++) 264 for (i = 0; i < cThreads; i++) 279 for (i = 1; i < cThreads; i++) 282 uint64_t cItrNormal = cItrTotal / cThreads; 285 for (i = 0; i < cThreads; i++) 302 // cThreads, 468 for (unsigned cThreads [all...] |
H A D | tstRTSemRW.cpp | 215 static void Test4(unsigned cThreads, unsigned cSeconds, unsigned uWritePercent, bool fYield, bool fQuiet) argument 220 AssertRelease(cThreads <= RT_ELEMENTS(acIterations)); 223 cThreads, cSeconds, uWritePercent, fYield ? "" : "non-"); 242 for (i = 0; i < cThreads; i++) 263 for (i = 0; i < cThreads; i++) 279 for (i = 1; i < cThreads; i++) 282 uint64_t cItrNormal = cItrTotal / cThreads; 285 for (i = 0; i < cThreads; i++) 302 // cThreads, 481 for (unsigned cThreads [all...] |
H A D | tstRTR0SemMutexDriver.cpp | 99 * @param cThreads The number of threads. 104 unsigned cThreads, unsigned cSecs, PTSTRTR0SEMMUTEXREQ pReq, const char *pszTest) 106 RTTestSubF(g_hTest, "%s - %u threads", pszTest, cThreads); 108 RTTESTI_CHECK_RET(cThreads <= RT_ELEMENTS(ahThreads), false); 130 for (unsigned i = 0; i < cThreads && RT_SUCCESS(rc); i++) 134 for (unsigned i = 0; i < cThreads; i++) 163 for (unsigned i = 0; i < cThreads; i++) 103 tstDoThreadedTest(TSTRTR0SEMMUTEX enmSetup, TSTRTR0SEMMUTEX enmDo, TSTRTR0SEMMUTEX enmCleanup, unsigned cThreads, unsigned cSecs, PTSTRTR0SEMMUTEXREQ pReq, const char *pszTest) argument
|
H A D | tstRTMemPool.cpp | 249 static void tst4Sub(uint32_t cThreads) argument 251 RTTestISubF("Serialization - %u threads", cThreads); 256 PRTTHREAD pahThreads = (PRTTHREAD)RTMemPoolAlloc(hMemPool, cThreads * sizeof(RTTHREAD)); 261 for (uint32_t i = 0; i < cThreads; i++) 264 RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "tst4-%u/%u", i, cThreads); 272 for (uint32_t i = 0; i < cThreads; i++) 277 for (uint32_t i = 0; i < cThreads; i++)
|
H A D | tstRTLockValidator.cpp | 272 * @param cThreads The number of threads to start. 275 static int testStartThreads(uint32_t cThreads, PFNRTTHREAD pfnThread) argument 283 for (uint32_t i = 0; i < cThreads; i++) 321 static void testIt(uint32_t cThreads, uint32_t cSecs, bool fLoops, PFNRTTHREAD pfnThread, const char *pszName) argument 327 RTTestSubF(g_hTest, "%s, %u threads, %u secs", pszName, cThreads, cSecs); 329 RTTestSubF(g_hTest, "%s, %u threads, single pass", pszName, cThreads); 331 RTTEST_CHECK_RETV(g_hTest, RT_ELEMENTS(g_ahThreads) >= cThreads); 332 RTTEST_CHECK_RETV(g_hTest, RT_ELEMENTS(g_aCritSects) >= cThreads); 334 g_cThreads = cThreads; 337 for (uint32_t i = 0; i < cThreads; 454 testDd1(uint32_t cThreads, uint32_t cSecs) argument 510 testDd2(uint32_t cThreads, uint32_t cSecs) argument 557 testDd3(uint32_t cThreads, uint32_t cSecs) argument 613 testDd4(uint32_t cThreads, uint32_t cSecs) argument 653 testDd5(uint32_t cThreads, uint32_t cSecs) argument 706 testDd6(uint32_t cThreads, uint32_t cSecs) argument 760 testDd7(uint32_t cThreads, uint32_t cSecs) argument [all...] |
H A D | tstRTCoreDump.h | 110 uint64_t cThreads; /* Number of threads (count of pThreadInfoHead list) */ member in struct:VBOXPROCESS
|
H A D | tstRTR0ThreadPreemptionDriver.cpp | 195 uint32_t cThreads = RTMpGetCount();
|
/vbox/src/VBox/ValidationKit/utils/misc/ |
H A D | loadgenerator.cpp | 169 uint32_t cThreads = 1; local 202 cThreads = ValueUnion.u64; 203 if (cThreads == 0 || cThreads > RT_ELEMENTS(s_aThreads)) 205 cThreads, RT_ELEMENTS(s_aThreads) - 1); 325 if (cCpus * cThreads > RT_ELEMENTS(s_aThreads)) 327 cThreads, RT_ELEMENTS(s_aThreads) - 1, cCpus); 328 cThreads *= cCpus; 353 for (unsigned i = 1; i < cThreads; i++) 375 for (unsigned i = 1; i < cThreads; [all...] |
/vbox/src/VBox/Runtime/r0drv/os2/ |
H A D | semevent-r0drv-os2.cpp | 111 ULONG cThreads; local 112 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_BOOST, &cThreads, (ULONG)VERR_SEM_DESTROYED); 141 ULONG cThreads; local 142 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_ONE, &cThreads, VINF_SUCCESS); 143 if (RT_UNLIKELY(!cThreads))
|
H A D | semeventmulti-r0drv-os2.cpp | 111 ULONG cThreads; local 112 KernWakeup((ULONG)pThis, WAKEUP_DATA | WAKEUP_BOOST, &cThreads, (ULONG)VERR_SEM_DESTROYED); 144 ULONG cThreads; local 145 KernWakeup((ULONG)pThis, WAKEUP_DATA, &cThreads, VINF_SUCCESS);
|
/vbox/src/VBox/HostDrivers/Support/testcase/ |
H A D | tstSupSem-Zombie.cpp | 133 for (uint32_t cThreads = 0; cThreads < 5; cThreads++)
|
/vbox/src/VBox/Runtime/r3/solaris/ |
H A D | coredumper-solaris.h | 116 uint64_t cThreads; /**< Number of threads (count of pThreadInfoHead list) */ member in struct:RTSOLCOREPROCESS
|
H A D | coredumper-solaris.cpp | 931 pSolProc->cThreads = cInfo; 1266 uint64_t cThreads; local 1267 return rtCoreDumperForEachThread(pSolCore, &cThreads, resumeThread);
|
/vbox/src/VBox/Main/webservice/ |
H A D | vboxweb.cpp | 486 * @param cThreads out: total no. of SOAP threads running 489 SOAP_SOCKET get(size_t &cIdleThreads, size_t &cThreads) argument 502 cThreads = m_llAllThreads.size(); 555 size_t cIdleThreads = 0, cThreads = 0; local 556 m_soap->socket = m_pQ->get(cIdleThreads, cThreads); 565 cThreads);
|
/vbox/src/VBox/VMM/VMMAll/ |
H A D | CPUMAllMsrs.cpp | 1549 uint16_t cThreads = cCores; /** @todo hyper-threading. */ local 1550 *puValue = RT_MAKE_U32(cThreads, cCores);
|