#include "gcov-io.h"


Go to the source code of this file.
Functions/Subroutines | |
| void | coverage_init (const char *) |
| void | coverage_finish (void) |
| void | coverage_end_function (void) |
| int | coverage_begin_output (void) |
| int | coverage_counter_alloc (unsigned, unsigned) |
| tree | tree_coverage_counter_ref (unsigned, unsigned) |
| gcov_type * | get_coverage_counts (unsigned, unsigned, const struct gcov_ctr_summary **) |
| tree | get_gcov_type (void) |
| int coverage_begin_output | ( | void | ) |
Definition at line 518 of file coverage.c.
References bbg_file_name, bbg_file_opened, bbg_function_announced, compute_checksum(), current_function_decl, current_function_funcdef_no, DECL_ASSEMBLER_NAME, DECL_SOURCE_LOCATION, error(), expand_location, gcov_is_error(), GCOV_NOTE_MAGIC, gcov_open(), GCOV_TAG_FUNCTION, gcov_write_length(), gcov_write_string(), gcov_write_tag(), gcov_write_unsigned(), IDENTIFIER_POINTER, local_tick, no_coverage, and offset.
Referenced by branch_prob().
| int coverage_counter_alloc | ( | unsigned | , | |
| unsigned | ||||
| ) |
Definition at line 366 of file coverage.c.
References ASM_GENERATE_INTERNAL_LABEL, buf, build_array_type(), build_decl, build_index_type(), build_int_cst(), DECL_ALIGN, DECL_NAME, fn_b_ctrs, fn_ctr_mask, fn_n_ctrs, GCOV_TYPE_NODE, get_gcov_type(), get_identifier(), no_coverage, NULL_TREE, TREE_STATIC, and TYPE_ALIGN.
Referenced by branch_prob(), and instrument_values().
Definition at line 561 of file coverage.c.
References bbg_file_name, bbg_file_opened, bbg_function_announced, function_list::checksum, compute_checksum(), current_function_funcdef_no, fn_b_ctrs, fn_ctr_mask, fn_n_ctrs, GCOV_COUNTERS, gcov_is_error(), i, function_list::ident, function_list::n_ctrs, function_list::next, prg_ctr_mask, prg_n_ctrs, warning, xmalloc(), and XNEW.
Referenced by branch_prob(), and rest_of_clean_state().
Definition at line 965 of file coverage.c.
References bbg_file_name, bbg_file_opened, create_coverage(), da_file_name, error(), gcov_close(), local_tick, and unlink.
Referenced by compile_file().
| void coverage_init | ( | const char * | ) |
Definition at line 944 of file coverage.c.
References bbg_file_name, da_file_name, GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX, len, read_counts_file(), strcat(), strcpy, strlen(), xmalloc(), and XNEWVEC.
Referenced by compile_file().
| gcov_type* get_coverage_counts | ( | unsigned | , | |
| unsigned | , | |||
| const struct gcov_ctr_summary ** | ||||
| ) |
Definition at line 309 of file coverage.c.
References counts_entry::checksum, compute_checksum(), counts_entry::counts, counts_hash, counts_entry::ctr, current_function_decl, current_function_funcdef_no, da_file_name, DECL_ASSEMBLER_NAME, error(), flag_guess_branch_prob, htab_find(), counts_entry::ident, IDENTIFIER_POINTER, inform(), NULL, gcov_ctr_summary::num, counts_entry::summary, and warning.
Referenced by compute_value_histograms(), and get_exec_counts().
| tree tree_coverage_counter_ref | ( | unsigned | , | |
| unsigned | ||||
| ) |
Definition at line 426 of file coverage.c.
References build4, build_int_cst(), fn_b_ctrs, fn_n_ctrs, fold_convert(), gcc_assert, GCOV_TYPE_NODE, get_gcov_type(), NULL, NULL_TREE, prg_n_ctrs, size_binop(), size_int, TREE_TYPE, TYPE_ALIGN_UNIT, TYPE_DOMAIN, TYPE_MIN_VALUE, and TYPE_SIZE_UNIT.
Referenced by tree_gen_edge_profiler(), tree_gen_interval_profiler(), tree_gen_one_value_profiler(), and tree_gen_pow2_profiler().
1.5.6