HPCToolkit
loadmap.c File Reference
#include <sys/time.h>
#include "cct.h"
#include "loadmap.h"
#include "fnbounds_interface.h"
#include "fnbounds_file_header.h"
#include "hpcrun_stats.h"
#include "sample_event.h"
#include "epoch.h"
#include <messages/messages.h>
#include <lib/prof-lean/hpcfmt.h>
#include <lib/prof-lean/spinlock.h>
Include dependency graph for loadmap.c:

Go to the source code of this file.

Macros

#define LOADMAP_DEBUG   0
 
#define UW_RECIPE_MAP_DEBUG   0
 

Functions

void hpcrun_loadmap_notify_register (loadmap_notify_t *n)
 
static void hpcrun_loadmap_notify_map (void *start, void *end)
 
static void hpcrun_loadmap_notify_unmap (void *start, void *end)
 
dso_info_thpcrun_dso_new ()
 
dso_info_thpcrun_dso_make (const char *name, void **table, struct fnbounds_file_header *fh, void *startaddr, void *endaddr, unsigned long map_size)
 
void hpcrun_dsoList_dump (dso_info_t *dl_list)
 
void hpcrun_dso_dump (dso_info_t *x)
 
load_module_thpcrun_loadModule_new (const char *name)
 
hpcrun_loadmap_thpcrun_loadmap_new ()
 
void hpcrun_loadmap_init (hpcrun_loadmap_t *x)
 
void hpcrun_loadmap_print (hpcrun_loadmap_t *loadmap)
 
load_module_thpcrun_loadmap_findByAddr (void *begin, void *end)
 
load_module_thpcrun_loadmap_findByName (const char *name)
 
load_module_thpcrun_loadmap_findById (uint16_t id)
 
const char * hpcrun_loadmap_findLoadName (const char *name)
 
static void hpcrun_loadmap_pushFront (load_module_t *lm)
 
load_module_thpcrun_loadmap_map (dso_info_t *dso)
 
void hpcrun_loadmap_unmap (load_module_t *lm)
 
uint16_t hpcrun_loadModule_add (const char *name)
 
void hpcrun_initLoadmap ()
 
hpcrun_loadmap_thpcrun_getLoadmap ()
 

Variables

static hpcrun_loadmap_t s_loadmap
 
static hpcrun_loadmap_ts_loadmap_ptr = NULL
 
static dso_info_ts_dso_free_list = NULL
 
static loadmap_notify_tnotification_recipients = NULL
 

Macro Definition Documentation

◆ LOADMAP_DEBUG

#define LOADMAP_DEBUG   0

Definition at line 61 of file loadmap.c.

◆ UW_RECIPE_MAP_DEBUG

#define UW_RECIPE_MAP_DEBUG   0

Definition at line 63 of file loadmap.c.

Function Documentation

◆ hpcrun_dso_dump()

void hpcrun_dso_dump ( dso_info_t x)

Definition at line 183 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_dso_make()

dso_info_t* hpcrun_dso_make ( const char *  name,
void **  table,
struct fnbounds_file_header fh,
void *  startaddr,
void *  endaddr,
unsigned long  map_size 
)

Definition at line 130 of file loadmap.c.

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

◆ hpcrun_dso_new()

dso_info_t* hpcrun_dso_new ( )

Definition at line 108 of file loadmap.c.

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

◆ hpcrun_dsoList_dump()

void hpcrun_dsoList_dump ( dso_info_t dl_list)

Definition at line 174 of file loadmap.c.

Here is the call graph for this function:

◆ hpcrun_getLoadmap()

hpcrun_loadmap_t* hpcrun_getLoadmap ( )

Definition at line 501 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_initLoadmap()

void hpcrun_initLoadmap ( )

Definition at line 489 of file loadmap.c.

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

◆ hpcrun_loadmap_findByAddr()

load_module_t* hpcrun_loadmap_findByAddr ( void *  begin,
void *  end 
)

Definition at line 261 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_findById()

load_module_t* hpcrun_loadmap_findById ( uint16_t  id)

Definition at line 301 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_findByName()

load_module_t* hpcrun_loadmap_findByName ( const char *  name)

Definition at line 287 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_findLoadName()

const char* hpcrun_loadmap_findLoadName ( const char *  name)

Definition at line 315 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_init()

void hpcrun_loadmap_init ( hpcrun_loadmap_t x)

Definition at line 237 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_map()

load_module_t* hpcrun_loadmap_map ( dso_info_t dso)

Definition at line 389 of file loadmap.c.

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

◆ hpcrun_loadmap_new()

hpcrun_loadmap_t* hpcrun_loadmap_new ( )

Definition at line 221 of file loadmap.c.

Here is the call graph for this function:

◆ hpcrun_loadmap_notify_map()

static void hpcrun_loadmap_notify_map ( void *  start,
void *  end 
)
static

Definition at line 82 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_notify_register()

void hpcrun_loadmap_notify_register ( loadmap_notify_t n)

Definition at line 74 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_notify_unmap()

static void hpcrun_loadmap_notify_unmap ( void *  start,
void *  end 
)
static

Definition at line 93 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_print()

void hpcrun_loadmap_print ( hpcrun_loadmap_t loadmap)

Definition at line 251 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_pushFront()

static void hpcrun_loadmap_pushFront ( load_module_t lm)
static

Definition at line 332 of file loadmap.c.

Here is the caller graph for this function:

◆ hpcrun_loadmap_unmap()

void hpcrun_loadmap_unmap ( load_module_t lm)

Definition at line 433 of file loadmap.c.

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

◆ hpcrun_loadModule_add()

uint16_t hpcrun_loadModule_add ( const char *  name)

Definition at line 476 of file loadmap.c.

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

◆ hpcrun_loadModule_new()

load_module_t* hpcrun_loadModule_new ( const char *  name)

Definition at line 196 of file loadmap.c.

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

Variable Documentation

◆ notification_recipients

loadmap_notify_t* notification_recipients = NULL
static

Definition at line 71 of file loadmap.c.

◆ s_dso_free_list

dso_info_t* s_dso_free_list = NULL
static

Definition at line 68 of file loadmap.c.

◆ s_loadmap

hpcrun_loadmap_t s_loadmap
static

Definition at line 65 of file loadmap.c.

◆ s_loadmap_ptr

hpcrun_loadmap_t* s_loadmap_ptr = NULL
static

Definition at line 66 of file loadmap.c.