HPCToolkit
NameMappings.cpp File Reference
#include <iostream>
#include <map>
#include <string.h>
#include <lib/support/dictionary.h>
#include <lib/prof/NameMappings.hpp>
Include dependency graph for NameMappings.cpp:

Go to the source code of this file.

Classes

class  NameMapCompare
 
struct  NameMapping
 
struct  ProcedureStatusMapping
 

Typedefs

typedef std::map< const char *, const char *, NameMapCompareNameMappings_t
 
typedef std::map< const char *, int > ProcedureStatusMapping_t
 

Functions

static void normalize_name_load_renamings ()
 
static const char * normalize_name_rename (const char *in, int &fake_procedure)
 
const char * normalize_name (const char *in, int &fake_procedure)
 

Variables

const char * PROGRAM_ROOT = "<program root>"
 
const char * THREAD_ROOT = "<thread root>"
 
const char * OMP_IDLE = "<omp idle>"
 
const char * OMP_OVERHEAD = "<omp overhead>"
 
const char * OMP_BARRIER_WAIT = "<omp barrier wait>"
 
const char * OMP_TASK_WAIT = "<omp task wait>"
 
const char * OMP_MUTEX_WAIT = "<omp mutex wait>"
 
const char * NO_THREAD_ROOT = "<no thread>"
 
const char * MONITOR_DATA_FIRST_TOUCH = "<first touch>"
 
const char * DATACENTRIC_ROOT = "<datacentric>"
 
const char * DATACENTRIC_DYNAMIC = "<heap allocation>"
 
const char * DATACENTRIC_STATIC = "<static variable>"
 
const char * DATACENTRIC_UNKNOWN = "<unknown attribute>"
 
const int NO_FAKE = 0
 
const int FAKE_PROCEDURE = 1
 
const int FAKE_ROOT = 2
 
static NameMapping renamingTable []
 
static ProcedureStatusMapping fakeProcedureTable []
 
static NameMappings_t renamingMap
 
static ProcedureStatusMapping_t fakeProcedureMap
 

Typedef Documentation

◆ NameMappings_t

typedef std::map<const char *, const char *, NameMapCompare> NameMappings_t

Definition at line 63 of file NameMappings.cpp.

◆ ProcedureStatusMapping_t

typedef std::map<const char *, int> ProcedureStatusMapping_t

Definition at line 64 of file NameMappings.cpp.

Function Documentation

◆ normalize_name()

const char* normalize_name ( const char *  in,
int &  fake_procedure 
)

Definition at line 185 of file NameMappings.cpp.

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

◆ normalize_name_load_renamings()

static void normalize_name_load_renamings ( )
static

Definition at line 141 of file NameMappings.cpp.

Here is the caller graph for this function:

◆ normalize_name_rename()

static const char* normalize_name_rename ( const char *  in,
int &  fake_procedure 
)
static

Definition at line 157 of file NameMappings.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ DATACENTRIC_DYNAMIC

const char* DATACENTRIC_DYNAMIC = "<heap allocation>"

Definition at line 43 of file NameMappings.cpp.

◆ DATACENTRIC_ROOT

const char* DATACENTRIC_ROOT = "<datacentric>"

Definition at line 42 of file NameMappings.cpp.

◆ DATACENTRIC_STATIC

const char* DATACENTRIC_STATIC = "<static variable>"

Definition at line 44 of file NameMappings.cpp.

◆ DATACENTRIC_UNKNOWN

const char* DATACENTRIC_UNKNOWN = "<unknown attribute>"

Definition at line 45 of file NameMappings.cpp.

◆ FAKE_PROCEDURE

const int FAKE_PROCEDURE = 1

Definition at line 48 of file NameMappings.cpp.

◆ FAKE_ROOT

const int FAKE_ROOT = 2

Definition at line 49 of file NameMappings.cpp.

◆ fakeProcedureMap

ProcedureStatusMapping_t fakeProcedureMap
static

Definition at line 132 of file NameMappings.cpp.

◆ fakeProcedureTable

ProcedureStatusMapping fakeProcedureTable[]
static
Initial value:
= {
{THREAD_ROOT, FAKE_PROCEDURE},
{GUARD_NAME, FAKE_PROCEDURE},
{"<partial call paths>", FAKE_PROCEDURE},
{DATACENTRIC_DYNAMIC, FAKE_PROCEDURE},
{DATACENTRIC_STATIC, FAKE_PROCEDURE},
}
const char * PROGRAM_ROOT
#define GUARD_NAME
Definition: dictionary.h:50
const char * THREAD_ROOT
const int FAKE_ROOT
const char * DATACENTRIC_DYNAMIC
const int FAKE_PROCEDURE
const char * DATACENTRIC_STATIC
const char * DATACENTRIC_ROOT

Definition at line 121 of file NameMappings.cpp.

◆ MONITOR_DATA_FIRST_TOUCH

const char* MONITOR_DATA_FIRST_TOUCH = "<first touch>"

Definition at line 40 of file NameMappings.cpp.

◆ NO_FAKE

const int NO_FAKE = 0

Definition at line 47 of file NameMappings.cpp.

◆ NO_THREAD_ROOT

const char* NO_THREAD_ROOT = "<no thread>"

Definition at line 38 of file NameMappings.cpp.

◆ OMP_BARRIER_WAIT

const char* OMP_BARRIER_WAIT = "<omp barrier wait>"

Definition at line 35 of file NameMappings.cpp.

◆ OMP_IDLE

const char* OMP_IDLE = "<omp idle>"

Definition at line 33 of file NameMappings.cpp.

◆ OMP_MUTEX_WAIT

const char* OMP_MUTEX_WAIT = "<omp mutex wait>"

Definition at line 37 of file NameMappings.cpp.

◆ OMP_OVERHEAD

const char* OMP_OVERHEAD = "<omp overhead>"

Definition at line 34 of file NameMappings.cpp.

◆ OMP_TASK_WAIT

const char* OMP_TASK_WAIT = "<omp task wait>"

Definition at line 36 of file NameMappings.cpp.

◆ PROGRAM_ROOT

const char* PROGRAM_ROOT = "<program root>"

Definition at line 30 of file NameMappings.cpp.

◆ renamingMap

NameMappings_t renamingMap
static

Definition at line 131 of file NameMappings.cpp.

◆ renamingTable

NameMapping renamingTable[]
static

Definition at line 82 of file NameMappings.cpp.

◆ THREAD_ROOT

const char* THREAD_ROOT = "<thread root>"

Definition at line 31 of file NameMappings.cpp.