HPCToolkit
dlpapi.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <dlfcn.h>
#include "dlpapi.h"
Include dependency graph for dlpapi.c:

Go to the source code of this file.

Macros

#define CALL_DLSYM(X)   dl_ ## X = (dl_ ## X ## _t)dlsym(libpapi, #X)
 

Functions

static void handle_any_dlerror ()
 
int dlopen_papi ()
 
int dlclose_papi ()
 

Variables

dl_PAPI_is_initialized_t dl_PAPI_is_initialized = NULL
 
dl_PAPI_library_init_t dl_PAPI_library_init = NULL
 
dl_PAPI_get_opt_t dl_PAPI_get_opt = NULL
 
dl_PAPI_get_hardware_info_t dl_PAPI_get_hardware_info = NULL
 
dl_PAPI_query_event_t dl_PAPI_query_event = NULL
 
dl_PAPI_get_event_info_t dl_PAPI_get_event_info = NULL
 
dl_PAPI_enum_event_t dl_PAPI_enum_event = NULL
 
static void * libpapi = NULL
 

Macro Definition Documentation

◆ CALL_DLSYM

#define CALL_DLSYM (   X)    dl_ ## X = (dl_ ## X ## _t)dlsym(libpapi, #X)

Definition at line 96 of file dlpapi.c.

Function Documentation

◆ dlclose_papi()

int dlclose_papi ( )

Definition at line 134 of file dlpapi.c.

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

◆ dlopen_papi()

int dlopen_papi ( )

Definition at line 100 of file dlpapi.c.

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

◆ handle_any_dlerror()

static void handle_any_dlerror ( )
static

Definition at line 143 of file dlpapi.c.

Here is the caller graph for this function:

Variable Documentation

◆ dl_PAPI_enum_event

dl_PAPI_enum_event_t dl_PAPI_enum_event = NULL

Definition at line 87 of file dlpapi.c.

◆ dl_PAPI_get_event_info

dl_PAPI_get_event_info_t dl_PAPI_get_event_info = NULL

Definition at line 85 of file dlpapi.c.

◆ dl_PAPI_get_hardware_info

dl_PAPI_get_hardware_info_t dl_PAPI_get_hardware_info = NULL

Definition at line 81 of file dlpapi.c.

◆ dl_PAPI_get_opt

dl_PAPI_get_opt_t dl_PAPI_get_opt = NULL

Definition at line 79 of file dlpapi.c.

◆ dl_PAPI_is_initialized

dl_PAPI_is_initialized_t dl_PAPI_is_initialized = NULL

Definition at line 75 of file dlpapi.c.

◆ dl_PAPI_library_init

dl_PAPI_library_init_t dl_PAPI_library_init = NULL

Definition at line 77 of file dlpapi.c.

◆ dl_PAPI_query_event

dl_PAPI_query_event_t dl_PAPI_query_event = NULL

Definition at line 83 of file dlpapi.c.

◆ libpapi

void* libpapi = NULL
static

Definition at line 89 of file dlpapi.c.