Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
gcov.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  gcov_fn_info
 
struct  gcov_ctr_info
 
struct  gcov_info
 
struct  gcov_link
 

Macros

#define GCOV_H   GCOV_H
 
#define GCOV_COUNTERS   5
 
#define GCOV_DATA_MAGIC   ((unsigned int) 0x67636461)
 
#define GCOV_TAG_FUNCTION   ((unsigned int) 0x01000000)
 
#define GCOV_TAG_COUNTER_BASE   ((unsigned int) 0x01a10000)
 
#define GCOV_TAG_FOR_COUNTER(count)   (GCOV_TAG_COUNTER_BASE + ((unsigned int) (count) << 17))
 

Typedefs

typedef long long gcov_type
 

Enumerations

enum  gcov_action { GCOV_ADD, GCOV_REMOVE }
 

Functions

void gcov_event (enum gcov_action action, struct gcov_info *info)
 
void gcov_enable_events (void)
 
struct gcov_iteratorgcov_iter_new (struct gcov_info *info)
 
void gcov_iter_free (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)
 
struct gcov_infogcov_iter_get_info (struct gcov_iterator *iter)
 
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)
 

Variables

struct gcov_link gcov_link []
 

Macro Definition Documentation

#define GCOV_COUNTERS   5

Definition at line 24 of file gcov.h.

#define GCOV_DATA_MAGIC   ((unsigned int) 0x67636461)

Definition at line 25 of file gcov.h.

#define GCOV_H   GCOV_H

Definition at line 15 of file gcov.h.

#define GCOV_TAG_COUNTER_BASE   ((unsigned int) 0x01a10000)

Definition at line 27 of file gcov.h.

#define GCOV_TAG_FOR_COUNTER (   count)    (GCOV_TAG_COUNTER_BASE + ((unsigned int) (count) << 17))

Definition at line 28 of file gcov.h.

#define GCOV_TAG_FUNCTION   ((unsigned int) 0x01000000)

Definition at line 26 of file gcov.h.

Typedef Documentation

typedef long long gcov_type

Definition at line 34 of file gcov.h.

Enumeration Type Documentation

Enumerator:
GCOV_ADD 
GCOV_REMOVE 

Definition at line 93 of file gcov.h.

Function Documentation

void gcov_enable_events ( void  )

gcov_enable_events - enable event reporting through gcov_event()

Turn on reporting of profiling data load/unload-events through the gcov_event() callback. Also replay all previous events once. This function is needed because some events are potentially generated too early for the callback implementation to handle them initially.

Definition at line 92 of file base.c.

void gcov_event ( enum gcov_action  action,
struct gcov_info info 
)

Definition at line 733 of file fs.c.

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

Definition at line 25 of file gcc_3_4.c.