PAPI  5.0.1.0
linux-bgq-memory.c File Reference
Include dependency graph for linux-bgq-memory.c:

Go to the source code of this file.

Functions

int init_bgq (PAPI_mh_info_t *pMem_Info)
int _bgq_get_memory_info (PAPI_hw_info_t *pHwInfo, int pCPU_Type)
int _bgq_get_dmem_info (PAPI_dmem_info_t *pDmemInfo)

Function Documentation

int _bgq_get_dmem_info ( PAPI_dmem_info_t pDmemInfo)

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< Invalid argument

< No error

Definition at line 53 of file linux-bgq-memory.c.

{
//  pid_t xPID = getpid();
//  prpsinfo_t xInfo;
//  char xFile[256];
//  int xFD;

//  sprintf(xFile, "/proc/%05d", xPID);
//  if ((fd = open(xFile, O_RDONLY)) < 0) {
//     SUBDBG("PAPI_get_dmem_info can't open /proc/%d\n", xPID);
//     return (PAPI_ESYS);
//  }
//  if (ioctl(xFD, PIOCPSINFO, &xInfo) < 0) {
//     return (PAPI_ESYS);
//  }
//  close(xFD);

    pDmemInfo->size = PAPI_EINVAL;
    pDmemInfo->resident = PAPI_EINVAL;
    pDmemInfo->high_water_mark = PAPI_EINVAL;
    pDmemInfo->shared = PAPI_EINVAL;
    pDmemInfo->text = PAPI_EINVAL;
    pDmemInfo->library = PAPI_EINVAL;
    pDmemInfo->heap = PAPI_EINVAL;
    pDmemInfo->locked = PAPI_EINVAL;
    pDmemInfo->stack = PAPI_EINVAL;
    pDmemInfo->pagesize = PAPI_EINVAL;

    return PAPI_OK;
}
int _bgq_get_memory_info ( PAPI_hw_info_t pHwInfo,
int  pCPU_Type 
)

Definition at line 33 of file linux-bgq-memory.c.

{
    int retval = 0;

    switch ( pCPU_Type ) {
    default:
        //fprintf(stderr,"Default CPU type in %s (%d)\n",__FUNCTION__,__LINE__);
        retval = init_bgq( &pHwInfo->mem_hierarchy );
        break;
    }

    return retval;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int init_bgq ( PAPI_mh_info_t pMem_Info)

< No error

Definition at line 88 of file linux-bgq-memory.c.

{
    memset( pMem_Info, 0x0, sizeof ( *pMem_Info ) );
    //fprintf(stderr,"mem_info not est up [%s (%d)]\n",__FUNCTION__,__LINE__);

    return PAPI_OK;
}

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines