期刊文献+

中断驱动的嵌入式系统数据竞争检测工具 被引量:5

Data Race Detection Tool for Interrupt-Driven Embedded System
下载PDF
导出
摘要 中断驱动的嵌入式系统广泛应用于对安全和稳定性要求极高的领域,但因系统设计复杂,运行环境多样等原因,中断不确定性导致的严重故障时有发生,数据竞争是较为棘手的问题之一。已有工作对中断导致的数据竞争检测做了许多尝试,但目前还没有比较易用的解决方案。为了解决这类问题,提出了一种基于控制流图的静态检测方法。该方法通过对源程序进行预处理分析,检测出程序中使用的共享资源和中断使能操作;根据预处理的结果,构建出源程序对应的简要控制流图;通过对简要控制流图的抢占关系分析,得到可能会导致竞争关系的执行序列。实验结果表明,该方法能有效检测出程序中潜在的竞争关系,并指明该潜在竞争的发生路径,帮助软件测试人员对故障进行确认和修复。 Interrupt-driven embedded systems are widely used in very high reliable and stable fields. However, due to the design complexity and the running environment diversity, uncertain interrupt faults often happen, which cause serious consequence. Data race is one of these complex problems. Lots of work has been done to detect such races, but there is still no easy solution. To solve such problems, this paper introduces a static detection method based on control flow graph. Firstly this method detects the shared resources and interrupts in the source code by preprocessing, and then constructs the corresponding simple control flow graphs according to the preprocessing result. Secondly the method points out the potential data races and their execution paths by analyzing the preemption relationship on these control flow graphs. The experimental results show that this method can not only detect the data race problems in the code, but also trace and show their execution paths, which is quite helpful for the bug verification and fix.
出处 《计算机科学与探索》 CSCD 北大核心 2015年第8期914-925,共12页 Journal of Frontiers of Computer Science and Technology
基金 国家自然科学基金Nos.61321491 61472179 国家重点基础研究发展计划(973计划)No.2014CB340703~~
关键词 中断 竞争 嵌入式系统 中断驱动 测试 interrupt race embedded system interrupt-driven testing
  • 相关文献

参考文献15

  • 1Tchamgoue G M, Kim K H, Jun Y K. Dynamic race detec- tion techniques for interrupt-driven programs[M]//Future Generation Information Technology. Berlin, Heidelberg: Springer, 2012: 148-153.
  • 2Sen K. Race directed random testing of concurrent pro- grams[C]//Proceedings of the 2008 SIGPLAN Conference on Programming Language Design and Implementation, Tucson, USA, Jun 7-13, 2008. New York, NY, USA: ACM, 2008: 11-21.
  • 3Vahid F, Givargis T. Embedded system design: a unified hardware/software introduction[M]. New York, NY, USA: John Wiley & Sons, 2002.
  • 4Regehr J. Random testing of interrupt-driven software[C]// Proceedings of the 5th ACM International Conference on Embedded Sol, ware, Jersey City, USA, Sep 19-22, 2005. New York, NY, USA: ACM, 2005: 290-298.
  • 5Leveson N G, Turner C S. An investigation of the Therac-25 accidents[J]. Computer, 1993, 26(7): 18-41.
  • 6Yu Tingting, Srisa-an W, Rothermel G. SimTester: a control- lable and observable testing framework for embedded sys- tems[C]//Proceedings of the 8th ACM SIGPLAN/SIGOPS Conference on Virtual Execution Environments, London, UK, Mar 3-4, 2012. New York, NY, USA: ACM, 2012: 51-62.
  • 7Higashi M, Yamamoto T, Hayase Y, et al. An effective method to control interrupt handler for data race detection[C]//Pro- ceedings of the 5th Workshop on Automation of Software Test, Cape Town, South Africa, May 2-8 2010. New York, NY, USA: ACM, 2010: 79-86.
  • 8Regehr J, Cooprider N. Interrupt verification via thread veri- fication[J]. Electronic Notes in Theoretical Computer Sci- ence, 2007, 174(9): 139-150.
  • 9Chen Rui, Guo Xiangying, Duan Yonghao, et al. Static data race detection for interrupt-driven embedded software[C]// Proceedings of the 5th International Conference on Secure Software Integration & Reliability Improvement Companion, Jeju Island, Korea, 2011. Piscataway, NJ, USA: IEEE, 2011: 47-52.
  • 10Huo Wei, Yu Hongtao, Feng Xiaobing, et al. Static detec- tion of data race in interrupt-driven program[J]. Computer Research and Development, 2012, 48(12): 2290-2299.

同被引文献14

引证文献5

二级引证文献23

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部