change log for rtems-testing (2011-09-01)

rtems-vc at rtems.org rtems-vc at rtems.org
Thu Sep 1 23:10:02 UTC 2011


 *joel*:
2011-09-01	Pawel Zagorski <pzagor at agh.edu.pl>

	PR 1909/testing
	* ReportsHtml.cc: Add branch taken and not taken count columns.

M   1.24  covoar/ChangeLog
M    1.5  covoar/ReportsHtml.cc

diff -u rtems-testing/covoar/ChangeLog:1.23 rtems-testing/covoar/ChangeLog:1.24
--- rtems-testing/covoar/ChangeLog:1.23	Wed Aug 31 15:44:25 2011
+++ rtems-testing/covoar/ChangeLog	Thu Sep  1 17:32:29 2011
@@ -1,3 +1,8 @@
+2011-09-01	Pawel Zagorski <pzagor at agh.edu.pl>
+
+	PR 1909/testing
+	* ReportsHtml.cc: Add branch taken and not taken count columns.
+
 2011-08-31      Pawel Zagorski <pzagor at agh.edu.pl>
 
 	* covoar/CoverageMapBase.cc, covoar/CoverageMapBase.h,

diff -u rtems-testing/covoar/ReportsHtml.cc:1.4 rtems-testing/covoar/ReportsHtml.cc:1.5
--- rtems-testing/covoar/ReportsHtml.cc:1.4	Thu May 27 14:32:03 2010
+++ rtems-testing/covoar/ReportsHtml.cc	Thu Sep  1 17:32:29 2011
@@ -203,6 +203,7 @@
         "<th class=\"table-filterable table-sortable:default\" align=\"left\">File</th>\n"
         "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Bytes</th>\n"
         "<th class=\"table-sortable:default\" align=\"left\">Reason</th>\n"
+        "<th class=\"table-sortable:default\" align=\"left\">Taken / Not Taken</th>\n"
         "<th class=\"table-filterable table-sortable:default\" align=\"left\">Classification</th>\n"
         "<th class=\"table-sortable:default\" align=\"left\">Explanation</th>\n"
         "</tr>\n"
@@ -508,6 +509,9 @@
     const Coverage::Explanation* explanation;
     std::string                  temp;
     int                          i;
+    uint32_t                     bAddress = 0;
+    uint32_t                     lowAddress = 0;
+    Coverage::CoverageMapBase*   theCoverageMap = NULL;
 
     // Mark the background color different for odd and even lines.
     if ( ( count%2 ) != 0 )
@@ -560,11 +564,22 @@
         "<td class=\"covoar-td\" align=\"center\">Never Taken</td>\n"
       );
 
+    // Taken / Not taken counts
+    lowAddress = rangePtr->lowAddress;
+    bAddress = symbolPtr->second.baseAddress;
+    theCoverageMap = symbolPtr->second.unifiedCoverageMap;
+    fprintf(
+      report,
+      "<td class=\"covoar-td\" align=\"center\">%d / %d</td>\n",
+      theCoverageMap->getWasTaken( lowAddress - bAddress ),
+      theCoverageMap->getWasNotTaken( lowAddress - bAddress )
+    );
+
     // See if an explanation is available and write the Classification and
     // the Explination Columns.
     explanation = AllExplanations->lookupExplanation( rangePtr->lowSourceLine );
     if ( !explanation ) {
-      // Write Classification
+      // Write Classificationditr->second.baseAddress
       fprintf( 
         report, 
         "<td class=\"covoar-td\" align=\"center\">NONE</td>\n"



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110901/cc3af5d6/attachment.html>


More information about the vc mailing list