Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gcc_3_4.c File Reference
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/seq_file.h>
#include <linux/vmalloc.h>
#include "gcov.h"

Go to the source code of this file.

Data Structures

struct  type_info
 
struct  gcov_iterator
 

Macros

#define RECORD_FILE_MAGIC   0
 
#define RECORD_GCOV_VERSION   1
 
#define RECORD_TIME_STAMP   2
 
#define RECORD_FUNCTION_TAG   3
 
#define RECORD_FUNCTON_TAG_LEN   4
 
#define RECORD_FUNCTION_IDENT   5
 
#define RECORD_FUNCTION_CHECK   6
 
#define RECORD_COUNT_TAG   7
 
#define RECORD_COUNT_LEN   8
 
#define RECORD_COUNT   9
 

Functions

void gcov_info_reset (struct gcov_info *info)
 
int gcov_info_is_compatible (struct gcov_info *info1, struct gcov_info *info2)
 
void gcov_info_add (struct gcov_info *dest, struct gcov_info *source)
 
struct gcov_infogcov_info_dup (struct gcov_info *info)
 
void gcov_info_free (struct gcov_info *info)
 
struct gcov_iteratorgcov_iter_new (struct gcov_info *info)
 
void gcov_iter_free (struct gcov_iterator *iter)
 
struct gcov_infogcov_iter_get_info (struct gcov_iterator *iter)
 
void gcov_iter_start (struct gcov_iterator *iter)
 
int gcov_iter_next (struct gcov_iterator *iter)
 
int gcov_iter_write (struct gcov_iterator *iter, struct seq_file *seq)
 

Variables

struct gcov_link gcov_link []
 

Macro Definition Documentation

#define RECORD_COUNT   9

Definition at line 309 of file gcc_3_4.c.

#define RECORD_COUNT_LEN   8

Definition at line 308 of file gcc_3_4.c.

#define RECORD_COUNT_TAG   7

Definition at line 307 of file gcc_3_4.c.

#define RECORD_FILE_MAGIC   0

Definition at line 300 of file gcc_3_4.c.

#define RECORD_FUNCTION_CHECK   6

Definition at line 306 of file gcc_3_4.c.

#define RECORD_FUNCTION_IDENT   5

Definition at line 305 of file gcc_3_4.c.

#define RECORD_FUNCTION_TAG   3

Definition at line 303 of file gcc_3_4.c.

#define RECORD_FUNCTON_TAG_LEN   4

Definition at line 304 of file gcc_3_4.c.

#define RECORD_GCOV_VERSION   1

Definition at line 301 of file gcc_3_4.c.

#define RECORD_TIME_STAMP   2

Definition at line 302 of file gcc_3_4.c.

Function Documentation

void gcov_info_add ( struct gcov_info dest,
struct gcov_info source 
)

gcov_info_add - add up profiling data : profiling data set to which data is added : profiling data set which is added

Adds profiling counts of to .

Definition at line 86 of file gcc_3_4.c.

struct gcov_info* gcov_info_dup ( struct gcov_info info)
read

gcov_info_dup - duplicate profiling data set : profiling data set to duplicate

Return newly allocated duplicate on success, NULL on error.

Definition at line 124 of file gcc_3_4.c.

void gcov_info_free ( struct gcov_info info)

gcov_info_free - release memory for profiling data set duplicate : profiling data set duplicate to free

Definition at line 172 of file gcc_3_4.c.

int gcov_info_is_compatible ( struct gcov_info info1,
struct gcov_info info2 
)

gcov_info_is_compatible - check if profiling data can be added : first profiling data set : second profiling data set

Returns non-zero if profiling data can be added, zero otherwise.

Definition at line 74 of file gcc_3_4.c.

void gcov_info_reset ( struct gcov_info info)

gcov_info_reset - reset profiling data to zero : profiling data set

Definition at line 56 of file gcc_3_4.c.

void gcov_iter_free ( struct gcov_iterator iter)

gcov_iter_free - release memory for iterator : file iterator to free

Definition at line 264 of file gcc_3_4.c.

struct gcov_info* gcov_iter_get_info ( struct gcov_iterator iter)
read

gcov_iter_get_info - return profiling data set for given file iterator : file iterator

Definition at line 273 of file gcc_3_4.c.

struct gcov_iterator* gcov_iter_new ( struct gcov_info info)
read

gcov_iter_new - allocate and initialize profiling data iterator : profiling data set to be iterated

Return file iterator on success, NULL otherwise.

Definition at line 247 of file gcc_3_4.c.

int gcov_iter_next ( struct gcov_iterator iter)

gcov_iter_next - advance file iterator to next logical record : file iterator

Return zero if new position is valid, non-zero if iterator has reached end.

Definition at line 317 of file gcc_3_4.c.

void gcov_iter_start ( struct gcov_iterator iter)

gcov_iter_start - reset file iterator to starting position : file iterator

Definition at line 282 of file gcc_3_4.c.

int gcov_iter_write ( struct gcov_iterator iter,
struct seq_file seq 
)

gcov_iter_write - write data for current pos to seq_file : file iterator : seq_file handle

Return zero on success, non-zero otherwise.

Definition at line 406 of file gcc_3_4.c.

Variable Documentation

Initial value:
= {
{ OBJ_TREE, "gcno" },
{ 0, NULL},
}

Definition at line 25 of file gcc_3_4.c.