Home
last modified time | relevance | path

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

/kernel/liteos_a/kernel/extended/cpup/
Dlos_cpup.c111 if (processCB->processCpup == NULL) { in OsCpupGuard()
114 processCB->processCpup->historyTime[prevPos] = processCB->processCpup->allTime; in OsCpupGuard()
136 if (processCB->processCpup != NULL) { in OsCpupGuard()
137 processCB->processCpup->historyTime[prevPos] += cycleIncrement; in OsCpupGuard()
218 if (processCB->processCpup == NULL) { in LOS_CpupReset()
221 OsResetCpup(processCB->processCpup, cycle); in LOS_CpupReset()
254 OsCpupBase *processCpup = OS_PCB_FROM_TCB(runTask)->processCpup; in OsCpupCycleEndStart() local
270 if (processCpup != NULL) { in OsCpupCycleEndStart()
271 processCpup->allTime += cycleIncrement; in OsCpupCycleEndStart()
329 OsCpupBase *processCpup = NULL; in OsHistorySysCpuUsageUnsafe() local
[all …]
Dlos_cpup_pri.h75 extern UINT32 OsGetProcessAllCpuUsageUnsafe(OsCpupBase *processCpup, ProcessInfo *processInfo);
/kernel/liteos_a/kernel/extended/hidumper/
Dlos_hidumper.c174 CPUP_INFO_S *processCpup = NULL; in DumpCpuUsageUnsafe() local
179 size = sizeof(*processCpup) * g_processMaxNum * CPUP_TYPE_COUNT; in DumpCpuUsageUnsafe()
180 processCpup = LOS_MemAlloc(m_aucSysMem1, size); in DumpCpuUsageUnsafe()
181 if (processCpup == NULL) { in DumpCpuUsageUnsafe()
185 processCpupAll = processCpup; in DumpCpuUsageUnsafe()
188 (VOID)memset_s(processCpup, size, 0, size); in DumpCpuUsageUnsafe()
193 (VOID)LOS_MemFree(m_aucSysMem1, processCpup); in DumpCpuUsageUnsafe()
/kernel/liteos_a/fs/proc/os_adapt/
Dprocess_proc.c228 OsCpupBase *processCpup = (OsCpupBase *)LOS_MemAlloc(m_aucSysMem1, sizeof(OsCpupBase)); in ProcessCpupRead() local
229 if (processCpup == NULL) { in ProcessCpupRead()
232 (void)memset_s(processCpup, sizeof(OsCpupBase), 0, sizeof(OsCpupBase)); in ProcessCpupRead()
237 (VOID)LOS_MemFree(m_aucSysMem1, processCpup); in ProcessCpupRead()
240 (void)memcpy_s(processCpup, sizeof(OsCpupBase), pcb->processCpup, sizeof(OsCpupBase)); in ProcessCpupRead()
243 …(void)LosBufPrintf(seqBuf, "\nTotalRunningTime: %lu us\n", TIME_CYCLE_TO_US(processCpup->allTime)); in ProcessCpupRead()
246 (void)LosBufPrintf(seqBuf, "%lu ", TIME_CYCLE_TO_US(processCpup->historyTime[i])); in ProcessCpupRead()
249 (void)LOS_MemFree(m_aucSysMem1, processCpup); in ProcessCpupRead()
/kernel/liteos_a/kernel/base/core/
Dlos_process.c432 OsCpupBase *processCpup = processCB->processCpup; in OsProcessResourcesToFree() local
434 processCB->processCpup = NULL; in OsProcessResourcesToFree()
436 (VOID)LOS_MemFree(m_aucSysMem1, processCpup); in OsProcessResourcesToFree()
765 processCB->processCpup = (OsCpupBase *)LOS_MemAlloc(m_aucSysMem1, sizeof(OsCpupBase)); in OsInitPCB()
766 if (processCB->processCpup == NULL) { in OsInitPCB()
769 (VOID)memset_s(processCB->processCpup, sizeof(OsCpupBase), 0, sizeof(OsCpupBase)); in OsInitPCB()
Dlos_info.c107 (VOID)OsGetProcessAllCpuUsageUnsafe(processCB->processCpup, pcbInfo); in GetProcessInfo()
/kernel/liteos_a/kernel/base/include/
Dlos_process_pri.h133 OsCpupBase *processCpup; /**< Process cpu usage */ member
/kernel/liteos_a/compat/posix/src/
Dtime.c518 if (spcb->processCpup == NULL) { in ProcessGetCputime()
522 runtime = spcb->processCpup->allTime; in ProcessGetCputime()