58#define LOS_ERRNO_CPUP_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x00)
68#define LOS_ERRNO_CPUP_PTR_ERR LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x01)
78#define LOS_ERRNO_CPUP_NO_INIT LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x02)
88#define LOS_ERRNO_CPUP_NO_CREATED LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x03)
98#define LOS_ERRNO_CPUP_ID_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x04)
104#define LOS_CPUP_SINGLE_CORE_PRECISION 10000
110#define LOS_CPUP_PRECISION_MULT (LOS_CPUP_SINGLE_CORE_PRECISION / 100)
116#define LOS_CPUP_PRECISION (LOS_CPUP_SINGLE_CORE_PRECISION * LOSCFG_KERNEL_CORE_NUM)
254#ifdef LOSCFG_CPUP_INCLUDE_IRQ
UINT32 LOS_HistoryTaskCpuUsage(UINT32 tid, UINT16 mode)
Obtain the historical CPU usage of a specified task.
UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len)
Obtain the CPU usage of hwi.
UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len)
Obtain the CPU usage of processes.
UINT32 LOS_HistorySysCpuUsage(UINT16 mode)
Obtain the historical CPU usage.
UINT32 LOS_HistoryProcessCpuUsage(UINT32 pid, UINT16 mode)
Obtain the historical CPU usage of a specified process.
VOID LOS_CpupReset(VOID)
Reset the data of CPU usage.
struct tagCpupInfo CPUP_INFO_S