PAPI  5.4.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
linux-bgp-memory.c File Reference
Include dependency graph for linux-bgp-memory.c:

Go to the source code of this file.

Functions

int init_bgp (PAPI_mh_info_t *pMem_Info)
 
int _bgp_get_memory_info (PAPI_hw_info_t *pHwInfo, int pCPU_Type)
 
int _bgp_get_dmem_info (PAPI_dmem_info_t *pDmemInfo)
 

Function Documentation

int _bgp_get_dmem_info ( PAPI_dmem_info_t pDmemInfo)

Definition at line 46 of file linux-bgp-memory.c.

47 {
48 
49  pDmemInfo->size = PAPI_EINVAL;
50  pDmemInfo->resident = PAPI_EINVAL;
51  pDmemInfo->high_water_mark = PAPI_EINVAL;
52  pDmemInfo->shared = PAPI_EINVAL;
53  pDmemInfo->text = PAPI_EINVAL;
54  pDmemInfo->library = PAPI_EINVAL;
55  pDmemInfo->heap = PAPI_EINVAL;
56  pDmemInfo->locked = PAPI_EINVAL;
57  pDmemInfo->stack = PAPI_EINVAL;
58  pDmemInfo->pagesize = PAPI_EINVAL;
59 
60  return PAPI_OK;
61 }
return PAPI_OK
Definition: linux-nvml.c:458
long long heap
Definition: papi.h:876
return PAPI_EINVAL
Definition: linux-nvml.c:408
long long resident
Definition: papi.h:871
long long pagesize
Definition: papi.h:879
long long locked
Definition: papi.h:877
long long library
Definition: papi.h:875
long long shared
Definition: papi.h:873
long long text
Definition: papi.h:874
long long stack
Definition: papi.h:878
long long size
Definition: papi.h:870
long long high_water_mark
Definition: papi.h:872
int _bgp_get_memory_info ( PAPI_hw_info_t pHwInfo,
int  pCPU_Type 
)

Definition at line 26 of file linux-bgp-memory.c.

27 {
28  int retval = 0;
29 
30  switch ( pCPU_Type ) {
31  default:
32  //fprintf(stderr,"Default CPU type in %s (%d)\n",__FUNCTION__,__LINE__);
33  retval = init_bgp( &pHwInfo->mem_hierarchy );
34  break;
35  }
36 
37  return retval;
38 }
PAPI_mh_info_t mem_hierarchy
Definition: papi.h:796
ssize_t retval
Definition: libasync.c:338
int init_bgp(PAPI_mh_info_t *pMem_Info)

Here is the call graph for this function:

int init_bgp ( PAPI_mh_info_t pMem_Info)

Definition at line 67 of file linux-bgp-memory.c.

68 {
69  memset( pMem_Info, 0x0, sizeof ( *pMem_Info ) );
70 
71  return PAPI_OK;
72 }
memset(eventId, 0, size)
return PAPI_OK
Definition: linux-nvml.c:458

Here is the call graph for this function:

Here is the caller graph for this function: