HPCToolkit
|
#include <stdbool.h>
#include <limits.h>
#include <include/uint.h>
#include "hpcio.h"
#include "hpcio-buffer.h"
#include "hpcfmt.h"
#include "lush/lush-support.h"
Go to the source code of this file.
Classes | |
struct | hpcrun_fmt_hdr_t |
struct | epoch_flags_bitfield |
union | epoch_flags_t |
struct | hpcrun_fmt_epochHdr_t |
struct | metric_desc_properties_t |
struct | hpcrun_metricFlags_fields |
union | hpcrun_metricFlags_t |
struct | hpcrun_metricFlags_bitfield_XXX |
union | hpcrun_metricFlags_XXX_t |
union | hpcrun_metricVal_u |
struct | metric_desc_t |
struct | metric_list_t |
struct | loadmap_entry_t |
struct | hpcrun_fmt_cct_node_t |
struct | hpctrace_hdr_flags_bitfield |
union | hpctrace_hdr_flags_t |
struct | hpctrace_fmt_hdr_t |
struct | hpctrace_fmt_datum_t |
struct | hpcmetricDB_fmt_hdr_t |
#define HPCMETRICDB_FMT_EndianLenX (sizeof(HPCMETRICDB_FMT_Endian) - 1) |
Definition at line 732 of file hpcrun-fmt.h.
#define HPCMETRICDB_FMT_MagicLenX (sizeof(HPCMETRICDB_FMT_Magic) - 1) |
Definition at line 730 of file hpcrun-fmt.h.
#define HPCMETRICDB_FMT_VersionLenX (sizeof(HPCMETRICDB_FMT_Version) - 1) |
Definition at line 731 of file hpcrun-fmt.h.
#define HPCRUN_FMT_CCTNodeId_NULL (0) |
Definition at line 497 of file hpcrun-fmt.h.
#define HPCRUN_FMT_LMId_NULL (0) |
Definition at line 523 of file hpcrun-fmt.h.
#define HPCRUN_FMT_LMIp_Flag1 (1) |
Definition at line 526 of file hpcrun-fmt.h.
#define HPCRUN_FMT_LMIp_NULL (0) |
Definition at line 525 of file hpcrun-fmt.h.
#define HPCRUN_FMT_MetricId_NULL (INT_MAX) |
Definition at line 691 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_envPath "env-path" |
Definition at line 155 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_hostid "host-id" |
Definition at line 159 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_jobId "job-id" |
Definition at line 156 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_mpiRank "mpi-rank" |
Definition at line 157 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_pid "process-id" |
Definition at line 160 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_prog "program-name" |
Definition at line 153 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_progPath "program-path" |
Definition at line 154 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_tid "thread-id" |
Definition at line 158 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_traceMaxTime "trace-max-time" |
Definition at line 163 of file hpcrun-fmt.h.
#define HPCRUN_FMT_NV_traceMinTime "trace-min-time" |
Definition at line 162 of file hpcrun-fmt.h.
#define HPCRUN_FMT_RetainIdFlag (0x1) |
Definition at line 499 of file hpcrun-fmt.h.
#define HPCTRACE_FMT_EndianLenX (sizeof(HPCTRACE_FMT_Endian) - 1) |
Definition at line 646 of file hpcrun-fmt.h.
#define HPCTRACE_FMT_FlagsLenX (sizeof(hpctrace_hdr_flags_t)) |
Definition at line 647 of file hpcrun-fmt.h.
#define HPCTRACE_FMT_MagicLenX (sizeof(HPCTRACE_FMT_Magic) - 1) |
Definition at line 644 of file hpcrun-fmt.h.
#define HPCTRACE_FMT_VersionLenX (sizeof(HPCTRACE_FMT_Version) - 1) |
Definition at line 645 of file hpcrun-fmt.h.
#define metric_property_cycles ( (metric_desc_properties_t) { .cycles = 1 } ) |
Definition at line 201 of file hpcrun-fmt.h.
#define metric_property_none ( (metric_desc_properties_t) { } ) |
Definition at line 202 of file hpcrun-fmt.h.
#define metric_property_time ( (metric_desc_properties_t) { .time = 1 } ) |
Definition at line 200 of file hpcrun-fmt.h.
#define NODE_TYPE_ALLOCATION 2 |
Definition at line 517 of file hpcrun-fmt.h.
#define NODE_TYPE_GLOBAL_VARIABLE 4 |
Definition at line 518 of file hpcrun-fmt.h.
#define NODE_TYPE_LEAF 1 |
Definition at line 516 of file hpcrun-fmt.h.
#define NODE_TYPE_MEMACCESS 8 |
Definition at line 519 of file hpcrun-fmt.h.
#define NODE_TYPE_REGULAR 0 |
Definition at line 515 of file hpcrun-fmt.h.
#define NODE_TYPE_ROOT 16 |
Definition at line 520 of file hpcrun-fmt.h.
typedef struct epoch_flags_bitfield epoch_flags_bitfield |
typedef union epoch_flags_t epoch_flags_t |
typedef struct hpcmetricDB_fmt_hdr_t hpcmetricDB_fmt_hdr_t |
typedef struct hpcrun_fmt_cct_node_t hpcrun_fmt_cct_node_t |
typedef struct hpcrun_fmt_epochHdr_t hpcrun_fmt_epochHdr_t |
typedef struct hpcrun_fmt_hdr_t hpcrun_fmt_hdr_t |
typedef struct hpcrun_metricFlags_bitfield_XXX hpcrun_metricFlags_bitfield_XXX |
typedef struct hpcrun_metricFlags_fields hpcrun_metricFlags_fields |
typedef union hpcrun_metricFlags_t hpcrun_metricFlags_t |
typedef union hpcrun_metricFlags_XXX_t hpcrun_metricFlags_XXX_t |
typedef union hpcrun_metricVal_u hpcrun_metricVal_t |
typedef struct hpctrace_fmt_datum_t hpctrace_fmt_datum_t |
typedef struct hpctrace_fmt_hdr_t hpctrace_fmt_hdr_t |
typedef struct hpctrace_hdr_flags_bitfield hpctrace_hdr_flags_bitfield |
typedef union hpctrace_hdr_flags_t hpctrace_hdr_flags_t |
typedef struct loadmap_entry_t loadmap_entry_t |
typedef metric_desc_t* metric_desc_p_t |
Definition at line 398 of file hpcrun-fmt.h.
typedef struct metric_desc_properties_t metric_desc_properties_t |
typedef struct metric_desc_t metric_desc_t |
typedef struct metric_list_t metric_list_t |
enum MetricFlags_Ty_t |
Enumerator | |
---|---|
MetricFlags_Ty_NULL | |
MetricFlags_Ty_Raw | |
MetricFlags_Ty_Final | |
MetricFlags_Ty_Derived |
Definition at line 229 of file hpcrun-fmt.h.
enum MetricFlags_ValFmt_t |
Enumerator | |
---|---|
MetricFlags_ValFmt_NULL | |
MetricFlags_ValFmt_Int | |
MetricFlags_ValFmt_Real | |
MetricFlags_ValFmt_Address |
Definition at line 248 of file hpcrun-fmt.h.
enum MetricFlags_ValTy_t |
Enumerator | |
---|---|
MetricFlags_ValTy_NULL | |
MetricFlags_ValTy_Incl | |
MetricFlags_ValTy_Excl |
Definition at line 239 of file hpcrun-fmt.h.
typedef HPCFMT_List | ( | metric_desc_t | ) |
typedef HPCFMT_List | ( | loadmap_entry_t | ) |
HPCFMT_List_declare | ( | metric_desc_t | ) |
HPCFMT_List_declare | ( | loadmap_entry_t | ) |
int hpcmetricDB_fmt_hdr_fprint | ( | hpcmetricDB_fmt_hdr_t * | hdr, |
FILE * | outfs | ||
) |
int hpcmetricDB_fmt_hdr_fread | ( | hpcmetricDB_fmt_hdr_t * | hdr, |
FILE * | infs | ||
) |
Definition at line 1000 of file hpcrun-fmt.c.
int hpcmetricDB_fmt_hdr_fwrite | ( | hpcmetricDB_fmt_hdr_t * | hdr, |
FILE * | outfs | ||
) |
Definition at line 1036 of file hpcrun-fmt.c.
int hpcrun_fmt_cct_node_fprint | ( | hpcrun_fmt_cct_node_t * | x, |
FILE * | fs, | ||
epoch_flags_t | flags, | ||
const metric_tbl_t * | metricTbl, | ||
const char * | pre | ||
) |
Definition at line 688 of file hpcrun-fmt.c.
int hpcrun_fmt_cct_node_fread | ( | hpcrun_fmt_cct_node_t * | x, |
epoch_flags_t | flags, | ||
FILE * | fs | ||
) |
Definition at line 631 of file hpcrun-fmt.c.
int hpcrun_fmt_cct_node_fwrite | ( | hpcrun_fmt_cct_node_t * | x, |
epoch_flags_t | flags, | ||
FILE * | fs | ||
) |
Definition at line 660 of file hpcrun-fmt.c.
|
inlinestatic |
|
inlinestatic |
int hpcrun_fmt_epochHdr_fprint | ( | hpcrun_fmt_epochHdr_t * | ehdr, |
FILE * | out | ||
) |
Definition at line 227 of file hpcrun-fmt.c.
int hpcrun_fmt_epochHdr_fread | ( | hpcrun_fmt_epochHdr_t * | ehdr, |
FILE * | fs, | ||
hpcfmt_alloc_fn | alloc | ||
) |
Definition at line 172 of file hpcrun-fmt.c.
void hpcrun_fmt_epochHdr_free | ( | hpcrun_fmt_epochHdr_t * | ehdr, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 242 of file hpcrun-fmt.c.
int hpcrun_fmt_epochHdr_fwrite | ( | FILE * | out, |
epoch_flags_t | flags, | ||
uint64_t | measurementGranularity, | ||
... | |||
) |
Definition at line 201 of file hpcrun-fmt.c.
int hpcrun_fmt_hdr_fprint | ( | hpcrun_fmt_hdr_t * | hdr, |
FILE * | outf | ||
) |
Definition at line 144 of file hpcrun-fmt.c.
int hpcrun_fmt_hdr_fread | ( | hpcrun_fmt_hdr_t * | hdr, |
FILE * | infs, | ||
hpcfmt_alloc_fn | alloc | ||
) |
Definition at line 93 of file hpcrun-fmt.c.
void hpcrun_fmt_hdr_free | ( | hpcrun_fmt_hdr_t * | hdr, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 159 of file hpcrun-fmt.c.
int hpcrun_fmt_hdr_fwrite | ( | FILE * | outfs, |
... | |||
) |
Definition at line 126 of file hpcrun-fmt.c.
int hpcrun_fmt_lip_fprint | ( | lush_lip_t * | x, |
FILE * | fs, | ||
const char * | pre | ||
) |
Definition at line 770 of file hpcrun-fmt.c.
int hpcrun_fmt_lip_fread | ( | lush_lip_t * | x, |
FILE * | fs | ||
) |
Definition at line 748 of file hpcrun-fmt.c.
int hpcrun_fmt_lip_fwrite | ( | lush_lip_t * | x, |
FILE * | fs | ||
) |
Definition at line 759 of file hpcrun-fmt.c.
int hpcrun_fmt_loadmap_fprint | ( | loadmap_t * | loadmap, |
FILE * | outfs | ||
) |
Definition at line 561 of file hpcrun-fmt.c.
int hpcrun_fmt_loadmap_fread | ( | loadmap_t * | loadmap, |
FILE * | infs, | ||
hpcfmt_alloc_fn | alloc | ||
) |
Definition at line 531 of file hpcrun-fmt.c.
void hpcrun_fmt_loadmap_free | ( | loadmap_t * | loadmap, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 575 of file hpcrun-fmt.c.
int hpcrun_fmt_loadmap_fwrite | ( | loadmap_t * | loadmap, |
FILE * | outfs | ||
) |
int hpcrun_fmt_loadmapEntry_fprint | ( | loadmap_entry_t * | x, |
FILE * | outfs, | ||
const char * | pre | ||
) |
int hpcrun_fmt_loadmapEntry_fread | ( | loadmap_entry_t * | x, |
FILE * | infs, | ||
hpcfmt_alloc_fn | alloc | ||
) |
Definition at line 589 of file hpcrun-fmt.c.
void hpcrun_fmt_loadmapEntry_free | ( | loadmap_entry_t * | x, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 619 of file hpcrun-fmt.c.
int hpcrun_fmt_loadmapEntry_fwrite | ( | loadmap_entry_t * | x, |
FILE * | outfs | ||
) |
Definition at line 600 of file hpcrun-fmt.c.
double hpcrun_fmt_metric_get_value | ( | metric_desc_t | metric_desc, |
hpcrun_metricVal_t | metric | ||
) |
void hpcrun_fmt_metric_set_value | ( | metric_desc_t | metric_desc, |
hpcrun_metricVal_t * | metric, | ||
double | value | ||
) |
void hpcrun_fmt_metric_set_value_int | ( | hpcrun_metricFlags_t * | flags, |
hpcrun_metricVal_t * | metric, | ||
int | value | ||
) |
Definition at line 501 of file hpcrun-fmt.c.
void hpcrun_fmt_metric_set_value_real | ( | hpcrun_metricFlags_t * | flags, |
hpcrun_metricVal_t * | metric, | ||
double | value | ||
) |
Definition at line 511 of file hpcrun-fmt.c.
int hpcrun_fmt_metricDesc_fprint | ( | metric_desc_t * | x, |
metric_aux_info_t * | aux_info, | ||
FILE * | outfs, | ||
const char * | pre | ||
) |
Definition at line 432 of file hpcrun-fmt.c.
int hpcrun_fmt_metricDesc_fread | ( | metric_desc_t * | x, |
metric_aux_info_t * | aux_info, | ||
FILE * | infs, | ||
double | fmtVersion, | ||
hpcfmt_alloc_fn | alloc | ||
) |
void hpcrun_fmt_metricDesc_free | ( | metric_desc_t * | x, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 451 of file hpcrun-fmt.c.
int hpcrun_fmt_metricDesc_fwrite | ( | metric_desc_t * | x, |
metric_aux_info_t * | aux_info, | ||
FILE * | outfs | ||
) |
Definition at line 412 of file hpcrun-fmt.c.
int hpcrun_fmt_metricTbl_fprint | ( | metric_tbl_t * | metrics, |
metric_aux_info_t * | aux_info, | ||
FILE * | out | ||
) |
Definition at line 334 of file hpcrun-fmt.c.
int hpcrun_fmt_metricTbl_fread | ( | metric_tbl_t * | metric_tbl, |
metric_aux_info_t ** | aux_info, | ||
FILE * | in, | ||
double | fmtVersion, | ||
hpcfmt_alloc_fn | alloc | ||
) |
Definition at line 283 of file hpcrun-fmt.c.
void hpcrun_fmt_metricTbl_free | ( | metric_tbl_t * | metric_tbl, |
hpcfmt_free_fn | dealloc | ||
) |
Definition at line 348 of file hpcrun-fmt.c.
int hpcrun_fmt_metricTbl_fwrite | ( | metric_desc_p_tbl_t * | metric_tbl, |
metric_aux_info_t * | aux_info, | ||
FILE * | out | ||
) |
Definition at line 307 of file hpcrun-fmt.c.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
int hpctrace_fmt_datum_fprint | ( | hpctrace_fmt_datum_t * | x, |
hpctrace_hdr_flags_t | flags, | ||
FILE * | fs | ||
) |
int hpctrace_fmt_datum_fread | ( | hpctrace_fmt_datum_t * | x, |
hpctrace_hdr_flags_t | flags, | ||
FILE * | fs | ||
) |
Definition at line 901 of file hpcrun-fmt.c.
int hpctrace_fmt_datum_fwrite | ( | hpctrace_fmt_datum_t * | x, |
hpctrace_hdr_flags_t | flags, | ||
FILE * | outfs | ||
) |
Definition at line 965 of file hpcrun-fmt.c.
int hpctrace_fmt_datum_outbuf | ( | hpctrace_fmt_datum_t * | x, |
hpctrace_hdr_flags_t | flags, | ||
hpcio_outbuf_t * | outbuf | ||
) |
Definition at line 927 of file hpcrun-fmt.c.
int hpctrace_fmt_hdr_fprint | ( | hpctrace_fmt_hdr_t * | hdr, |
FILE * | fs | ||
) |
int hpctrace_fmt_hdr_fread | ( | hpctrace_fmt_hdr_t * | hdr, |
FILE * | infs | ||
) |
Definition at line 795 of file hpcrun-fmt.c.
int hpctrace_fmt_hdr_fwrite | ( | hpctrace_hdr_flags_t | flags, |
FILE * | fs | ||
) |
Definition at line 862 of file hpcrun-fmt.c.
int hpctrace_fmt_hdr_outbuf | ( | hpctrace_hdr_flags_t | flags, |
hpcio_outbuf_t * | outbuf | ||
) |
Definition at line 833 of file hpcrun-fmt.c.
|
static |
Definition at line 728 of file hpcrun-fmt.h.
|
static |
Definition at line 736 of file hpcrun-fmt.h.
|
static |
Definition at line 738 of file hpcrun-fmt.h.
|
static |
Definition at line 726 of file hpcrun-fmt.h.
|
static |
Definition at line 734 of file hpcrun-fmt.h.
|
static |
Definition at line 727 of file hpcrun-fmt.h.
|
static |
Definition at line 735 of file hpcrun-fmt.h.
|
static |
Definition at line 102 of file hpcrun-fmt.h.
|
static |
Definition at line 104 of file hpcrun-fmt.h.
|
static |
Definition at line 115 of file hpcrun-fmt.h.
|
static |
Definition at line 119 of file hpcrun-fmt.h.
|
static |
Definition at line 170 of file hpcrun-fmt.h.
|
static |
Definition at line 171 of file hpcrun-fmt.h.
|
static |
Definition at line 113 of file hpcrun-fmt.h.
|
static |
Definition at line 117 of file hpcrun-fmt.h.
|
static |
Definition at line 114 of file hpcrun-fmt.h.
|
static |
Definition at line 123 of file hpcrun-fmt.h.
|
static |
Definition at line 118 of file hpcrun-fmt.h.
|
static |
Definition at line 99 of file hpcrun-fmt.h.
const hpcrun_metricFlags_t hpcrun_metricFlags_NULL |
Definition at line 265 of file hpcrun-fmt.c.
hpcrun_metricVal_t hpcrun_metricVal_ZERO |
Definition at line 278 of file hpcrun-fmt.c.
|
static |
Definition at line 93 of file hpcrun-fmt.h.
|
static |
Definition at line 96 of file hpcrun-fmt.h.
|
static |
Definition at line 627 of file hpcrun-fmt.h.
|
static |
Definition at line 651 of file hpcrun-fmt.h.
|
static |
Definition at line 652 of file hpcrun-fmt.h.
|
static |
Definition at line 654 of file hpcrun-fmt.h.
|
static |
Definition at line 625 of file hpcrun-fmt.h.
|
static |
Definition at line 649 of file hpcrun-fmt.h.
|
static |
Definition at line 626 of file hpcrun-fmt.h.
|
static |
Definition at line 650 of file hpcrun-fmt.h.
const hpctrace_hdr_flags_t hpctrace_hdr_flags_NULL |
Definition at line 789 of file hpcrun-fmt.c.
const metric_desc_t metricDesc_NULL |
Definition at line 254 of file hpcrun-fmt.c.