osprey-gcc/gcc/gcov-io.h File Reference

#include "gcov-iov.h"
#include <sys/types.h>
#include "auto-host.h"

Include dependency graph for gcov-io.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  gcov_ctr_summary
type  gcov_summary
type  gcov_var

Defines

#define GCOV_TYPE_NODE   intSI_type_node
#define GCOV_LOCKED   0
#define ATTRIBUTE_HIDDEN
#define GCOV_LINKAGE   extern
#define GCOV_DATA_SUFFIX   ".gcda"
#define GCOV_NOTE_SUFFIX   ".gcno"
#define GCOV_DATA_MAGIC   ((gcov_unsigned_t)0x67636461)
#define GCOV_NOTE_MAGIC   ((gcov_unsigned_t)0x67636e6f)
#define GCOV_UNSIGNED2STRING(ARRAY, VALUE)
#define GCOV_TAG_FUNCTION   ((gcov_unsigned_t)0x01000000)
#define GCOV_TAG_FUNCTION_LENGTH   (2)
#define GCOV_TAG_BLOCKS   ((gcov_unsigned_t)0x01410000)
#define GCOV_TAG_BLOCKS_LENGTH(NUM)   (NUM)
#define GCOV_TAG_BLOCKS_NUM(LENGTH)   (LENGTH)
#define GCOV_TAG_ARCS   ((gcov_unsigned_t)0x01430000)
#define GCOV_TAG_ARCS_LENGTH(NUM)   (1 + (NUM) * 2)
#define GCOV_TAG_ARCS_NUM(LENGTH)   (((LENGTH) - 1) / 2)
#define GCOV_TAG_LINES   ((gcov_unsigned_t)0x01450000)
#define GCOV_TAG_COUNTER_BASE   ((gcov_unsigned_t)0x01a10000)
#define GCOV_TAG_COUNTER_LENGTH(NUM)   ((NUM) * 2)
#define GCOV_TAG_COUNTER_NUM(LENGTH)   ((LENGTH) / 2)
#define GCOV_TAG_OBJECT_SUMMARY   ((gcov_unsigned_t)0xa1000000)
#define GCOV_TAG_PROGRAM_SUMMARY   ((gcov_unsigned_t)0xa3000000)
#define GCOV_TAG_SUMMARY_LENGTH   (1 + GCOV_COUNTERS_SUMMABLE * (2 + 3 * 2))
#define GCOV_COUNTER_ARCS   0
#define GCOV_COUNTERS_SUMMABLE   1
#define GCOV_FIRST_VALUE_COUNTER   1
#define GCOV_COUNTER_V_INTERVAL   1
#define GCOV_COUNTER_V_POW2   2
#define GCOV_COUNTER_V_SINGLE   3
#define GCOV_COUNTER_V_DELTA   4
#define GCOV_LAST_VALUE_COUNTER   4
#define GCOV_COUNTERS   5
#define GCOV_N_VALUE_COUNTERS   (GCOV_LAST_VALUE_COUNTER - GCOV_FIRST_VALUE_COUNTER + 1)
#define GCOV_COUNTER_NAMES   {"arcs", "interval", "pow2", "single", "delta"}
#define GCOV_MERGE_FUNCTIONS
#define GCOV_TAG_FOR_COUNTER(COUNT)   (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17))
#define GCOV_COUNTER_FOR_TAG(TAG)   ((unsigned)(((TAG) - GCOV_TAG_COUNTER_BASE) >> 17))
#define GCOV_TAG_IS_COUNTER(TAG)   (!((TAG) & 0xFFFF) && GCOV_COUNTER_FOR_TAG (TAG) < GCOV_COUNTERS)
#define GCOV_TAG_MASK(TAG)   (((TAG) - 1) ^ (TAG))
#define GCOV_TAG_IS_SUBTAG(TAG, SUB)
#define GCOV_TAG_IS_SUBLEVEL(TAG, SUB)   (GCOV_TAG_MASK (TAG) > GCOV_TAG_MASK (SUB))
#define GCOV_BLOCK_UNEXPECTED   (1 << 1)
#define GCOV_ARC_ON_TREE   (1 << 0)
#define GCOV_ARC_FAKE   (1 << 1)
#define GCOV_ARC_FALLTHROUGH   (1 << 2)
#define GCOV_BLOCK_SIZE   (1 << 10)
#define GCOV_CHECK(EXPR)   gcc_assert (EXPR)
#define GCOV_CHECK_READING()   GCOV_CHECK(gcov_var.mode > 0)
#define GCOV_CHECK_WRITING()   GCOV_CHECK(gcov_var.mode < 0)

