osprey-gcc/gcc/coverage.c File Reference

#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl.h"
#include "tree.h"
#include "flags.h"
#include "output.h"
#include "regs.h"
#include "expr.h"
#include "function.h"
#include "toplev.h"
#include "ggc.h"
#include "coverage.h"
#include "langhooks.h"
#include "hashtab.h"
#include "tree-iterator.h"
#include "cgraph.h"
#include "gcov-io.c"
#include "gt-coverage.h"

Include dependency graph for coverage.c:

Go to the source code of this file.

Data Types

type  function_list
type  counts_entry

Defines

#define GCOV_LINKAGE

Typedefs

typedef struct counts_entry counts_entry_t

Functions/Subroutines

static GTY (())
static int htab_counts_entry_eq (const void *of1, const void *of2)
static void htab_counts_entry_del (void *of)
static void read_counts_file (void)
gcov_typeget_coverage_counts (unsigned counter, unsigned expected, const struct gcov_ctr_summary **summary)
int coverage_counter_alloc (unsigned counter, unsigned num)
rtx rtl_coverage_counter_ref (unsigned counter, unsigned no)
tree tree_coverage_counter_ref (unsigned counter, unsigned no)
static unsigned coverage_checksum_string (unsigned chksum, const char *string)
static unsigned compute_checksum (void)
int coverage_begin_output (void)
void coverage_end_function (void)
static tree build_fn_info_type (unsigned int counters)
static tree build_fn_info_value (const struct function_list *function, tree type)
static tree build_ctr_info_type (void)
static tree build_ctr_info_value (unsigned int counter, tree type)
static tree build_gcov_info (void)
static void create_coverage (void)
void coverage_init (const char *filename)
void coverage_finish (void)

Variables

static struct function_listfunctions_head = 0
static struct function_list ** functions_tail = &functions_head
static unsigned no_coverage = 0
static unsigned prg_ctr_mask
static unsigned prg_n_ctrs [GCOV_COUNTERS]
static unsigned fn_ctr_mask
static unsigned fn_n_ctrs [GCOV_COUNTERS]
static unsigned fn_b_ctrs [GCOV_COUNTERS]
static char * bbg_file_name
static unsigned bbg_file_opened
static int bbg_function_announced
static char * da_file_name
static htab_t counts_hash = NULL


Define Documentation

#define GCOV_LINKAGE

Definition at line 27 of file coverage.c.


Typedef Documentation


Function Documentation

static tree build_ctr_info_type ( void   )  [static]

static tree build_ctr_info_value ( unsigned int  counter,
tree  type 
) [static]

static tree build_fn_info_type ( unsigned int  counters  )  [static]

static tree build_fn_info_value ( const struct function_list function,
tree  type 
) [static]

static tree build_gcov_info ( void   )  [static]

static unsigned compute_checksum ( void   )  [static]

int coverage_begin_output ( void   ) 

Definition at line 518 of file coverage.c.

Referenced by branch_prob().

static unsigned coverage_checksum_string ( unsigned  chksum,
const char *  string 
) [static]

Definition at line 446 of file coverage.c.

References crc32_string(), dup(), flag_random_seed, free(), gcc_assert, i, NULL, scan(), sscanf(), strncmp(), xstrdup(), and is::y.

Referenced by compute_checksum().

int coverage_counter_alloc ( unsigned  counter,
unsigned  num 
)

Definition at line 366 of file coverage.c.

Referenced by branch_prob(), and instrument_values().

void coverage_end_function ( void   ) 

Definition at line 561 of file coverage.c.

Referenced by branch_prob(), and rest_of_clean_state().

void coverage_finish ( void   ) 

Definition at line 965 of file coverage.c.

Referenced by compile_file().

void coverage_init ( const char *  filename  ) 

Definition at line 944 of file coverage.c.

Referenced by compile_file().

static void create_coverage ( void   )  [static]

gcov_type* get_coverage_counts ( unsigned  counter,
unsigned  expected,
const struct gcov_ctr_summary **  summary 
)

Definition at line 309 of file coverage.c.

Referenced by compute_value_histograms(), and get_exec_counts().

static GTY ( ()   )  [static]

Definition at line 100 of file coverage.c.

References counts_entry::ctr, and counts_entry::ident.

static void htab_counts_entry_del ( void of  )  [static]

Definition at line 143 of file coverage.c.

References counts_entry::counts, and free().

Referenced by read_counts_file().

static int htab_counts_entry_eq ( const void of1,
const void of2 
) [static]

Definition at line 134 of file coverage.c.

References counts_entry::ctr, and counts_entry::ident.

Referenced by read_counts_file().

static void read_counts_file ( void   )  [static]

rtx rtl_coverage_counter_ref ( unsigned  counter,
unsigned  no 
)

tree tree_coverage_counter_ref ( unsigned  counter,
unsigned  no 
)


Variable Documentation

char* bbg_file_name [static]

Definition at line 89 of file coverage.c.

unsigned bbg_file_opened [static]

Definition at line 90 of file coverage.c.

Referenced by coverage_begin_output(), coverage_end_function(), and coverage_finish().

int bbg_function_announced [static]

Definition at line 91 of file coverage.c.

Referenced by coverage_begin_output(), and coverage_end_function().

htab_t counts_hash = NULL [static]

Definition at line 97 of file coverage.c.

Referenced by get_coverage_counts(), and read_counts_file().

char* da_file_name [static]

Definition at line 94 of file coverage.c.

unsigned fn_b_ctrs[GCOV_COUNTERS] [static]

unsigned fn_ctr_mask [static]

Definition at line 84 of file coverage.c.

Referenced by coverage_counter_alloc(), and coverage_end_function().

unsigned fn_n_ctrs[GCOV_COUNTERS] [static]

Definition at line 75 of file coverage.c.

Definition at line 76 of file coverage.c.

unsigned no_coverage = 0 [static]

Definition at line 77 of file coverage.c.

Referenced by coverage_begin_output(), coverage_counter_alloc(), and create_coverage().

unsigned prg_ctr_mask [static]

unsigned prg_n_ctrs[GCOV_COUNTERS] [static]


Generated on Wed Apr 8 14:20:41 2009 for Open64 by  doxygen 1.5.6