/kernel/liteos_a/shell/full/src/cmds/ |
H A D | hwi_shellcmd.c | 43 #define IRQ_CPUP_INFO_SIZE (sizeof(CPUP_INFO_S) * OS_HWI_MAX_NUM * LOSCFG_KERNEL_CORE_NUM) 48 STATIC VOID ShellCmdHwiInfoShow(OsIrqCpupCB *irqData, CPUP_INFO_S *hwiCpup1s, in ShellCmdHwiInfoShow() 49 CPUP_INFO_S *hwiCpup10s, CPUP_INFO_S *hwiCpupAll) in ShellCmdHwiInfoShow() 104 CPUP_INFO_S *hwiCpupAll = (CPUP_INFO_S *)irqCpup; in OsShellCmdHwi() 105 CPUP_INFO_S *hwiCpup10s = (CPUP_INFO_S *)(irqCpup + IRQ_CPUP_INFO_SIZE); in OsShellCmdHwi() 106 CPUP_INFO_S *hwiCpup1s = (CPUP_INFO_S *)(irqCpu in OsShellCmdHwi() [all...] |
/kernel/liteos_m/components/debugtools/ |
H A D | los_hwidump.c | 44 #define IRQ_CPUP_INFO_SIZE (sizeof(CPUP_INFO_S) * LOSCFG_PLATFORM_HWI_LIMIT)
49 STATIC VOID ShellCmdHwiInfoShow(OsIrqCpupCB *irqData, CPUP_INFO_S *hwiCpup1s,
in ShellCmdHwiInfoShow() 50 CPUP_INFO_S *hwiCpup10s)
in ShellCmdHwiInfoShow() 104 CPUP_INFO_S *hwiCpup10s = (CPUP_INFO_S *)(irqCpup);
in HwiInfoDump() 105 CPUP_INFO_S *hwiCpup1s = (CPUP_INFO_S *)(hwiCpup10s + IRQ_CPUP_INFO_SIZE);
in HwiInfoDump()
|
/kernel/liteos_a/kernel/extended/hidumper/ |
H A D | los_hidumper.c | 145 static void DoDumpCpuUsageUnsafe(CPUP_INFO_S *processCpupAll, in DoDumpCpuUsageUnsafe() 146 CPUP_INFO_S *processCpup10s, in DoDumpCpuUsageUnsafe() 147 CPUP_INFO_S *processCpup1s) in DoDumpCpuUsageUnsafe() 174 CPUP_INFO_S *processCpup = NULL; in DumpCpuUsageUnsafe() 175 CPUP_INFO_S *processCpupAll = NULL; in DumpCpuUsageUnsafe() 176 CPUP_INFO_S *processCpup10s = NULL; in DumpCpuUsageUnsafe() 177 CPUP_INFO_S *processCpup1s = NULL; in DumpCpuUsageUnsafe() 189 LOS_GetAllProcessCpuUsage(CPUP_ALL_TIME, processCpupAll, g_processMaxNum * sizeof(CPUP_INFO_S)); in DumpCpuUsageUnsafe() 190 LOS_GetAllProcessCpuUsage(CPUP_LAST_TEN_SECONDS, processCpup10s, g_processMaxNum * sizeof(CPUP_INFO_S)); in DumpCpuUsageUnsafe() 191 LOS_GetAllProcessCpuUsage(CPUP_LAST_ONE_SECONDS, processCpup1s, g_processMaxNum * sizeof(CPUP_INFO_S)); in DumpCpuUsageUnsafe() [all...] |
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/ |
H A D | It_extend_cpup.c | 41 CPUP_INFO_S g_testPstHwiCpupAll[OS_HWI_MAX_NUM]; 42 CPUP_INFO_S g_testPstHwiCpup10s[OS_HWI_MAX_NUM]; 43 CPUP_INFO_S g_testPstHwiCpup1s[OS_HWI_MAX_NUM]; 53 size = sizeof(CPUP_INFO_S) * LOS_GetSystemHwiMaximum(); in TestGetSingleHwiCpup()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/full/ |
H A D | It_extend_cpup_011.c | 46 CPUP_INFO_S *cpup = NULL; in Testcase() 50 cpupInfoLen = systemIrqNumber * sizeof(CPUP_INFO_S); in Testcase() 51 cpup = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, cpupInfoLen); in Testcase() 79 cpupInfoLen = systemProcessNumber * sizeof(CPUP_INFO_S); in Testcase() 80 cpup = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, cpupInfoLen); in Testcase()
|
/kernel/liteos_a/kernel/include/ |
H A D | los_cpup.h | 125 } CPUP_INFO_S; typedef 234 * (LOS_GetSystemProcessMaximum() * sizeof (CPUP_INFO_S)).</li> 241 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the CPUP information structure to be obtained. 246 * len less than LOS_GetSystemProcessMaximum() * sizeof (CPUP_INFO_S). 252 extern UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len); 267 * (LOS_GetSystemHwiMaximum() * sizeof (CPUP_INFO_S)).</li> 274 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the CPUP information structure to be obtained. 279 * len less than LOS_GetSystemHwiMaximum() * sizeof (CPUP_INFO_S). 285 extern UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len);
|
/kernel/liteos_m/kernel/src/ |
H A D | los_task.c | 259 STATIC UINT32 GetAllTskCpupInfo(CPUP_INFO_S **cpuLessOneSec,
in GetAllTskCpupInfo() 260 CPUP_INFO_S **cpuTenSec,
in GetAllTskCpupInfo() 261 CPUP_INFO_S **cpuOneSec)
in GetAllTskCpupInfo() 266 *cpuLessOneSec = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, sizeof(CPUP_INFO_S) * g_taskMaxNum);
in GetAllTskCpupInfo() 272 (VOID)memset_s((VOID *)(*cpuLessOneSec), sizeof(CPUP_INFO_S) * g_taskMaxNum,
in GetAllTskCpupInfo() 273 (INT32)0, sizeof(CPUP_INFO_S) * g_taskMaxNum);
in GetAllTskCpupInfo() 275 *cpuTenSec = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, sizeof(CPUP_INFO_S) * g_taskMaxNum);
in GetAllTskCpupInfo() 283 (VOID)memset_s((VOID *)(*cpuTenSec), sizeof(CPUP_INFO_S) * g_taskMaxNu in GetAllTskCpupInfo() [all...] |
/kernel/liteos_m/components/cpup/ |
H A D | los_cpup.h | 202 } CPUP_INFO_S;
typedef 337 * @param cpupInfo [OUT]Type. CPUP_INFO_S* Pointer to the task CPUP information structure to be obtained.
349 extern UINT32 LOS_AllTaskCpuUsage(CPUP_INFO_S *cpupInfo, UINT16 mode);
380 extern UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo);
|
H A D | los_cpup.c | 501 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_AllTaskCpuUsage(CPUP_INFO_S *cpupInfo, UINT16 mode)
in LOS_AllTaskCpuUsage() 709 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo)
in LOS_GetAllIrqCpuUsage()
|
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/smp/ |
H A D | It_smp_extend_cpup_011.c | 42 static CPUP_INFO_S g_psttaskcpup1st[LOSCFG_BASE_CORE_TSK_LIMIT]; 43 static UINT32 StatisticsTaskCpup(CPUP_INFO_S *taskCpup) in StatisticsTaskCpup()
|
/kernel/liteos_a/kernel/extended/cpup/ |
H A D | los_cpup.c | 430 STATIC UINT32 OsCpupUsageParamCheckAndReset(CPUP_INFO_S *cpupInfo, UINT32 len, UINT32 number) in OsCpupUsageParamCheckAndReset() 436 if ((cpupInfo == NULL) || (len < (sizeof(CPUP_INFO_S) * number))) { in OsCpupUsageParamCheckAndReset() 444 STATIC UINT32 GetAllProcessCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in GetAllProcessCpuUsageUnsafe() 473 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllProcessCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in LOS_GetAllProcessCpuUsage() 572 LITE_OS_SEC_TEXT_MINOR UINT32 OsGetAllIrqCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in OsGetAllIrqCpuUsageUnsafe() 599 LITE_OS_SEC_TEXT_MINOR UINT32 LOS_GetAllIrqCpuUsage(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len) in LOS_GetAllIrqCpuUsage()
|
H A D | los_cpup_pri.h | 78 extern UINT32 OsGetAllIrqCpuUsageUnsafe(UINT16 mode, CPUP_INFO_S *cpupInfo, UINT32 len);
|