首页> 外文会议>ICSE workshop on automation of software test 2010 >An Effective Method to Control Interrupt Handler for Data Race Detection
【24h】

An Effective Method to Control Interrupt Handler for Data Race Detection

机译:控制中断处理程序以进行数据竞争检测的有效方法

获取原文
获取原文并翻译 | 示例

摘要

Embedded software frequently uses interrupts for timer or I/O processing. If a memory area is used by both an interrupt handler and other routines at the same time, the embedded system has the potential to fail because of unexpected data in the memory. To detect the race conditions of memory, this paper proposes a method of interrupt testing on a CPU emulator. The method consists of two features: one is interrupt generation at the instruction points that possibly causes race conditions; the other is replacing input value from external device to control interrupt handlers. An interrupt is generated just after the program reads or writes data on memory for the purpose of covering all possibility of sharing memory between the interrupt handler and other routines. Sequence of input value from the external device is prepared by hand before program execution. We have applied our method to testing for a race condition of uClinux. The experience of detecting race conditions has shown the mechanism causes interrupts at necessary and sufficient timing compared with random interrupt testing. Also, it is easy to substitute values in memory to detect race conditions.
机译:嵌入式软件经常使用中断进行计时器或I / O处理。如果中断处理程序和其他例程同时使用一个内存区域,则嵌入式系统可能会由于内存中的意外数据而发生故障。为了检测内存的竞争状况,本文提出了一种在CPU仿真器上进行中断测试的方法。该方法包括两个特征:一个是在指令点处产生中断,这可能会导致争用情况。另一种是替换外部设备的输入值以控制中断处理程序。程序在内存中读取或写入数据后立即生成一个中断,以涵盖中断处理程序和其他例程之间共享内存的所有可能性。在执行程序之前,手动准备来自外部设备的输入值的顺序。我们已将我们的方法应用于测试uClinux的竞争条件。检测比赛条件的经验表明,与随机中断测试相比,该机制会在必要和足够的时间触发中断。同样,很容易替换内存中的值来检测竞争状况。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号