Typedefs

typedef unsigned gcov_unsigned_t
typedef unsigned gcov_position_t

Functions/Subroutines

GCOV_LINKAGE int gcov_open (const char *, int)
GCOV_LINKAGE int gcov_magic (gcov_unsigned_t, gcov_unsigned_t)
GCOV_LINKAGE int gcov_close (void) ATTRIBUTE_HIDDEN
static gcov_position_t gcov_position (void)
static int gcov_is_error (void)
GCOV_LINKAGE gcov_unsigned_t gcov_read_unsigned (void) ATTRIBUTE_HIDDEN
GCOV_LINKAGE gcov_type gcov_read_counter (void) ATTRIBUTE_HIDDEN
GCOV_LINKAGE void gcov_read_summary (struct gcov_summary *) ATTRIBUTE_HIDDEN
GCOV_LINKAGE const char * gcov_read_string (void)
GCOV_LINKAGE void gcov_sync (gcov_position_t, gcov_unsigned_t)
GCOV_LINKAGE void gcov_write_unsigned (gcov_unsigned_t) ATTRIBUTE_HIDDEN
GCOV_LINKAGE void gcov_write_string (const char *)
GCOV_LINKAGE gcov_position_t gcov_write_tag (gcov_unsigned_t)
GCOV_LINKAGE void gcov_write_length (gcov_position_t)

Variables

GCOV_LINKAGE struct gcov_var ATTRIBUTE_HIDDEN


Define Documentation

Definition at line 268 of file gcov-io.h.

#define GCOV_ARC_FAKE   (1 << 1)

Definition at line 381 of file gcov-io.h.

Referenced by branch_prob(), and read_graph_file().

#define GCOV_ARC_FALLTHROUGH   (1 << 2)

Definition at line 382 of file gcov-io.h.

Referenced by branch_prob(), CG_Gcov_Generation(), and read_graph_file().

#define GCOV_ARC_ON_TREE   (1 << 0)

Definition at line 380 of file gcov-io.h.

Referenced by branch_prob(), CG_Gcov_Generation(), and read_graph_file().

#define GCOV_BLOCK_SIZE   (1 << 10)

Definition at line 481 of file gcov-io.h.

Referenced by gcov_allocate(), gcov_read_words(), gcov_write_length(), and gcov_write_words().

#define GCOV_BLOCK_UNEXPECTED   (1 << 1)

Definition at line 377 of file gcov-io.h.

#define GCOV_CHECK ( EXPR   )     gcc_assert (EXPR)

Definition at line 575 of file gcov-io.h.

Referenced by gcov_open(), gcov_read_words(), gcov_write_length(), and gcov_write_words().

 
#define GCOV_CHECK_READING (  )     GCOV_CHECK(gcov_var.mode > 0)

Definition at line 577 of file gcov-io.h.

Referenced by gcov_position(), gcov_read_words(), and gcov_sync().

 
#define GCOV_CHECK_WRITING (  )     GCOV_CHECK(gcov_var.mode < 0)

Definition at line 578 of file gcov-io.h.

Referenced by gcov_write_length(), and gcov_write_words().

#define GCOV_COUNTER_ARCS   0

#define GCOV_COUNTER_FOR_TAG ( TAG   )     ((unsigned)(((TAG) - GCOV_TAG_COUNTER_BASE) >> 17))

Definition at line 356 of file gcov-io.h.

Referenced by read_counts_file(), and tag_counters().

#define GCOV_COUNTER_NAMES   {"arcs", "interval", "pow2", "single", "delta"}

Definition at line 343 of file gcov-io.h.

Referenced by tag_counters().

#define GCOV_COUNTER_V_DELTA   4

Definition at line 332 of file gcov-io.h.

Referenced by instrument_values().

#define GCOV_COUNTER_V_INTERVAL   1

Definition at line 328 of file gcov-io.h.

Referenced by instrument_values().

#define GCOV_COUNTER_V_POW2   2

Definition at line 329 of file gcov-io.h.

Referenced by instrument_values().

