简体   繁体   English

Linux驱动程序的代码覆盖工具

[英]Code coverage tool for linux drivers

I am looking for code coverage tool which can give functional and conditional coverage for linux drivers. 我正在寻找代码覆盖率工具,它可以为Linux驱动程序提供功能和条件覆盖。

The tool should generate html output. 该工具应生成html输出。 I was using bullseye till now for C++ apps. 到目前为止,我正在使用靶心来处理C ++应用程序。 But i am not able to find anything for linux kernel modules. 但我无法找到任何Linux内核模块。

Using our source-code instrumentation technology for test coverage and profiling , we profiled the Linux kernel some ten years back using our C profiler tool. 使用我们的源代码检测技术进行测试覆盖和分析 ,我们使用我们的C profiler工具在十年前对Linux内核进行了分析 A corresponding C Test Coverage exists. 存在相应的C测试覆盖率

Such instrumentation gives you very low overhead instrumentation, suitable for drivers, rather complete control of what is instrumented (OK, do the drivers instead of the kernel) and control of how and when to collect the test coverage data (collect in a kernel buffer and access through a dummy driver). 这样的检测为您提供了非常低的开销检测,适用于驱动程序,而是完全控制检测的内容(确定,执行驱动程序而不是内核)以及控制如何以及何时收集测试覆盖率数据(在内核缓冲区中收集和通过虚拟驱动程序访问)。

The exported coverage data can be superimposed on the source code to give the programmer a direct view of what is covered, or can be exported as an XML file, to be easily reformatted into HTML. 导出的coverage数据可以叠加在源代码上,以便程序员直接查看所涵盖的内容,或者可以导出为XML文件,以便轻松地重新格式化为HTML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM