WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_cpup.h 文件参考
#include "los_hwi.h"
#include "los_base.h"
#include "los_sys.h"
#include "los_task.h"
los_cpup.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  tagCpupInfo
 

宏定义

#define LOS_ERRNO_CPUP_NO_MEMORY   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x00)
 
#define LOS_ERRNO_CPUP_TASK_PTR_NULL   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x01)
 
#define LOS_ERRNO_CPUP_NO_INIT   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x02)
 
#define LOS_ERRNO_CPUP_MAXNUM_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x03)
 
#define LOS_ERRNO_CPUP_THREAD_NO_CREATED   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x04)
 
#define LOS_ERRNO_CPUP_TSK_ID_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_CPUP, 0x05)
 
#define CPUP_LAST_TEN_SECONDS   CPUP_LAST_MULIT_RECORD
 
#define CPUP_LAST_ONE_SECONDS   CPUP_LAST_ONE_RECORD
 

类型定义

typedef struct tagCpupInfo CPUP_INFO_S
 

枚举

enum  CpupMode { CPUP_LAST_MULIT_RECORD = 0 , CPUP_LAST_ONE_RECORD = 1 , CPUP_ALL_TIME = 0xffff }
 

函数

UINT32 LOS_HistorySysCpuUsage (UINT32 mode)
 Obtain the historical CPU usage.
 
UINT32 LOS_HistoryTaskCpuUsage (UINT32 taskId, UINT32 mode)
 Obtain the historical CPU usage of a specified task.
 
UINT32 LOS_AllCpuUsage (UINT16 maxNum, CPUP_INFO_S *cpupInfo, UINT32 mode, UINT16 flag)
 Obtain the CPU usage of tasks and hardware interrupts.
 
void LOS_CpupReset (void)
 Reset the data of CPU usage.
 
void LOS_CpupStop (void)
 Stop LiteOS CPUP module.
 
void LOS_CpupStart (void)
 Start LiteOS CPUP module.
 

宏定义说明

◆ CPUP_LAST_ONE_SECONDS

#define CPUP_LAST_ONE_SECONDS   CPUP_LAST_ONE_RECORD

old API, 1s default

◆ CPUP_LAST_TEN_SECONDS

#define CPUP_LAST_TEN_SECONDS   CPUP_LAST_MULIT_RECORD

old API, 10s default