PAPI  5.0.1.0
darwin-memory.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int _darwin_get_dmem_info (PAPI_dmem_info_t *d)
int _darwin_get_memory_info (PAPI_hw_info_t *hwinfo, int cpu_type)
int _darwin_update_shlib_info (papi_mdi_t *mdi)

Function Documentation

< A System/C library call failed

< No error

Definition at line 13 of file darwin-memory.c.

{

  int mib[4];
  size_t len;
  char buffer[BUFSIZ];
  long long ll;

  /**********/
  /* memory */
  /**********/
  len = 2;
  sysctlnametomib("hw.memsize", mib, &len);

  len = 8;
  if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
    return PAPI_ESYS;
  }

  d->size=ll;

  d->pagesize = getpagesize(  );

    return PAPI_OK;
}
int _darwin_get_memory_info ( PAPI_hw_info_t hwinfo,
int  cpu_type 
)

< No error

Definition at line 65 of file darwin-memory.c.

{
    ( void ) cpu_type;       /*unused */
    int retval = PAPI_OK;

    x86_get_memory_info( hwinfo );

    return retval;
}

Here is the caller graph for this function:

< No error

Definition at line 76 of file darwin-memory.c.

{


    return PAPI_OK;
}

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines