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


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 ATTRIBUTE_HIDDEN |
| #define GCOV_ARC_FAKE (1 << 1) |
| #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().
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 |
Definition at line 320 of file gcov-io.h.
Referenced by branch_prob(), get_exec_counts(), output_lines(), read_count_file(), rtl_gen_edge_profiler(), and tree_gen_edge_profiler().
| #define GCOV_COUNTER_FOR_TAG | ( | TAG | ) | ((unsigned)(((TAG) - GCOV_TAG_COUNTER_BASE) >> 17)) |
| #define GCOV_COUNTER_NAMES {"arcs", "interval", "pow2", "single", "delta"} |
| #define GCOV_COUNTER_V_DELTA 4 |
| #define GCOV_COUNTER_V_INTERVAL 1 |
| #define GCOV_COUNTER_V_POW2 2 |
| #define GCOV_COUNTER_V_SINGLE 3 |
| #define GCOV_COUNTERS 5 |
Definition at line 336 of file gcov-io.h.
Referenced by build_fn_info_value(), build_gcov_info(), coverage_end_function(), htab_counts_entry_hash(), and tag_summary().
| #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) |
| #define GCOV_DATA_SUFFIX ".gcda" |
| #define GCOV_MERGE_FUNCTIONS |
| #define GCOV_N_VALUE_COUNTERS (GCOV_LAST_VALUE_COUNTER - GCOV_FIRST_VALUE_COUNTER + 1) |
| #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" |
| #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_NUM | ( | LENGTH | ) | (((LENGTH) - 1) / 2) |
| #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_NUM | ( | LENGTH | ) | (LENGTH) |
| #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_FOR_COUNTER | ( | COUNT | ) | (GCOV_TAG_COUNTER_BASE + ((gcov_unsigned_t)(COUNT) << 17)) |
| #define GCOV_TAG_FUNCTION ((gcov_unsigned_t)0x01000000) |
Definition at line 302 of file gcov-io.h.
Referenced by CG_Gcov_Generation(), coverage_begin_output(), read_count_file(), read_counts_file(), and read_graph_file().
| #define GCOV_TAG_IS_COUNTER | ( | TAG | ) | (!((TAG) & 0xFFFF) && GCOV_COUNTER_FOR_TAG (TAG) < GCOV_COUNTERS) |
| #define GCOV_TAG_IS_SUBLEVEL | ( | TAG, | |||
| SUB | ) | (GCOV_TAG_MASK (TAG) > GCOV_TAG_MASK (SUB)) |
| #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_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_TYPE_NODE intSI_type_node |
IN_GCOV
Definition at line 220 of file gcov-io.h.
Referenced by build_ctr_info_type(), coverage_counter_alloc(), rtl_coverage_counter_ref(), rtl_gen_const_delta_profiler(), rtl_gen_interval_profiler(), rtl_gen_one_value_profiler_no_edge_manipulation(), rtl_gen_pow2_profiler(), tree_coverage_counter_ref(), and tree_gen_edge_profiler().
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 unsigned gcov_position_t |
| typedef unsigned gcov_unsigned_t |
| static int gcov_is_error | ( | void | ) | [inline, static] |
Definition at line 592 of file gcov-io.h.
Referenced by coverage_begin_output(), coverage_end_function(), read_count_file(), read_counts_file(), and read_graph_file().
| GCOV_LINKAGE int gcov_magic | ( | gcov_unsigned_t | , | |
| gcov_unsigned_t | ||||
| ) |
| static gcov_position_t gcov_position | ( | void | ) | [inline, static] |
Definition at line 583 of file gcov-io.h.
References GCOV_CHECK_READING.
Referenced by read_count_file(), read_counts_file(), read_graph_file(), tag_arcs(), tag_blocks(), tag_counters(), tag_function(), and tag_lines().
| GCOV_LINKAGE void gcov_read_summary | ( | struct gcov_summary * | ) |
| GCOV_LINKAGE gcov_unsigned_t gcov_read_unsigned | ( | void | ) |
| GCOV_LINKAGE void gcov_sync | ( | gcov_position_t | , | |
| gcov_unsigned_t | ||||
| ) |
| GCOV_LINKAGE void gcov_write_length | ( | gcov_position_t | ) |
| GCOV_LINKAGE gcov_position_t gcov_write_tag | ( | gcov_unsigned_t | ) |
| GCOV_LINKAGE void gcov_write_unsigned | ( | gcov_unsigned_t | ) |
| GCOV_LINKAGE struct gcov_var ATTRIBUTE_HIDDEN |
1.5.6