Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code coverage tool for linux drivers

I am looking for code coverage tool which can give functional and conditional coverage for linux drivers.

The tool should generate html output. I was using bullseye till now for C++ apps. But i am not able to find anything for linux kernel modules.

like image 453
user405369 Avatar asked Apr 23 '26 02:04

user405369


1 Answers

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. A corresponding C Test Coverage exists.

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.

like image 129
Ira Baxter Avatar answered Apr 25 '26 01:04

Ira Baxter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!