PAPI 7.1.0.0
Loading...
Searching...
No Matches
vendor_common.h File Reference
Include dependency graph for vendor_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  device_t
 
struct  device_table_t
 

Functions

int vendorc_init (void)
 
int vendorc_shutdown (void)
 
int vendorc_err_get_last (const char **error)
 

Variables

char error_string [PAPI_MAX_STR_LEN]
 
device_table_tdevice_table_p
 

Function Documentation

◆ vendorc_err_get_last()

int vendorc_err_get_last ( const char **  error)

Definition at line 48 of file vendor_common.c.

49{
50 *error = error_string;
51 return PAPI_OK;
52}
#define PAPI_OK
Definition: f90papi.h:73
char error_string[PAPI_MAX_STR_LEN]
Definition: vendor_common.c:3
Here is the caller graph for this function:

◆ vendorc_init()

int vendorc_init ( void  )

Definition at line 15 of file vendor_common.c.

16{
17 int papi_errno;
18
19 papi_errno = load_common_symbols();
20 if (papi_errno != PAPI_OK) {
21 return papi_errno;
22 }
23
24 papi_errno = initialize_device_table();
25 if (papi_errno != PAPI_OK) {
26 goto fn_fail;
27 }
28
30
31 fn_exit:
32 return papi_errno;
33 fn_fail:
35 goto fn_exit;
36}
device_table_t * device_table_p
Definition: vendor_common.c:7
static int initialize_device_table(void)
Definition: vendor_common.c:67
device_table_t device_table
Definition: vendor_common.c:6
static int unload_common_symbols(void)
Definition: vendor_common.c:61
static int load_common_symbols(void)
Definition: vendor_common.c:55
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vendorc_shutdown()

int vendorc_shutdown ( void  )

Definition at line 39 of file vendor_common.c.

40{
42 device_table_p = NULL;
44 return PAPI_OK;
45}
static int finalize_device_table(void)
Definition: vendor_common.c:87
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ device_table_p

device_table_t* device_table_p
extern

Definition at line 19 of file roc_common.c.

◆ error_string

char error_string[PAPI_MAX_STR_LEN]
extern

Definition at line 17 of file roc_common.c.