HPCToolkit
cct2metrics.c File Reference
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <messages/messages.h>
#include <memory/hpcrun-malloc.h>
#include <hpcrun/metrics.h>
#include <cct/cct.h>
#include <hpcrun/cct2metrics.h>
#include <hpcrun/thread_data.h>
#include <lib/prof-lean/splay-macros.h>
Include dependency graph for cct2metrics.c:

Go to the source code of this file.

Classes

struct  cct2metrics_t
 

Macros

#define THREAD_LOCAL_MAP()   TD_GET(core_profile_trace_data.cct2metrics_map)
 

Functions

void hpcrun_cct2metrics_init (cct2metrics_t **map)
 
void help_splay_tree_dump (cct2metrics_t *tree, int indent)
 
void splay_tree_dump (cct2metrics_t *map)
 
static cct2metrics_tsplay (cct2metrics_t *map, cct_node_id_t node)
 
static cct2metrics_tcct2metrics_new (cct_node_id_t node, metric_set_t *metrics)
 
metric_set_thpcrun_reify_metric_set (cct_node_id_t cct_id)
 
metric_set_thpcrun_get_metric_set_specific (cct2metrics_t **map, cct_node_id_t cct_id)
 
metric_set_thpcrun_get_metric_set (cct_node_id_t cct_id)
 
bool hpcrun_has_metric_set (cct_node_id_t cct_id)
 
void cct2metrics_assoc (cct_node_id_t node, metric_set_t *metrics)
 

Macro Definition Documentation

◆ THREAD_LOCAL_MAP

#define THREAD_LOCAL_MAP ( )    TD_GET(core_profile_trace_data.cct2metrics_map)

Definition at line 39 of file cct2metrics.c.

Function Documentation

◆ cct2metrics_assoc()

void cct2metrics_assoc ( cct_node_id_t  node,
metric_set_t metrics 
)

Definition at line 181 of file cct2metrics.c.

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

◆ cct2metrics_new()

static cct2metrics_t* cct2metrics_new ( cct_node_id_t  node,
metric_set_t metrics 
)
static

Definition at line 96 of file cct2metrics.c.

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

◆ help_splay_tree_dump()

void help_splay_tree_dump ( cct2metrics_t tree,
int  indent 
)

Definition at line 63 of file cct2metrics.c.

Here is the caller graph for this function:

◆ hpcrun_cct2metrics_init()

void hpcrun_cct2metrics_init ( cct2metrics_t **  map)

Definition at line 52 of file cct2metrics.c.

Here is the caller graph for this function:

◆ hpcrun_get_metric_set()

metric_set_t* hpcrun_get_metric_set ( cct_node_id_t  cct_id)

Definition at line 163 of file cct2metrics.c.

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

◆ hpcrun_get_metric_set_specific()

metric_set_t* hpcrun_get_metric_set_specific ( cct2metrics_t **  map,
cct_node_id_t  cct_id 
)

Definition at line 135 of file cct2metrics.c.

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

◆ hpcrun_has_metric_set()

bool hpcrun_has_metric_set ( cct_node_id_t  cct_id)

Definition at line 172 of file cct2metrics.c.

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

◆ hpcrun_reify_metric_set()

metric_set_t* hpcrun_reify_metric_set ( cct_node_id_t  cct_id)

Definition at line 115 of file cct2metrics.c.

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

◆ splay()

static cct2metrics_t* splay ( cct2metrics_t map,
cct_node_id_t  node 
)
static

Definition at line 87 of file cct2metrics.c.

Here is the caller graph for this function:

◆ splay_tree_dump()

void splay_tree_dump ( cct2metrics_t map)

Definition at line 79 of file cct2metrics.c.

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