Home
last modified time | relevance | path

Searched refs:cpuOneSec (Results 1 – 1 of 1) sorted by relevance

/kernel/liteos_m/kernel/src/
Dlos_task.c261 CPUP_INFO_S **cpuOneSec) in OsGetAllTskCpupInfo() argument
263 if ((cpuLessOneSec == NULL) || (cpuTenSec == NULL) || (cpuOneSec == NULL)) { in OsGetAllTskCpupInfo()
286 …*cpuOneSec = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, sizeof(CPUP_INFO_S) * g_taskMaxN… in OsGetAllTskCpupInfo()
287 if (*cpuOneSec == NULL) { in OsGetAllTskCpupInfo()
294 (VOID)memset_s((VOID *)(*cpuOneSec), sizeof(CPUP_INFO_S) * g_taskMaxNum, in OsGetAllTskCpupInfo()
300 (VOID)LOS_AllTaskCpuUsage(*cpuOneSec, CPUP_IN_1S); in OsGetAllTskCpupInfo()
348 CPUP_INFO_S *cpuOneSec = (CPUP_INFO_S *)NULL; in OsGetAllTskInfo() local
357 if (OsGetAllTskCpupInfo(&cpuLessOneSec, &cpuTenSec, &cpuOneSec) != LOS_OK) { in OsGetAllTskInfo()
385 cpuOneSec[taskCB->taskID].uwUsage / LOS_CPUP_PRECISION_MULT, in OsGetAllTskInfo()
386 cpuOneSec[taskCB->taskID].uwUsage % LOS_CPUP_PRECISION_MULT); in OsGetAllTskInfo()
[all …]