#define GCOV_COUNTER_V_SINGLE   3

Definition at line 331 of file gcov-io.h.

Referenced by instrument_values().

#define GCOV_COUNTERS   5

#define GCOV_COUNTERS_SUMMABLE   1

Definition at line 321 of file gcov-io.h.

Referenced by gcov_read_summary(), and read_counts_file().

#define GCOV_DATA_MAGIC   ((gcov_unsigned_t)0x67636461)

Definition at line 281 of file gcov-io.h.

Referenced by read_count_file(), and read_counts_file().

#define GCOV_DATA_SUFFIX   ".gcda"

Definition at line 277 of file gcov-io.h.

Referenced by coverage_init(), and create_file_names().

#define GCOV_FIRST_VALUE_COUNTER   1

Definition at line 323 of file gcov-io.h.

#define GCOV_LAST_VALUE_COUNTER   4

Definition at line 334 of file gcov-io.h.

#define GCOV_LINKAGE   extern

Definition at line 273 of file gcov-io.h.

#define GCOV_LOCKED   0

Definition at line 227 of file gcov-io.h.

#define GCOV_MERGE_FUNCTIONS

Value:

{"__gcov_merge_add",  \
         "__gcov_merge_add",  \
         "__gcov_merge_add",  \
         "__gcov_merge_single", \
         "__gcov_merge_delta"}

Definition at line 346 of file gcov-io.h.

#define GCOV_N_VALUE_COUNTERS   (GCOV_LAST_VALUE_COUNTER - GCOV_FIRST_VALUE_COUNTER + 1)

Definition at line 339 of file gcov-io.h.

Referenced by compute_value_histograms().

#define GCOV_NOTE_MAGIC   ((gcov_unsigned_t)0x67636e6f)

Definition at line 282 of file gcov-io.h.

Referenced by coverage_begin_output(), and read_graph_file().

#define GCOV_NOTE_SUFFIX   ".gcno"

Definition at line 278 of file gcov-io.h.

Referenced by coverage_init(), and create_file_names().

#define GCOV_TAG_ARCS   ((gcov_unsigned_t)0x01430000)

Definition at line 307 of file gcov-io.h.

Referenced by branch_prob(), CG_Gcov_Generation(), and read_graph_file().

#define GCOV_TAG_ARCS_LENGTH ( NUM   )     (1 + (NUM) * 2)

Definition at line 308 of file gcov-io.h.

#define GCOV_TAG_ARCS_NUM ( LENGTH   )     (((LENGTH) - 1) / 2)

Definition at line 309 of file gcov-io.h.

Referenced by read_graph_file(), and tag_arcs().

#define GCOV_TAG_BLOCKS   ((gcov_unsigned_t)0x01410000)

Definition at line 304 of file gcov-io.h.

Referenced by branch_prob(), CG_Gcov_Generation(), and read_graph_file().

#define GCOV_TAG_BLOCKS_LENGTH ( NUM   )     (NUM)

Definition at line 305 of file gcov-io.h.

#define GCOV_TAG_BLOCKS_NUM ( LENGTH   )     (LENGTH)

Definition at line 306 of file gcov-io.h.

Referenced by read_graph_file(), and tag_blocks().

#define GCOV_TAG_COUNTER_BASE   ((gcov_unsigned_t)0x01a10000)

Definition at line 311 of file gcov-io.h.

#define GCOV_TAG_COUNTER_LENGTH ( NUM   )     ((NUM) * 2)

Definition at line 312 of file gcov-io.h.

Referenced by read_count_file().

#define GCOV_TAG_COUNTER_NUM ( LENGTH   )     ((LENGTH) / 2)

Definition at line 313 of file gcov-io.h.

Referenced by read_counts_file(), and tag_counters().

#define GCOV_TAG_FOR_COUNTER ( COUNT   )     (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17))

Definition at line 353 of file gcov-io.h.

Referenced by read_count_file().

#define GCOV_TAG_FUNCTION   ((gcov_unsigned_t)0x01000000)

#define GCOV_TAG_FUNCTION_LENGTH   (2)

Definition at line 303 of file gcov-io.h.

#define GCOV_TAG_IS_COUNTER ( TAG   )     (!((TAG) & 0xFFFF) && GCOV_COUNTER_FOR_TAG (TAG) < GCOV_COUNTERS)

Definition at line 359 of file gcov-io.h.

