嵌入式相关抓包软件
1. DLT(Diagnostic Log and Trace)嵌入式系统程序运行记录
DLT的使用有属于Application范畴与Context范畴。在使用DLT时,需要包含以下头文件:
#include <dlt/dlt.h>
同时需要link相应的dlt库文件。
Context范畴需要使用以下statement去申明及注册:
DLT_DECLARE_CONTEXT(BCcontext); // declare the context name.
DLT_REGISTER_CONTEXT(BCcontext,“BCCT”,“DLT BC Context”); // register the Context id.
DLT_IMPORT_CONTEXT(BCcontext); // import DLT Context in other source file.
DLT_UNREGISTER_CONTEXT(BCcontext); // DLT Context un-registration
DLT log 有以下几种格式
DLT_LOG(BCcontext,DLT_LOG_INFO,DLT_STRING(“output normal information directly.”));
DLT_LOG(BCcontext,DLT_LOG_WARN,DLT_STRING(“output warning information directly.”));
DLT_LOG(BCcontext,DLT_LOG_ERROR,DLT_STRING(“output error information directly.”));
DLT_LOG(BCcontext,DLT_LOG_INFO,D