GCC Middle and Back End API Reference
gcov-dump.c File Reference

Data Structures

struct  tag_format

Typedefs

typedef struct tag_format tag_format_t

Functions

static void dump_gcov_file (const char *)
static void print_prefix (const char *, unsigned, gcov_position_t)
static void print_usage (void)
static void print_version (void)
static void tag_function (const char *, unsigned, unsigned)
static void tag_blocks (const char *, unsigned, unsigned)
static void tag_arcs (const char *, unsigned, unsigned)
static void tag_lines (const char *, unsigned, unsigned)
static void tag_counters (const char *, unsigned, unsigned)
static void tag_summary (const char *, unsigned, unsigned)
static void dump_working_sets (const char *filename, const struct gcov_ctr_summary *summary)
int main (int, char **)
int main ()
static void print_prefix ()
static void dump_gcov_file ()

Variables

static int flag_dump_contents = 0
static int flag_dump_positions = 0
static int flag_dump_working_sets = 0
static struct option options []
static const tag_format_t tag_table []

Typedef Documentation

typedef struct tag_format tag_format_t

Function Documentation

static void dump_gcov_file ( const char *  )
static

Referenced by main().

static void dump_gcov_file ( )
static
     magic 
     stamp 
static void dump_working_sets ( const char *  filename,
const struct gcov_ctr_summary summary 
)
static
     Multiply the percentage by 100 to avoid float.  
         Print out the percentage using int arithmatic to avoid float.  
int main ( int  ,
char **   
)
static void print_prefix ( const char *  ,
unsigned  ,
gcov_position_t   
)
static

Referenced by tag_lines().

static void print_prefix ( )
static
static void print_usage ( void  )
static

Referenced by main(), and print_usage().

static void print_version ( void  )
static
static void tag_arcs ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static
static void tag_blocks ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static
static void tag_counters ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static
static void tag_function ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static
static void tag_lines ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static
static void tag_summary ( const char *  filename,
unsigned  tag,
unsigned  length 
)
static

Variable Documentation

int flag_dump_contents = 0
static

Referenced by main().

int flag_dump_positions = 0
static

Referenced by main().

int flag_dump_working_sets = 0
static

Referenced by main().

struct option options[]
static
Initial value:
{
{ "help", no_argument, NULL, 'h' },
{ "version", no_argument, NULL, 'v' },
{ "long", no_argument, NULL, 'l' },
{ "positions", no_argument, NULL, 'o' },
{ "working-sets", no_argument, NULL, 'w' },
{ 0, 0, 0, 0 }
}
const tag_format_t tag_table[]
static
Initial value:
{
{0, "NOP", NULL},
{0, "UNKNOWN", NULL},
{0, "COUNTERS", tag_counters},
{GCOV_TAG_FUNCTION, "FUNCTION", tag_function},
{GCOV_TAG_BLOCKS, "BLOCKS", tag_blocks},
{GCOV_TAG_ARCS, "ARCS", tag_arcs},
{GCOV_TAG_LINES, "LINES", tag_lines},
{GCOV_TAG_OBJECT_SUMMARY, "OBJECT_SUMMARY", tag_summary},
{GCOV_TAG_PROGRAM_SUMMARY, "PROGRAM_SUMMARY", tag_summary},
{0, NULL, NULL}
}