Referenced by read_counts_file().

#define GCOV_TAG_IS_SUBLEVEL ( TAG,
SUB   )     (GCOV_TAG_MASK (TAG) > GCOV_TAG_MASK (SUB))

Definition at line 373 of file gcov-io.h.

#define GCOV_TAG_IS_SUBTAG ( TAG,
SUB   ) 

Value:

(GCOV_TAG_MASK (TAG) >> 8 == GCOV_TAG_MASK (SUB)  \
   && !(((SUB) ^ (TAG)) & ~GCOV_TAG_MASK(TAG)))

Definition at line 368 of file gcov-io.h.

Referenced by read_graph_file().

#define GCOV_TAG_LINES   ((gcov_unsigned_t)0x01450000)

Definition at line 310 of file gcov-io.h.

Referenced by CG_Gcov_Generation(), output_location(), and read_graph_file().

#define GCOV_TAG_MASK ( TAG   )     (((TAG) - 1) ^ (TAG))

Definition at line 365 of file gcov-io.h.

#define GCOV_TAG_OBJECT_SUMMARY   ((gcov_unsigned_t)0xa1000000)

Definition at line 314 of file gcov-io.h.

Referenced by read_count_file().

#define GCOV_TAG_PROGRAM_SUMMARY   ((gcov_unsigned_t)0xa3000000)

Definition at line 315 of file gcov-io.h.

Referenced by read_count_file(), and read_counts_file().

#define GCOV_TAG_SUMMARY_LENGTH   (1 + GCOV_COUNTERS_SUMMABLE * (2 + 3 * 2))

Definition at line 316 of file gcov-io.h.

#define GCOV_TYPE_NODE   intSI_type_node

#define GCOV_UNSIGNED2STRING ( ARRAY,
VALUE   ) 

Value:

((ARRAY)[0] = (char)((VALUE) >> 24),    \
   (ARRAY)[1] = (char)((VALUE) >> 16),    \
   (ARRAY)[2] = (char)((VALUE) >> 8),   \
   (ARRAY)[3] = (char)((VALUE) >> 0))

Definition at line 291 of file gcov-io.h.

Referenced by read_count_file(), read_counts_file(), and read_graph_file().


Typedef Documentation

typedef unsigned gcov_position_t

Definition at line 208 of file gcov-io.h.

typedef unsigned gcov_unsigned_t

Definition at line 207 of file gcov-io.h.


Function Documentation

GCOV_LINKAGE int gcov_close ( void   ) 

Definition at line 146 of file gcov-io.c.

static int gcov_is_error ( void   )  [inline, static]

GCOV_LINKAGE int gcov_magic ( gcov_unsigned_t  ,
gcov_unsigned_t   
)

Definition at line 173 of file gcov-io.c.

GCOV_LINKAGE int gcov_open ( const char *  ,
int   
)

Definition at line 60 of file gcov-io.c.

static gcov_position_t gcov_position ( void   )  [inline, static]

GCOV_LINKAGE gcov_type gcov_read_counter ( void   ) 

Definition at line 440 of file gcov-io.c.

GCOV_LINKAGE const char* gcov_read_string ( void   ) 

Definition at line 462 of file gcov-io.c.

GCOV_LINKAGE void gcov_read_summary ( struct gcov_summary  ) 

Definition at line 474 of file gcov-io.c.

GCOV_LINKAGE gcov_unsigned_t gcov_read_unsigned ( void   ) 

Definition at line 425 of file gcov-io.c.

GCOV_LINKAGE void gcov_sync ( gcov_position_t  ,
gcov_unsigned_t   
)

Definition at line 495 of file gcov-io.c.

GCOV_LINKAGE void gcov_write_length ( gcov_position_t   ) 

Definition at line 320 of file gcov-io.c.

GCOV_LINKAGE void gcov_write_string ( const char *   ) 

Definition at line 278 of file gcov-io.c.

GCOV_LINKAGE gcov_position_t gcov_write_tag ( gcov_unsigned_t   ) 

Definition at line 303 of file gcov-io.c.

GCOV_LINKAGE void gcov_write_unsigned ( gcov_unsigned_t   ) 

Definition at line 249 of file gcov-io.c.


Variable Documentation


Generated on Wed Apr 8 14:26:13 2009 for Open64 by  doxygen 1.5.6