期刊文献+

面向无线传感器网络应用的自适应调试方法 被引量:8

An Adaptive Debugging Approach for Wireless Sensor Network Applications
下载PDF
导出
摘要 传感网技术是物联网得以实现的重要基础.然而,受到资源有限以及程序行为不确定等因素的影响,无线传感器网络上编程和调试的难度尤甚于普通的分布式程序.文中提出了一种面向无线传感器网络程序的源码级错误诊断方法.该方法采用基于全局量计数器的方法进行程序追踪,然后根据追踪日志重放错误执行轨迹,支持属性违反错误的分析和调试.同时,通过依赖分析确定与属性相关的程序片段,并根据系统资源约束以及用户反馈,自适应调整追踪这些程序片段的代码,以满足系统资源的限制,支持错误定位.文中以Open64编译器为基础,实现了一个针对TinyOS操作系统中nesC程序错误诊断的原型系统.实验数据表明,此方法能够有效地控制确定性重放技术的时空开销,有力地支持了无线传感器网络程序中属性违反类型错误的诊断. Wireless Sensor Networks(WSN) are gaining more attentions with the progress of Internet of Things(IoT).However,due to the constrained resources and non-deterministic behaviors,programming and debugging WSN applications still face challenges.In this paper,we propose an adaptive source-level debugging approach for WSN applications.This approach,based on dependency analysis and instrumentation,retrieves execution traces and feeds them back to the replay system which adopts a global counter method.The scope and granularity of tracing and replay can be adjusted automatically according to the resource constrains and user knowledge.Moreover,a prototype debugging system for nesC applications is implemented on top of Open64 compiler.Experimental results show that this approach not only mitigates memory consumption of deterministic replay,but also improves the efficiency of error diagnosis for WSN applications.
出处 《计算机学报》 EI CSCD 北大核心 2011年第7期1195-1213,共19页 Chinese Journal of Computers
基金 国家"九七三"重点基础研究发展规划项目基金(2011CB302504) 国家核高基重大专项项目(2009ZX01036-001-002) 国家自然科学基金创新研究群体科学基金(60921002)资助~~
关键词 物联网 无线传感器网络 依赖分析 确定性重放 调试 Internet of Things wireless sensor network dependency analysis deterministic replay debugging
  • 相关文献

参考文献20

  • 1Kennedy K, Allen J R. Optimizing Compilers for Modern Architectures: A Dependence-Based Approach. San Francisco, CA, USA: Morgan Kaufmann Publishers Inc, 2001.
  • 2Weiser M. Program slicing//Proceedings of the 5th International Conference on Software Engineering (ICSE' 81). San Diego, California, USA, 1981:439-449.
  • 3Hotwitz S, Reps T, Binkley D. Interprocedural slicing using dependence graphs//Proceedings of the ACM SIGPLAN 1988 Conference on Programming Language Design and Implementation (PLDI' 88). Atalanta, Georgia, 1988 : 35-46.
  • 4Altekar G, Stoica I. ODR: Output-deterministic replay for multicore debugging//Proceedings of the ACM SIGOPS 22nd Sympgiium ou Operatiug Systems Principles (SOSP' 09 ). Bigsky, Montana, USA, 2009:193-206.
  • 5Bhansali S, Claen W-K, Jong S D et al. Framework for in struetion-level tracing and analysis of program executions// Proceedings of the 2nd International Conference on Virtual Exeeution Environments ( VEE: 06 ). Ottawa, Ontario, Canada, 2006:154-163.
  • 6Patil H, Pereira C, Stalleup Met al. PinPlay: A framework for deterministic replay and reproducible analysis o( parallel programs//Proeeedings of the 8th Annual IEEE/ACM International Symposium on Code Generation and Optimization (CGO'10). Toronto, Ontario, Canada, 2010, 2-11.
  • 7Yu H, Xue J, Huo W et al. Level by level: Making flow-and context-sensitive pointer analysis scalable for millions of lines of code//Proeeedings of the 8th Annual IEEE/ACM International Symposium on Code Generation and Optimization (CGO'10). Toronto, Ontario, Canada, 2010:218-229.
  • 8谷晓铭,霍玮,桂剑,贾耀仓.一种检测运行栈与静态数据区重叠的新方法[J].计算机工程与应用,2006,42(20):86-88. 被引量:2
  • 9Girod L, Ramanathan N, Elson Jet al. Emstar: A software environment for developing and deploying heterogeneous sensor-actuator networks. ACM Transactions on Sensor Networks (TOSN), 2007, 3(3).
  • 10Levis P, Lee N, Welsh Met al. TOSSIM: Accurate and scalable simulation of entire TinyOS applications//Proeeedings of the 1st International Conference on Embedded Networked Sensor Systems. Los Angeles, California, 21)03:126-137.

二级参考文献5

  • 1Tool Interface Standard (TIS) Executable and Linking Format (ELF)Specification[S].version 1.2,TIS Committee,1995
  • 2Alfred V Aho,Ravi Sethi,Jeffrey D Ullman.Compilers:Principles,Techniques,and Tools[M].Addison Wesley,1986
  • 3Steven S Muchnick,Morgan Kaufmann.Advanced Compiler Design Implementation.1997
  • 4Documentation for binutils 2.16.2005
  • 5Randal E Bryant,David R O 'Hallaron.Computer Systems A programmer's Perspective[M].Prentice Hall,2002

共引文献1

同被引文献89

引证文献8

二级引证文献59

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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