summaryrefslogtreecommitdiffstats
path: root/tester/covoar/DesiredSymbols.h
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2021-02-25 10:35:39 -0600
committerJoel Sherrill <joel@rtems.org>2021-03-30 13:15:58 -0500
commit4aabd9bbf742f04a53331064dc0692b91d4d3a6c (patch)
tree09846f0dcf54fdfd69af43b5685b8b3e0ddd8d21 /tester/covoar/DesiredSymbols.h
parentcovoar: Handle periods in symbols from objdump (diff)
downloadrtems-tools-4aabd9bbf742f04a53331064dc0692b91d4d3a6c.tar.bz2
covoar/reports: Add new statistics to summary
The following new statistics have been added to the summary report: number of unreferenced symbols, total branch paths found, number of branch paths not executed, and percentage of branch paths covered.
Diffstat (limited to 'tester/covoar/DesiredSymbols.h')
-rw-r--r--tester/covoar/DesiredSymbols.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/tester/covoar/DesiredSymbols.h b/tester/covoar/DesiredSymbols.h
index 367ca95..5cf96e9 100644
--- a/tester/covoar/DesiredSymbols.h
+++ b/tester/covoar/DesiredSymbols.h
@@ -83,6 +83,11 @@ namespace Coverage {
int uncoveredRanges;
/*!
+ * This member variable contains the total number of unreferenced symbols.
+ */
+ int unreferencedSymbols;
+
+ /*!
* This method returns the percentage of uncovered instructions.
*
* @return Returns the percent uncovered instructions
@@ -109,7 +114,8 @@ namespace Coverage {
sizeInInstructions(0),
uncoveredBytes(0),
uncoveredInstructions(0),
- uncoveredRanges(0)
+ uncoveredRanges(0),
+ unreferencedSymbols(0)
{
}
@@ -279,6 +285,14 @@ namespace Coverage {
uint32_t getNumberBranchesNeverTaken( void ) const;
/*!
+ * This method returns the total number of branches not executed
+ * for all analyzed symbols.
+ *
+ * @return Returns the total number of branches not executed
+ */
+ uint32_t getNumberBranchesNotExecuted( void ) const;
+
+ /*!
* This method returns the total number of uncovered ranges
* for all analyzed symbols.
*
@@ -287,6 +301,14 @@ namespace Coverage {
uint32_t getNumberUncoveredRanges( void ) const;
/*!
+ * This method returns the total number of unreferenced symbols
+ * for all analyzed symbols.
+ *
+ * @return Returns the total number of unreferenced symbols
+ */
+ uint32_t getNumberUnreferencedSymbols( void ) const;
+
+ /*!
* This method returns an indication of whether or not the specified
* symbol is a symbol to analyze.
*