54#define LOS_ERRNO_CPUP_NO_MEMORY LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x00)
64#define LOS_ERRNO_CPUP_TASK_PTR_NULL LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x01)
74#define LOS_ERRNO_CPUP_NO_INIT LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x02)
84#define LOS_ERRNO_CPUP_MAXNUM_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x03)
94#define LOS_ERRNO_CPUP_THREAD_NO_CREATED LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x04)
104#define LOS_ERRNO_CPUP_TSK_ID_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x05)
125#define CPUP_LAST_TEN_SECONDS CPUP_LAST_MULIT_RECORD
126#define CPUP_LAST_ONE_SECONDS CPUP_LAST_ONE_RECORD
void LOS_CpupStart(void)
Start LiteOS CPUP module.
CpupMode
Definition los_cpup.h:119
UINT32 LOS_HistorySysCpuUsage(UINT32 mode)
Obtain the historical CPU usage.
void LOS_CpupReset(void)
Reset the data of CPU usage.
UINT32 LOS_AllCpuUsage(UINT16 maxNum, CPUP_INFO_S *cpupInfo, UINT32 mode, UINT16 flag)
Obtain the CPU usage of tasks and hardware interrupts.
void LOS_CpupStop(void)
Stop LiteOS CPUP module.
struct tagCpupInfo CPUP_INFO_S
UINT32 LOS_HistoryTaskCpuUsage(UINT32 taskId, UINT32 mode)
Obtain the historical CPU usage of a specified task.
@ CPUP_ALL_TIME
Definition los_cpup.h:122
@ CPUP_LAST_MULIT_RECORD
Definition los_cpup.h:120
@ CPUP_LAST_ONE_RECORD
Definition los_cpup.h:121
unsigned short UINT16
Definition los_typedef.h:51
#define VOID
Definition los_typedef.h:88
unsigned int UINT32
Definition los_typedef.h:52
Definition los_cpup.h:110
UINT16 usStatus
Definition los_cpup.h:111
UINT32 uwUsage
Definition los_cpup.h:112