WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_sched_debug_pri.h
浏览该文件的文档.
1/* ----------------------------------------------------------------------------
2 * Copyright (c) Huawei Technologies Co., Ltd. 2018-2022. All rights reserved.
3 * Description: Schedule statistics Private HeadFile
4 * Author: Huawei LiteOS Team
5 * Create: 2018-11-16
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 * 1. Redistributions of source code must retain the above copyright notice, this list of
9 * conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, this list
11 * of conditions and the following disclaimer in the documentation and/or other materials
12 * provided with the distribution.
13 * 3. Neither the name of the copyright holder nor the names of its contributors may be used
14 * to endorse or promote products derived from this software without specific prior written
15 * permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
20 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 * --------------------------------------------------------------------------- */
28
29#ifndef _LOS_SCHED_DEBUG_PRI_H
30#define _LOS_SCHED_DEBUG_PRI_H
31
32#ifdef __cplusplus
33extern "C" {
34#endif /* __cplusplus */
35
36typedef struct {
39#ifdef LOSCFG_KERNEL_SMP
40 UINT32 migrationIn;
41#endif
43
44typedef struct {
48#ifdef LOSCFG_KERNEL_SMP
49 UINT32 allMigration;
50#endif
52} SchedStat;
53
54typedef struct {
56 DOUBLE idleTaskTimePercent; /* Percentage of running duration of idle task */
60 DOUBLE hiTaskTimePercent; /* Percentage of running duration of high-priority tasks */
63#ifdef LOSCFG_KERNEL_SMP
64 UINT32 smpHwiNum;
65 UINT32 smpMigrationNum;
66#endif
68
69typedef struct {
73#ifdef LOSCFG_KERNEL_SMP
74 UINT32 cpuSmpMigrationNum;
75#endif
77
78typedef struct {
83#ifdef LOSCFG_KERNEL_SMP
84 UINT32 allSmpMigrationNum;
85#endif
89
90extern VOID OsSchedStatHwi(size_t intNum);
91
92/* This API is used for Scheduling statistics output */
95
96/* This API is used for temporary pause and resume task sched statistics */
99
100/* This API is used for shell command execution function */
104
105#ifdef __cplusplus
106}
107#endif /* __cplusplus */
108
109#endif /* _LOS_SCHED_DEBUG_PRI_H */
#define LOSCFG_KERNEL_CORE_NUM
Definition los_config.h:258
UINT32 OsSchedStatCpuInfoGet(SchedStatCpuInfo *info, UINT32 cpuId)
VOID OsSchedStatResume(VOID)
VOID OsSchedStatStop(VOID)
VOID OsSchedStatPause(VOID)
VOID OsSchedStatInfo(VOID)
VOID OsSchedStatHwi(size_t intNum)
VOID OsSchedStatStart(VOID)
UINT32 OsSchedStatTaskInfoGet(SchedStatTaskInfo *info, UINT32 taskId)
unsigned long long UINT64
Definition los_typedef.h:72
#define VOID
Definition los_typedef.h:88
unsigned int UINT32
Definition los_typedef.h:52
double DOUBLE
Definition los_typedef.h:57
char CHAR
Definition los_typedef.h:58
Definition los_sched_debug_pri.h:36
UINT32 contextSwitch
Definition los_sched_debug_pri.h:38
UINT64 runtime
Definition los_sched_debug_pri.h:37
Definition los_sched_debug_pri.h:54
DOUBLE passTime
Definition los_sched_debug_pri.h:55
DOUBLE hiTaskAvgRunTime
Definition los_sched_debug_pri.h:62
UINT32 hiTaskSwiNum
Definition los_sched_debug_pri.h:61
DOUBLE hiTaskTimePercent
Definition los_sched_debug_pri.h:60
UINT32 taskSwiNum
Definition los_sched_debug_pri.h:57
DOUBLE noIdleTaskSwiAvgPri
Definition los_sched_debug_pri.h:59
DOUBLE idleTaskTimePercent
Definition los_sched_debug_pri.h:56
UINT32 hwiNum
Definition los_sched_debug_pri.h:58
Definition los_sched_debug_pri.h:69
DOUBLE cpuRunTime
Definition los_sched_debug_pri.h:71
UINT32 cpuId
Definition los_sched_debug_pri.h:70
UINT32 cpuTaskSwiNum
Definition los_sched_debug_pri.h:72
Definition los_sched_debug_pri.h:78
UINT32 taskUseCpuNum
Definition los_sched_debug_pri.h:86
DOUBLE passTime
Definition los_sched_debug_pri.h:80
CHAR * taskName
Definition los_sched_debug_pri.h:79
DOUBLE allRuntime
Definition los_sched_debug_pri.h:81
UINT32 allTaskSwiNum
Definition los_sched_debug_pri.h:82
Definition los_sched_debug_pri.h:44
UINT32 allContextSwitch
Definition los_sched_debug_pri.h:47
UINT64 allRuntime
Definition los_sched_debug_pri.h:46
UINT64 startRuntime
Definition los_sched_debug_pri.h:45