更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
TraceEventFrame结构体 参考

#include <los_trace.h>

结构体

struct  CoreStatus
 

成员变量

UINT32 eventType
 
UINT32 curTask
 
UINT32 curPid
 
UINT64 curTime
 
UINTPTR identity
 
struct TraceEventFrame::CoreStatus core
 
UINT32 eventCount
 
UINTPTR linkReg [LOS_TRACE_LR_RECORD]
 
UINTPTR params [LOSCFG_TRACE_FRAME_MAX_PARAMS]
 

详细描述

struct to store the event infomation | 保存跟踪事件的信息 ,Trace模块会对输入信息进行封装, 添加Trace帧头信息,包含事件类型、运行的cpuid、运行的任务id、运行的相对时间戳等信息

在文件 los_trace.h255 行定义.

结构体成员变量说明

◆ core

struct TraceEventFrame::CoreStatus TraceEventFrame::core

◆ curPid

UINT32 TraceEventFrame::curPid

current running processID | 当前进程ID

在文件 los_trace.h258 行定义.

◆ curTask

UINT32 TraceEventFrame::curTask

current running task | 当前任务ID

在文件 los_trace.h257 行定义.

◆ curTime

UINT64 TraceEventFrame::curTime

current timestamp | 时间戳

在文件 los_trace.h259 行定义.

◆ eventCount

UINT32 TraceEventFrame::eventCount

the sequence of happend events | 事件发生的顺序

在文件 los_trace.h272 行定义.

◆ eventType

UINT32 TraceEventFrame::eventType

event type | 事件类型

在文件 los_trace.h256 行定义.

◆ identity

UINTPTR TraceEventFrame::identity

subject of the event description | 描述事件

在文件 los_trace.h260 行定义.

◆ linkReg

UINTPTR TraceEventFrame::linkReg[LOS_TRACE_LR_RECORD]

在文件 los_trace.h276 行定义.

◆ params

UINTPTR TraceEventFrame::params[LOSCFG_TRACE_FRAME_MAX_PARAMS]

event frame's params

在文件 los_trace.h280 行定义.


该结构体的文档由以下文件生成: