文档介绍:嵌入式软件跟踪调试技术的研究与设计
摘要:针对在嵌入式实时操作系统环境下高低优先级任务切换过程引起的跟踪信息乱序和丢失问题,对跟踪信息嵌套缓存机制和解析机制进行了设计,提出了物理缓存管理机制与递归调用解析机制相结合、备份缓存管理机制与普通查询解析机制相结合的两种跟踪方案,解决了跟踪信息乱序和丢失问题,提高了跟踪系统的运行效率。
关键词:嵌入式实时操作系统;缓存管理;跟踪调试
Embedded software to track the research and design of thedebugging techniques
Abstract: The tracking information out of order for the switchingprocess of the high and low priority tasks in embedded real-timeoperating system environment and loss problems, has been designed for tracking information nested caching mechanism andresolution mechanism, the physical cache management mechanismand the recursive callresolution mechanism of bination of thebackup cache management mechanism and query resolution mechanism bination of two tracking programs to address thetracking information out of order and loss issues, and improve theoperating efficiency of the tracking system.
Keywords: Embedded real-time operating system; cache management; trace debug
引言:嵌入式系统是当今计算机软件领域的热点,实时性是嵌入式系统的基本要求。随着嵌入式技术的不断发展,在嵌入式应用的不断增长以及嵌入式系统复杂性不断提高的情况下,调试阶段在整个系统开发过程中所占的比重越来越大。调试环境和调试技术直接影响软件开发的效率和质量,高效的调试系统可以大大减少嵌入式系统开发的时间,减轻系统开发工作量。跟踪调试系统主要有JTAG在线调试和运行时跟踪调试两种方式。JTAG在线调试在调试实时系统时有很大的局限性[1],如通过断点查询完参数后系统无法再按照正常时序运行,以及无法检测到系统顺序化执行的变迁状态。运行时跟踪调试采用软件插桩技术,通过在程序中嵌入跟踪点,开发人员可以在程序运行过程中通过跟踪点实时观察输出的信息,如各模块之间进行交互的信息以及程序运行的顺序等。
所谓嵌入式技术, 通俗讲就是将计算机、自动控制、通信等多项技术综合, 与传统制造业相结合的技术嵌入式系统是以应用为中心, 以计算机技术为基础, 软件硬件可剪裁(可编程, 可重构)的专用计算