HPCToolkit
hpcpapi.c File Reference
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <papiStdEventDefs.h>
#include <papi.h>
#include "hpcpapi.h"
Include dependency graph for hpcpapi.c:

Go to the source code of this file.

Functions

int hpc_init_papi (int(*is_init)(void), int(*init)(int))
 
int hpc_init_papi_force (int(*init)(int))
 
const hpcpapi_flagdesc_thpcpapi_flag_by_name (const char *name)
 
void dump_hpcpapi_profile_desc_vec (hpcpapi_profile_desc_vec_t *descvec)
 
void dump_hpcpapi_profile_desc (hpcpapi_profile_desc_t *desc, const char *prefix)
 
void dump_hpcpapi_profile_desc_buf (hpcpapi_profile_desc_t *desc, int idx, const char *prefix)
 

Variables

static hpcpapi_flagdesc_t papi_flags []
 

Function Documentation

◆ dump_hpcpapi_profile_desc()

void dump_hpcpapi_profile_desc ( hpcpapi_profile_desc_t desc,
const char *  prefix 
)

Definition at line 152 of file hpcpapi.c.

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

◆ dump_hpcpapi_profile_desc_buf()

void dump_hpcpapi_profile_desc_buf ( hpcpapi_profile_desc_t desc,
int  idx,
const char *  prefix 
)

Definition at line 170 of file hpcpapi.c.

Here is the caller graph for this function:

◆ dump_hpcpapi_profile_desc_vec()

void dump_hpcpapi_profile_desc_vec ( hpcpapi_profile_desc_vec_t descvec)

Definition at line 139 of file hpcpapi.c.

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

◆ hpc_init_papi()

int hpc_init_papi ( int(*)(void)  is_init,
int(*)(int)  init 
)

Definition at line 78 of file hpcpapi.c.

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

◆ hpc_init_papi_force()

int hpc_init_papi_force ( int(*)(int)  init)

Definition at line 91 of file hpcpapi.c.

Here is the caller graph for this function:

◆ hpcpapi_flag_by_name()

const hpcpapi_flagdesc_t* hpcpapi_flag_by_name ( const char *  name)

Definition at line 126 of file hpcpapi.c.

Here is the caller graph for this function:

Variable Documentation

◆ papi_flags

hpcpapi_flagdesc_t papi_flags[]
static
Initial value:
= {
{ PAPI_PROFIL_POSIX, "PAPI_PROFIL_POSIX" },
{ PAPI_PROFIL_RANDOM, "PAPI_PROFIL_RANDOM" },
{ PAPI_PROFIL_WEIGHTED, "PAPI_PROFIL_WEIGHTED" },
{ PAPI_PROFIL_COMPRESS, "PAPI_PROFIL_COMPRESS" },
{ PAPI_PROFIL_FORCE_SW, "PAPI_PROFIL_FORCE_SW" },
{ PAPI_PROFIL_DATA_EAR, "PAPI_PROFIL_DATA_EAR" },
{ PAPI_PROFIL_INST_EAR, "PAPI_PROFIL_INST_EAR" },
{ -1, NULL }
}
#define NULL
Definition: ElfHelper.cpp:85

Definition at line 110 of file hpcpapi.c.