GCC Middle and Back End API Reference
gcov-dump.c File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "version.h"
#include "intl.h"
#include "diagnostic.h"
#include <getopt.h>
#include "gcov-io.h"
#include "gcov-io.c"
Include dependency graph for gcov-dump.c:

Data Structures

struct  tag_format

Macros

#define IN_GCOV   (-1)

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 []

Macro Definition Documentation

#define IN_GCOV   (-1)

Dump a gcov file, for debugging use. Copyright (C) 2002-2013 Free Software Foundation, Inc. Contributed by Nathan Sidwell natha.nosp@m.n@co.nosp@m.desou.nosp@m.rcer.nosp@m.y.com

Gcov is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

Gcov is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Gcov; see the file COPYING3. If not see http://www.gnu.org/licenses/.


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_ARCS, "ARCS", tag_arcs},
{GCOV_TAG_OBJECT_SUMMARY, "OBJECT_SUMMARY", tag_summary},
{GCOV_TAG_PROGRAM_SUMMARY, "PROGRAM_SUMMARY", tag_summary},
{0, NULL, NULL}
}