The TRACE32 Coverage Report Utility

Welcome to this video After the code coverage measurement is completed, a code coverage report has to be generated in order to document the results. TRACE32 includes a Coverage Report Utility for this purpose. This utility provides a dialog, that support the export of the code coverage results into .xml files and various scripts that allow a seamless display of the .xml files in any web browser. The following video provides an introduction to the TRACE32 Coverage Report Utility. This video is presented with a TRACE32 version of March 2018 using TRACE32 PowerView for PowerPC with a PowerDebug PRO and a PowerTrace II connected to a Bolero3M board with an MPC5646C processor. Our screen shows the code coverage results after the code coverage measurement was completed. We can see that even after the measurement has been completed, there are still program sections for which full coverage has not been achieved. There can be good reasons for that. You can use the TRACE32 bookmarks to include those reasons into your Code Coverage report. To add a bookmark, you can do a right mouse click on a code address then select Bookmark You can then enter a name for the new bookmark and a remark, for example “not testable in current configuration”, if this was your reason. The bookmark list can be displayed by selecting the TRACE32 menu View then Bookmarks As you can see, I’ve already set an another bookmark on the jpeg_finish_decompress function. Now we are ready to generate the Code Coverage report. You can open the TRACE32 Coverage Report dialog by using the TRACE32 menu COV then “Create Report”. A dialog will pop-up. The following setups are recommended before you push the “Create Report” button. Check the “Source Code Metric” Check the output folder and change it if required. Restrict the Code Coverage Report to the selected source file if needed. Click on [i] to display the TRACE32 module list, if you set “Source” to ON, the source file that is represented by the module is displayed. We will select the following three source files for this video. If nothing is specified, the report will include all program modules. By default “Open report in browser when finished” is enabled. I will push then the Create Report button to export the coverage results in XML format t the end of the processing, a code coverage report will be displayed in your default browser. The display in your browser may differ from the representation shown in this video. In this case please check your browser settings. On the button of the report the time of creation, the CPU family as well as the PowerView software version is displayed. The code coverage results for the selected modules are displayed together with the created bookmarks in the first page By doing a click on a specific module, you get the code coverage results for the single functions of this modules and by selecting a specific function you get the code coverage results for the single source code lines of this function We have created a bookmark for this function at line 77. By doing a click on the line number, you navigate to the location of the bookmark. The code is displayed per default in mixed mode thus including HLL and assembly. You can change this display mode by selecting below ASM or HLL Are you interested? Find more details on documented code coverage in these documents But of course TRACE32 has more to offer, please refer to our other videos on this topic. Thanks for watching

Tags: , ,

There are no comments yet

Why not be the first

Leave a Reply

Your email address will not be published. Required fields are marked *