NQC2: 一种非侵入性的QEMU代码覆盖率插件
NQC2: A Non-Intrusive QEMU Code Coverage Plugin
AI总结:
NQC2是一种非侵入性的QEMU插件,通过运行时提取覆盖率信息并存储到主机文件中,无需目标软件仪器化,性能优于Xilinx方法。
摘要:
代码覆盖率分析已成为软件开发中的标准方法,有助于评估测试套件的有效性,识别未测试的代码段,以及发现性能瓶颈。当需要测量嵌入式系统的软件代码覆盖率时,传统方法很快达到极限。一种常用的方法是在源文件中插入额外的代码,以在运行时收集和导出覆盖率信息。这种插入的代码通常依赖于存在操作系统和文件系统来导出数据。这些功能对于在嵌入式系统上执行的裸金属程序来说不可用。为了克服这个问题,我们提出了NQC2,这是一种QEMU插件。NQC2在运行时从QEMU中提取覆盖率信息,并将其存储到主机机器上的文件中。这种方法甚至适用于修改过的QEMU版本,并且不需要目标软件的仪器化。NQC2在与Xilinx相当的方法相比,性能高出多达8.5倍。
英文摘要:
Code coverage analysis has become a standard approach in software development, facilitating the assessment of test suite effectiveness, the identification of under-tested code segments, and the discovery of performance bottlenecks. When code coverage of software for embedded systems needs to be measured, conventional approaches quickly meet their limits. A commonly used approach involves instrumenting the source files with added code that collects and dumps coverage information during runtime. This inserted code usually relies on the existence of an operating and a file system to dump the collected data. These features are not available for bare-metal programs that are executed on embedded systems. To overcome this issue, we present NQC2, a plugin for QEMU.NQC2 extracts coverage information from QEMU during runtime and stores them into a file on the host machine. This approach is even compatible with modified QEMU versions and does not require target-software instrumentation. NQC2 outperforms a comparable approach from Xilinx by up to 8.5 x.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。