Aastha_Grover_Logging_Subsystem_ZDS_2023.pdf

编号:144811 PDF 24页 933.73KB 下载积分:VIP专享
下载报告请您先登录!

Aastha_Grover_Logging_Subsystem_ZDS_2023.pdf

1、Overview of Logging-Aastha Grover,Intel Corporation20232Agenda Overview Log APIs Architecture of Logging Subsystem Log Message and Memory Log Filtering Modes of Logging Multi Domain Logging Types of Logging formats:pros,cons Switch Formats at Runtime3 Logging outputs Human readable strings.printf li

2、ke results+more.String formatting cbprintf package Supports all format specifiers.Identify source of Logging Source module,severity level,time of generation(Timestamp)Timestamping Can log from any context Interrupt context Functionality to dump data LOG_HEXDUMP Log API for every Severity levels.Info

3、rmation,Debugging,Warning&Error Supports Multiple output channels.Example:UART Filesystem,Remote(Bluetooth,Net)Multiple backendsOverview4Source Code:Source Code:#include LOG_MODULE_REGISTER(MODULE,Level);LOG_INF(”String);KconfigKconfig:CONFIG_LOG=yHow to Log using Zephyr?Example:Example:Hello World

4、Application zephyr/samples/hello_worldTimestamp 5Logger APIsX=ERR,WRN,DBG,INFOX=ERR,WRN,DBG,INFOLOG_X :LOG_X :Standard printf-like messages.Eg:LOG_ERRLOG_INST_X LOG_INST_X:Associated with the particular instance.Eg:LOG_INST_INFOLOG_HEXDUMP_X:LOG_HEXDUMP_X:Dump hex data.LOG_INST_HEXDUMP_X:LOG_INST_HE

5、XDUMP_X:Dump hex data associated with a particular instance.LOG_PRINTK/LOG_RAW:LOG_PRINTK/LOG_RAW:Unconditionally print raw log message.LOG_MODULE_REGISTER:LOG_MODULE_REGISTER:Creates module-specific state and register the module with Logger.LOG_MODULE_DECLARE:LOG_MODULE_DECLARE:Declares a log modul

6、e(not register it).6FrontendFrontend Engaged by default when LOG API is called.Responsible for log filtering(Compile&Run-Time),buffer allocation,creating&committing the message.Optimized to log messages faster interrupt context.CoreCore Macros and functions needed for creating logging messages Enabl

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(Aastha_Grover_Logging_Subsystem_ZDS_2023.pdf)为本站 (2200) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