Home
last modified time | relevance | path

Searched refs:cpupInfo (Results 1 - 5 of 5) sorted by relevance

/kernel/liteos_a/kernel/extended/cpup/
H A Dlos_cpup.c430 STATIC UINT32 OsCpupUsageParamCheckAndReset(CPUP_INFO_S *cpupInfo, UINT32 len, UINT32 number) in OsCpupUsageParamCheckAndReset() argument
436 if ((cpupInfo == NULL) || (len < (sizeof(CPUP_INFO_S) * number))) { in OsCpupUsageParamCheckAndReset()
440 (VOID)memset_s(cpupInfo, len, 0, len); in OsCpupUsageParamCheckAndReset()
444 STATIC UINT32 GetAllProcessCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in GetAllProcessCpuUsageUnsafe() argument
452 ret = OsCpupUsageParamCheckAndReset(cpupInfo, len, g_processMaxNum); in GetAllProcessCpuUsageUnsafe()
466 cpupInfo[processID].usage = OsCalculateCpupUsage(processCB->processCpup, pos, prePos, cpuAllCycle); in GetAllProcessCpuUsageUnsafe()
467 cpupInfo[processID].status = OS_CPUP_USED; in GetAllProcessCpuUsageUnsafe()
473 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in LOS_GetAllProcessCpuUsage() argument
479 ret = GetAllProcessCpuUsageUnsafe(mode, cpupInfo, len); in LOS_GetAllProcessCpuUsage()
572 LITE_OS_SEC_TEXT_MINOR UINT32 OsGetAllIrqCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT3 argument
599 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) LOS_GetAllIrqCpuUsage() argument
[all...]
H A Dlos_cpup_pri.h78 extern UINT32 OsGetAllIrqCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len);
/kernel/liteos_a/kernel/include/
H A Dlos_cpup.h241 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the CPUP information structure to be obtained.
252 extern UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len);
274 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the CPUP information structure to be obtained.
285 extern UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len);
/kernel/liteos_m/components/cpup/
H A Dlos_cpup.c501 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_AllTaskCpuUsage(CPUP_INFO_S *cpupInfo, UINT16 mode) in LOS_AllTaskCpuUsage() argument
514 if (cpupInfo == NULL) { in LOS_AllTaskCpuUsage()
547 cpupInfo[loopNum].usStatus = g_cpup[loopNum].status; in LOS_AllTaskCpuUsage()
549 cpupInfo[loopNum].uwUsage = (UINT32)((LOS_CPUP_PRECISION * cpuTimeCurTsk) / cpuTimeAll); in LOS_AllTaskCpuUsage()
709 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo) in LOS_GetAllIrqCpuUsage() argument
722 if (cpupInfo == NULL) { in LOS_GetAllIrqCpuUsage()
740 cpupInfo[loopNum].usStatus = g_irqCpup[loopNum].status; in LOS_GetAllIrqCpuUsage()
749 cpupInfo[loopNum].uwUsage = (UINT32)((LOS_CPUP_PRECISION * cpuTimeCurIrq) / cpuTimeAll); in LOS_GetAllIrqCpuUsage()
H A Dlos_cpup.h337 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the task CPUP information structure to be obtained.
349 extern UINT32 LOS_AllTaskCpuUsage(CPUP_INFO_S *cpupInfo, UINT16 mode);
380 extern UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo);

Completed in 4 milliseconds