HPCToolkit
function-entries.cpp File Reference
#include <stdio.h>
#include <unistd.h>
#include <string>
#include "code-ranges.h"
#include "function-entries.h"
#include "process-ranges.h"
#include "intervals.h"
#include "server.h"
#include <inttypes.h>
#include <map>
#include <set>
Include dependency graph for function-entries.cpp:

Go to the source code of this file.

Classes

class  Function
 

Macros

#define __STDC_FORMAT_MACROS
 

Typedefs

typedef map< void *, Function * > FunctionSet
 
typedef set< void * > ExcludedFunctionSet
 

Functions

static void new_function_entry (void *addr, string *comment, bool isvisible, int call_count)
 
static void dump_function_entry (void *addr, const char *comment)
 
void function_entries_reinit (void)
 
void exclude_function_entry (void *addr)
 
void dump_reachable_functions ()
 
void add_stripped_function_entry (void *addr, int call_count)
 
bool query_function_entry (void *addr)
 
void add_function_entry (void *addr, const string *comment, bool isvisible, int call_count)
 
void entries_in_range (void *start, void *end, vector< void *> &result)
 
bool contains_function_entry (void *address)
 
long num_function_entries (void)
 
int is_possible_fn (void *addr)
 
int inside_protected_range (void *addr)
 
void add_protected_range (void *start, void *end)
 

Variables

static FunctionSet function_entries
 
static ExcludedFunctionSet excluded_function_entries
 
static intervals cbranges
 
static long num_entries_total = 0
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

Definition at line 61 of file function-entries.cpp.

Typedef Documentation

◆ ExcludedFunctionSet

typedef set<void*> ExcludedFunctionSet

Definition at line 100 of file function-entries.cpp.

◆ FunctionSet

typedef map<void*,Function*> FunctionSet

Definition at line 99 of file function-entries.cpp.

Function Documentation

◆ add_function_entry()

void add_function_entry ( void *  addr,
const string *  comment,
bool  isvisible,
int  call_count 
)

Definition at line 206 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_protected_range()

void add_protected_range ( void *  start,
void *  end 
)

Definition at line 317 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ add_stripped_function_entry()

void add_stripped_function_entry ( void *  addr,
int  call_count 
)

Definition at line 185 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains_function_entry()

bool contains_function_entry ( void *  address)

Definition at line 244 of file function-entries.cpp.

Here is the caller graph for this function:

◆ dump_function_entry()

static void dump_function_entry ( void *  addr,
const char *  comment 
)
static

Definition at line 266 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump_reachable_functions()

void dump_reachable_functions ( )

Definition at line 142 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ entries_in_range()

void entries_in_range ( void *  start,
void *  end,
vector< void *> &  result 
)

Definition at line 227 of file function-entries.cpp.

Here is the caller graph for this function:

◆ exclude_function_entry()

void exclude_function_entry ( void *  addr)

Definition at line 135 of file function-entries.cpp.

◆ function_entries_reinit()

void function_entries_reinit ( void  )

Definition at line 118 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ inside_protected_range()

int inside_protected_range ( void *  addr)

Definition at line 305 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_possible_fn()

int is_possible_fn ( void *  addr)

Definition at line 297 of file function-entries.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ new_function_entry()

static void new_function_entry ( void *  addr,
string *  comment,
bool  isvisible,
int  call_count 
)
static

Definition at line 289 of file function-entries.cpp.

Here is the caller graph for this function:

◆ num_function_entries()

long num_function_entries ( void  )

Definition at line 252 of file function-entries.cpp.

Here is the caller graph for this function:

◆ query_function_entry()

bool query_function_entry ( void *  addr)

Definition at line 196 of file function-entries.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ cbranges

intervals cbranges
static

Definition at line 105 of file function-entries.cpp.

◆ excluded_function_entries

ExcludedFunctionSet excluded_function_entries
static

Definition at line 103 of file function-entries.cpp.

◆ function_entries

FunctionSet function_entries
static

Definition at line 102 of file function-entries.cpp.

◆ num_entries_total

long num_entries_total = 0
static

Definition at line 107 of file function-entries.cpp.