Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
d3b61888
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 1 年 前同步成功
通知
454
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d3b61888
编写于
10月 14, 2021
作者:
O
openharmony_ci
提交者:
Gitee
10月 14, 2021
浏览文件
操作
浏览文件
下载
差异文件
!660 fix: 优化trace buffer初始化,删除swtmr 桩中的无效参数
Merge pull request !660 from LiteOS/master
上级
e8f5a286
b551270e
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
9 addition
and
14 deletion
+9
-14
kernel/extended/trace/cnv/trace_cnv.c
kernel/extended/trace/cnv/trace_cnv.c
+1
-1
kernel/extended/trace/los_trace.c
kernel/extended/trace/los_trace.c
+6
-5
kernel/extended/trace/los_trace_pri.h
kernel/extended/trace/los_trace_pri.h
+1
-1
kernel/extended/trace/trace_online.c
kernel/extended/trace/trace_online.c
+0
-6
kernel/include/los_trace.h
kernel/include/los_trace.h
+1
-1
未找到文件。
kernel/extended/trace/cnv/trace_cnv.c
浏览文件 @
d3b61888
...
...
@@ -211,7 +211,7 @@ STATIC VOID LOS_TraceSwtmrExpired(const SWTMR_CTRL_S *swtmr)
STATIC
VOID
LOS_TraceSwtmrStart
(
const
SWTMR_CTRL_S
*
swtmr
)
{
LOS_TRACE
(
SWTMR_START
,
swtmr
->
usTimerID
,
swtmr
->
ucMode
,
swtmr
->
uw
Count
,
swtmr
->
uwInterval
,
0
);
LOS_TRACE
(
SWTMR_START
,
swtmr
->
usTimerID
,
swtmr
->
ucMode
,
swtmr
->
uw
Interval
);
}
STATIC
VOID
LOS_TraceSwtmrStop
(
const
SWTMR_CTRL_S
*
swtmr
)
...
...
kernel/extended/trace/los_trace.c
浏览文件 @
d3b61888
...
...
@@ -265,10 +265,15 @@ STATIC UINT32 OsTraceInit(VOID)
}
#endif
#ifdef LOSCFG_RECORDER_MODE_OFFLINE
ret
=
OsTraceBufInit
(
LOSCFG_TRACE_BUFFER_SIZE
);
if
(
ret
!=
LOS_OK
)
{
goto
LOS_RELEASE
;
#ifdef LOSCFG_TRACE_CONTROL_AGENT
(
VOID
)
LOS_TaskDelete
(
g_traceTaskId
);
#endif
goto
LOS_ERREND
;
}
#endif
OsTraceHookInstall
();
OsTraceCnvInit
();
...
...
@@ -283,10 +288,6 @@ STATIC UINT32 OsTraceInit(VOID)
g_traceState
=
TRACE_STARTED
;
#endif
return
LOS_OK
;
LOS_RELEASE:
#ifdef LOSCFG_TRACE_CONTROL_AGENT
LOS_TaskDelete
(
g_traceTaskId
);
#endif
LOS_ERREND:
return
ret
;
}
...
...
kernel/extended/trace/los_trace_pri.h
浏览文件 @
d3b61888
...
...
@@ -120,7 +120,6 @@ typedef struct {
extern
UINT32
OsTraceGetMaskTid
(
UINT32
taskId
);
extern
VOID
OsTraceSetObj
(
ObjData
*
obj
,
const
LosTaskCB
*
tcb
);
extern
VOID
OsTraceWriteOrSendEvent
(
const
TraceEventFrame
*
frame
);
extern
UINT32
OsTraceBufInit
(
UINT32
size
);
extern
VOID
OsTraceObjAdd
(
UINT32
eventType
,
UINT32
taskId
);
extern
BOOL
OsTraceIsEnable
(
VOID
);
extern
OfflineHead
*
OsTraceRecordGet
(
VOID
);
...
...
@@ -143,6 +142,7 @@ extern VOID OsTraceSendNotify(UINT32 type, UINT32 value);
#define OsTraceReset()
#define OsTraceRecordDump(toClient)
#else
extern
UINT32
OsTraceBufInit
(
UINT32
size
);
extern
VOID
OsTraceReset
(
VOID
);
extern
VOID
OsTraceRecordDump
(
BOOL
toClient
);
#define OsTraceNotifyStart()
...
...
kernel/extended/trace/trace_online.c
浏览文件 @
d3b61888
...
...
@@ -37,12 +37,6 @@ UINT32 OsTraceGetMaskTid(UINT32 taskId)
return
taskId
;
}
UINT32
OsTraceBufInit
(
UINT32
size
)
{
(
VOID
)
size
;
return
LOS_OK
;
}
VOID
OsTraceSendHead
(
VOID
)
{
TraceBaseHeaderInfo
head
=
{
...
...
kernel/include/los_trace.h
浏览文件 @
d3b61888
...
...
@@ -347,7 +347,7 @@ extern TRACE_EVENT_HOOK g_traceEventHook;
#define TASK_RESUME_PARAMS(taskId, taskStatus, prio) taskId, taskStatus, prio
#define TASK_SIGNAL_PARAMS(taskId, signal, schedFlag) // taskId, signal, schedFlag
#define SWTMR_START_PARAMS(swtmrId, mode,
overrun, interval, expiry) swtmrId, mode, overrun, interval, expiry
#define SWTMR_START_PARAMS(swtmrId, mode,
interval) swtmrId, mode, interval
#define SWTMR_DELETE_PARAMS(swtmrId) swtmrId
#define SWTMR_EXPIRED_PARAMS(swtmrId) swtmrId
#define SWTMR_STOP_PARAMS(swtmrId) swtmrId
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录