
第38卷第4期 2015年12月
上海船舶运输科学研究所学报
JOURNAL OF SHANGHAI SHIP AND SHIPPING RESEARCHINSTITUTE
文章编号:1674-5949(2015)04-038-06
一种基于探针的软件事件监控设计
郁立虎,何懿
(上海船舶运输科学研究所航运技术与安全国家重点实验宝,上海200135)
Vol. 38 No. 4 Dec.2015
摘要:针对当前船舶电力系统控制软件的规模更加庞大、体系结构更加复杂、细粒度对软件进行监控更为围难的特点,主要介绍基于探针定位和程序运行的散点、树型软件事件监测模型的构建方法,获取监测事件的执行情况在程序插桩、数据挖据等技术的基础上,开发特定的计算机分析程序,最大限度地为软件开发者和使用者提供准确、丰富的数据支持。实例研究探针事件链监测模型在军用船舶电力监控系统中的应用,表明其在故障排查上大大缩短了排查时间。
关键词:探针;程序插桩;事件监测模型;故障分析
中图分类号:TP311.52
文献标志码:A
AnEventMonitoringDesignwithCodeInstrumentation
Yu Lihu,HeXie
(State Key Laboratory of Navigation and Safety Technology, Shanghai Ship &. Shipping Research
InstituteShanghai200135,China)
Abstract; The code instrumentation technology is introduced in the ship power monitoring system software, which needs moni-toring of its own operation because its getting bigger in scale and more complex in structure. The event monitoring model for software with tree structure is built and principles of setting probes and break points are proposed. The event analysis program is developed with data mining technology for software engineers to d troubleshooting. The design has been used in marine ship power monitoring systems, which noticeably reduced the time for fault identification.
Key words: probe; code instrumentation; event monitoring model fault analysis 0引言
船舶电力控制系统正朝着控制规模大、复杂程度高的方向发展,同时,很多控制软件都要求具有极高的可靠性和安全性,以免造成重大生命和财产损失,
软件调试时需要编程人员进行大量的人机交互工作。其中故障定位是调试过程中最为耗时和费力的活动之一,通过审查源程序的语义和结构,结合分析程序的执行过程和结果,辅助开发人员找到软件故障原因。大型软件的设计、开发和测试阶段会按照流程投人大量精力,但仍不能保证复杂系统代码执行对所有可能的输人、输出而言都是正确的,因此发展出了一系列以发现软件可靠性方面缺陷为目的的可靠性测试技术。目前,基于测试的软件故障定位技术可分为基于执行覆盖的故障定位(Coverage-BasedFaultLocalization)、基于依赖关系的故障定位(Dependency-Based Fault Localization)和基于模型的故障定位(Model-Based Fault Localization)等。
软件产品在规定的条件下能在规定的时间内完成规定功能的能力即为软件的可靠性。目前比较流行收稿日期:2015-10-13
作者简介:郁立虎(1986一),男,山东济宁人,工程师,主要从事船舶电站监控系统相关技术研究。万方数据