Lines Matching defs:pProcInfo
147 PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION pProcInfo;
211 pProcInfo = (PSYSTEM_PROCESSOR_PERFORMANCE_INFORMATION)RTMemAlloc(cbStruct);
212 if (!pProcInfo)
216 NTSTATUS rc = gCtx.pfnNtQuerySystemInformation(SystemProcessorPerformanceInformation, pProcInfo, cbStruct, &cbReturned);
223 gCtx.au64LastCpuLoad_Idle[0] = pProcInfo->IdleTime.QuadPart;
224 gCtx.au64LastCpuLoad_Kernel[0] = pProcInfo->KernelTime.QuadPart;
225 gCtx.au64LastCpuLoad_User[0] = pProcInfo->UserTime.QuadPart;
229 rc = gCtx.pfnNtQuerySystemInformation(SystemProcessorPerformanceInformation, pProcInfo, cbStruct, &cbReturned);
233 uint64_t deltaIdle = (pProcInfo->IdleTime.QuadPart - gCtx.au64LastCpuLoad_Idle[0]);
234 uint64_t deltaKernel = (pProcInfo->KernelTime.QuadPart - gCtx.au64LastCpuLoad_Kernel[0]);
235 uint64_t deltaUser = (pProcInfo->UserTime.QuadPart - gCtx.au64LastCpuLoad_User[0]);
247 gCtx.au64LastCpuLoad_Idle[0] = pProcInfo->IdleTime.QuadPart;
248 gCtx.au64LastCpuLoad_Kernel[0] = pProcInfo->KernelTime.QuadPart;
249 gCtx.au64LastCpuLoad_User[0] = pProcInfo->UserTime.QuadPart;
264 RTMemFree(pProcInfo);