Skip to main content

Hitachi Research & Development

Hitachi

Btrax - an automated coverage test tool

— Presentation at Linux.conf.au 2009 —

February 17, 2009

Report from Presenter


Photo 1 Presentation scene

Linux.conf.au (LCA) 2009 was held in Tasmania, Australia, during January 19th - 24th, 2009. LCA is one of international Linux conferences that cover development of not only Linux kernel, but also applications, middleware and devices for Linux. In LCA2009, more than 500 developers and users of Linux/OSS attended to report and discuss their activities.

Systems Development Laboratory, Hitachi, Ltd., presented two topics -- titled "Btrax: an automated coverage test tool" and "VESPER (Virtual Embraced Space ProbER)". In this report, we introduce about Btrax (Branch Tracer for Linux). For VESPER, please refer to this report.

Sufficient software testing is necessary to improve the quality of software products. Coverage test is one of the test techniques, which ensures that the software runs correctly with the test data to execute every instruction in the program once at least. In the conventional methods for coverage test, it is required to rebuild the binary of the target software with probes to capture information of the executed code, and to execute the test with it. This causes a problem that we cannot test the binary to be released.


Fig. 1 Structure of Btrax
Enlarge


Fig. 2 Screenshot of Btrax
Enlarge

We propose Btrax, which is able to execute coverage test without modifying the target program. Btrax traces the execution of branch instruction using a debug facility in the processor and detects the executed parts of the program. Then, it automatically calculates the coverage rate from the results. The execution is traced at the hardware level, so Btrax can be applied to libraries and Linux kernel as well as to applications.
Btrax is open source software, and is available in Linux environments on Intel Pentium 4 processors or later.

(By Satoshi Oshima, Systems Development Laboratory)

*
Linux is a registered trademark or a trademark of Linus Torvalds in the U.S. and other countries.
*
Intel and Pentium are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the U.S. and other countries.

Related Links

Researchers' Development Story

Researcher itself explains the research theme on information area in detail.

Glossary

Technical terms related to research themes at SDL are explained.