diff options
author | Joel Sherrill <joel@rtems.org> | 2021-04-06 15:40:42 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-04-06 15:40:42 -0500 |
commit | 092bf04cd2ac4f5cbd632ede174692c20782cbf5 (patch) | |
tree | ba6ab403565e56ae0c3c7ad763144e42d49406e7 /tester/covoar/GcovData.h | |
parent | covoar: Remove training white spaces (diff) | |
download | rtems-tools-092bf04cd2ac4f5cbd632ede174692c20782cbf5.tar.bz2 |
covoar: Eliminate tabs
Diffstat (limited to 'tester/covoar/GcovData.h')
-rw-r--r-- | tester/covoar/GcovData.h | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/tester/covoar/GcovData.h b/tester/covoar/GcovData.h index 3191a45..94f5331 100644 --- a/tester/covoar/GcovData.h +++ b/tester/covoar/GcovData.h @@ -14,46 +14,46 @@ namespace Gcov { -#define GCDA_MAGIC ((uint32_t) 0x67636461 ) /* "gcda" */ -#define GCNO_MAGIC ((uint32_t) 0x67636e6f ) /* "gcno" */ +#define GCDA_MAGIC ((uint32_t) 0x67636461 ) /* "gcda" */ +#define GCNO_MAGIC ((uint32_t) 0x67636e6f ) /* "gcno" */ /* we are using gcc 4.6 release format, coded as "406R" */ #define GCNO_VERSION ((uint32_t) 0x34303652 ) /* GCOV tags */ -#define GCOV_TAG_FUNCTION ((uint32_t)0x01000000) -#define GCOV_TAG_BLOCKS ((uint32_t)0x01410000) -#define GCOV_TAG_ARCS ((uint32_t)0x01430000) -#define GCOV_TAG_LINES ((uint32_t)0x01450000) -#define GCOV_TAG_COUNTER ((uint32_t)0x01a10000) -#define GCOV_TAG_OBJECT_SUMMARY ((uint32_t)0xa1000000) -#define GCOV_TAG_PROGRAM_SUMMARY ((uint32_t)0xa3000000) +#define GCOV_TAG_FUNCTION ((uint32_t)0x01000000) +#define GCOV_TAG_BLOCKS ((uint32_t)0x01410000) +#define GCOV_TAG_ARCS ((uint32_t)0x01430000) +#define GCOV_TAG_LINES ((uint32_t)0x01450000) +#define GCOV_TAG_COUNTER ((uint32_t)0x01a10000) +#define GCOV_TAG_OBJECT_SUMMARY ((uint32_t)0xa1000000) +#define GCOV_TAG_PROGRAM_SUMMARY ((uint32_t)0xa3000000) -typedef std::list<Gcov::GcovFunctionData*> functions_t; -typedef std::list<Gcov::GcovFunctionData*>::iterator functions_iterator_t; +typedef std::list<Gcov::GcovFunctionData*> functions_t; +typedef std::list<Gcov::GcovFunctionData*>::iterator functions_iterator_t; struct gcov_preamble { - uint32_t magic; - uint32_t version; - uint32_t timestamp; + uint32_t magic; + uint32_t version; + uint32_t timestamp; }; struct gcov_frame_header { - uint32_t tag; - uint32_t length; + uint32_t tag; + uint32_t length; }; struct gcov_statistics { - uint32_t checksum; // checksum - uint32_t counters; // number of counters - uint32_t runs; // number of runs - uint64_t sum; // sum of all couter values - uint64_t max; // max value on a single run - uint64_t sumMax; // sum of individual runs max values + uint32_t checksum; // checksum + uint32_t counters; // number of counters + uint32_t runs; // number of runs + uint64_t sum; // sum of all couter values + uint64_t max; // max value on a single run + uint64_t sumMax; // sum of individual runs max values }; /*! @class GcovData @@ -111,13 +111,13 @@ struct gcov_statistics private: - uint32_t numberOfFunctions; - gcov_preamble gcnoPreamble; - char gcnoFileName[FILE_NAME_LENGTH]; - char gcdaFileName[FILE_NAME_LENGTH]; - char textFileName[FILE_NAME_LENGTH]; - char cFileName[FILE_NAME_LENGTH]; - functions_t functions; + uint32_t numberOfFunctions; + gcov_preamble gcnoPreamble; + char gcnoFileName[FILE_NAME_LENGTH]; + char gcdaFileName[FILE_NAME_LENGTH]; + char textFileName[FILE_NAME_LENGTH]; + char cFileName[FILE_NAME_LENGTH]; + functions_t functions; /*! @@ -128,7 +128,7 @@ struct gcov_statistics * @return true if read was succesfull, false otherwise */ bool readFrame( - FILE* gcovFile + FILE* gcovFile ); /*! @@ -140,8 +140,8 @@ struct gcov_statistics * @return Returns length of words read (word = 32bit) or -1 if error ocurred */ int readString( - char* buffer, - FILE* gcovFile + char* buffer, + FILE* gcovFile ); /*! @@ -154,8 +154,8 @@ struct gcov_statistics * or -1 if error ocurred */ int readFrameHeader( - gcov_frame_header* header, - FILE* gcovFile + gcov_frame_header* header, + FILE* gcovFile ); /*! @@ -169,9 +169,9 @@ struct gcov_statistics * or -1 if error ocurred */ int readFilePreamble( - gcov_preamble* preamble, - FILE* gcovFile, - const uint32_t desiredMagic + gcov_preamble* preamble, + FILE* gcovFile, + const uint32_t desiredMagic ); /*! @@ -184,9 +184,9 @@ struct gcov_statistics * @return Returns true if operation was succesfull */ bool readFunctionFrame( - gcov_frame_header header, - FILE* gcovFile, - GcovFunctionData* function + gcov_frame_header header, + FILE* gcovFile, + GcovFunctionData* function ); /*! |