Home
last modified time | relevance | path

Searched refs:cpup (Results 1 – 25 of 36) sorted by relevance

12

/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/full/
DIt_extend_cpup_011.c46 CPUP_INFO_S *cpup = NULL; in Testcase() local
51 cpup = (CPUP_INFO_S *)LOS_MemAlloc((VOID *)OS_SYS_MEM_ADDR, cpupInfoLen); in Testcase()
52 if (cpup == NULL) { in Testcase()
57 ret = LOS_GetAllIrqCpuUsage(CPUP_LAST_ONE_SECONDS, cpup, cpupInfoLen); in Testcase()
60 ICUNIT_ASSERT_SINGLE_CPUP_USAGE(cpup[loop].usage, EXIT1); in Testcase()
63 ret = LOS_GetAllIrqCpuUsage(CPUP_LAST_TEN_SECONDS, cpup, cpupInfoLen); in Testcase()
66 ICUNIT_ASSERT_SINGLE_CPUP_USAGE(cpup[loop].usage, EXIT1); in Testcase()
69 ret = LOS_GetAllIrqCpuUsage(CPUP_ALL_TIME, cpup, cpupInfoLen); in Testcase()
72 ICUNIT_ASSERT_SINGLE_CPUP_USAGE(cpup[loop].usage, EXIT1); in Testcase()
75 LOS_MemFree((VOID *)OS_SYS_MEM_ADDR, cpup); in Testcase()
[all …]
/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_64.c91 OS_SEC_L2_TEXT U32 OsCpupTask(U32 intNum, struct CpupThread *cpup) in OsCpupTask() argument
95 cpup[maxNum].id = OS_CPUP_INT_ID; in OsCpupTask()
96 cpup[maxNum].usage = OsCpupIntGet(); in OsCpupTask()
109 cpup[maxNum].id = g_tskCbArray[index].taskPid; in OsCpupTask()
110 cpup[maxNum].usage = g_cpup[index].usage; in OsCpupTask()
117 OS_SEC_ALW_INLINE INLINE U32 OsCpupParaCheck(U32 intNum, struct CpupThread *cpup, const U32 *outNum) in OsCpupParaCheck() argument
119 if (cpup == NULL || outNum == NULL) { in OsCpupParaCheck()
205 U32 cpup = 0; in OsCpupThreadNow() local
216 cpup = (U32)(CPUP_USE_RATE - g_cpup[TSK_GET_INDEX(IDLE_TASK_ID)].usage); in OsCpupThreadNow()
219 return cpup; in OsCpupThreadNow()
[all …]
Dprt_cpup_warn.c33 U32 cpup; in OsCpupWarn() local
36 cpup = OsCpupGet(); in OsCpupWarn()
37 if (cpup > g_cpupWarnInfo.warn) { /* 当超过阀值时,发出告警信息。 */ in OsCpupWarn()
44 } else if (cpup < g_cpupWarnInfo.resume) { in OsCpupWarn()
DKconfig2 bool "Whether support cpup or not"
15 bool "Whether support cpup warn or not"
/kernel/liteos_a/kernel/extended/cpup/
Dlos_cpup.c105 g_irqCpup[loop].cpup.historyTime[prevPos] = g_irqCpup[loop].cpup.allTime; in OsCpupGuard()
188 STATIC VOID OsResetCpup(OsCpupBase *cpup, UINT64 cycle) in OsResetCpup() argument
192 cpup->startTime = cycle; in OsResetCpup()
193 cpup->allTime = cycle; in OsResetCpup()
195 cpup->historyTime[loop] = cycle; in OsResetCpup()
232 OsResetCpup(&g_irqCpup[index].cpup, cycle); in LOS_CpupReset()
313 STATIC INLINE UINT32 OsCalculateCpupUsage(const OsCpupBase *cpup, UINT16 pos, UINT16 prePos, UINT64… in OsCalculateCpupUsage() argument
316 UINT64 cpuCycle = cpup->historyTime[pos] - cpup->historyTime[prePos]; in OsCalculateCpupUsage()
344 UINT32 cpup; in LOS_HistorySysCpuUsage() local
349 cpup = OsHistorySysCpuUsageUnsafe(mode); in LOS_HistorySysCpuUsage()
[all …]
Dlos_cpup_pri.h65 OsCpupBase cpup; /**< irq cpup base */ member
/kernel/uniproton/doc/design/
Darchitecture_design.md9 - OM:实现cpup、hook等调测功能。
34 | | om | cpup | cpu占用率统计功能 |
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_init.c8950 struct lpfc_vector_map_info *cpup; in lpfc_sli4_queue_create() local
9042 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
9043 if (!(cpup->flag & LPFC_CPU_FIRST_IRQ)) in lpfc_sli4_queue_create()
9047 qp = &phba->sli4_hba.hdwq[cpup->hdwq]; in lpfc_sli4_queue_create()
9056 cpup->hdwq); in lpfc_sli4_queue_create()
9060 qdesc->hdwq = cpup->hdwq; in lpfc_sli4_queue_create()
9075 cpup = &phba->sli4_hba.cpu_map[cpu]; in lpfc_sli4_queue_create()
9078 if (cpup->flag & LPFC_CPU_FIRST_IRQ) in lpfc_sli4_queue_create()
9082 qp = &phba->sli4_hba.hdwq[cpup->hdwq]; in lpfc_sli4_queue_create()
9087 eqcpu = lpfc_find_cpu_handle(phba, cpup->eq, LPFC_FIND_BY_EQ); in lpfc_sli4_queue_create()
[all …]
Dlpfc_attr.c5253 struct lpfc_vector_map_info *cpup; in lpfc_fcp_cpu_map_show() local
5278 cpup = &phba->sli4_hba.cpu_map[phba->sli4_hba.curr_disp_cpu]; in lpfc_fcp_cpu_map_show()
5284 else if (cpup->eq == LPFC_VECTOR_MAP_EMPTY) { in lpfc_fcp_cpu_map_show()
5285 if (cpup->hdwq == LPFC_VECTOR_MAP_EMPTY) in lpfc_fcp_cpu_map_show()
5291 cpup->phys_id, cpup->core_id, in lpfc_fcp_cpu_map_show()
5292 (cpup->flag & LPFC_CPU_MAP_HYPER), in lpfc_fcp_cpu_map_show()
5293 (cpup->flag & LPFC_CPU_MAP_UNASSIGN)); in lpfc_fcp_cpu_map_show()
5300 cpup->hdwq, cpup->phys_id, in lpfc_fcp_cpu_map_show()
5301 cpup->core_id, in lpfc_fcp_cpu_map_show()
5302 (cpup->flag & LPFC_CPU_MAP_HYPER), in lpfc_fcp_cpu_map_show()
[all …]
/kernel/uniproton/
Duniproton.gni201 "$OSTOPDIR/om/cpup/prt_cpup.c",
202 "$OSTOPDIR/om/cpup/prt_cpup_minor.c",
203 "$OSTOPDIR/om/cpup/prt_cpup_thread.c",
204 "$OSTOPDIR/om/cpup/prt_cpup_thread_64.c",
205 "$OSTOPDIR/om/cpup/prt_cpup_thread_init.c",
206 "$OSTOPDIR/om/cpup/prt_cpup_warn.c",
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dprocess.c78 struct percpu_struct *cpup; in common_shutdown_1() local
85 cpup = (struct percpu_struct *) in common_shutdown_1()
88 pflags = &cpup->flags; in common_shutdown_1()
/kernel/uniproton/src/om/
DCMakeLists.txt2 add_subdirectory(cpup)
DKconfig3 source "om/cpup/Kconfig"
/kernel/liteos_a/kernel/extended/
DKconfig6 cppsupport, cpup, and dynload. You can select one or some
21 If you wish to build LiteOS with support for cpup.
28 If you wish to include irq usage for cpup.
DBUILD.gn37 "cpup",
57 "cpup:public",
/kernel/linux/linux-5.10/include/linux/
Dtimer.h185 extern void timer_quiesce_cpu(void *cpup);
187 static inline void timer_quiesce_cpu(void *cpup) { } in timer_quiesce_cpu() argument
Dhrtimer.h374 extern void hrtimer_quiesce_cpu(void *cpup);
376 static inline void hrtimer_quiesce_cpu(void *cpup) { } in hrtimer_quiesce_cpu() argument
/kernel/liteos_m/components/
DBUILD.gn36 "cpup",
56 "cpup:public",
/kernel/liteos_a/testsuites/kernel/sample/kernel_extend/cpup/
DMakefile8 -I $(LITEOSTESTTOPDIR)/kernel/sample/kernel_extend/cpup \
/kernel/uniproton/src/include/uapi/
Dprt_cpup.h219 extern U32 PRT_CpupThread(U32 inNum, struct CpupThread *cpup, U32 *outNum);
/kernel/liteos_m/
Darch_spec_zh.md43 │ ├── cpup --- CPUP功能
Darch_spec.md43 │ ├── cpup --- CPU percent (CPUP)
DREADME_zh.md43 │ ├── cpup # CPUP功能
/kernel/liteos_a/tools/build/mk/
Dlos_config.mk135 LIB_SUBDIRS += kernel/extended/cpup
136 LITEOS_CPUP_INCLUDE := -I $(LITEOSTOPDIR)/kernel/extended/cpup
/kernel/liteos_a/testsuites/kernel/
DBUILD.gn82 deps += [ "sample/kernel_extend/cpup:test_cpup" ]

12