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.

00047 {
00048 
00049     pDmemInfo->size = PAPI_EINVAL;
00050     pDmemInfo->resident = PAPI_EINVAL;
00051     pDmemInfo->high_water_mark = PAPI_EINVAL;
00052     pDmemInfo->shared = PAPI_EINVAL;
00053     pDmemInfo->text = PAPI_EINVAL;
00054     pDmemInfo->library = PAPI_EINVAL;
00055     pDmemInfo->heap = PAPI_EINVAL;
00056     pDmemInfo->locked = PAPI_EINVAL;
00057     pDmemInfo->stack = PAPI_EINVAL;
00058     pDmemInfo->pagesize = PAPI_EINVAL;
00059 
00060     return PAPI_OK;
00061 }

int _bgp_get_memory_info ( PAPI_hw_info_t pHwInfo,
int  pCPU_Type 
)

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

00027 {
00028     int retval = 0;
00029 
00030     switch ( pCPU_Type ) {
00031     default:
00032         //fprintf(stderr,"Default CPU type in %s (%d)\n",__FUNCTION__,__LINE__);
00033         retval = init_bgp( &pHwInfo->mem_hierarchy );
00034         break;
00035     }
00036 
00037     return retval;
00038 }

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.

00068 {
00069     memset( pMem_Info, 0x0, sizeof ( *pMem_Info ) );
00070 
00071     return PAPI_OK;
00072 }

Here is the caller graph for this function:


Generated on 17 Nov 2016 for PAPI by  doxygen 1.6.1