darwin-memory.c File Reference

Include dependency graph for darwin-memory.c:

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

int _darwin_get_dmem_info ( PAPI_dmem_info_t d  ) 

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

00014 {
00015 
00016   int mib[4];
00017   size_t len;
00018   char buffer[BUFSIZ];
00019   long long ll;
00020 
00021   /**********/
00022   /* memory */
00023   /**********/
00024   len = 2;
00025   sysctlnametomib("hw.memsize", mib, &len);
00026 
00027   len = 8;
00028   if (sysctl(mib, 2, &ll, &len, NULL, 0) == -1) {
00029     return PAPI_ESYS;
00030   }
00031 
00032   d->size=ll;
00033 
00034   d->pagesize = getpagesize(  );
00035 
00036     return PAPI_OK;
00037 }

int _darwin_get_memory_info ( PAPI_hw_info_t hwinfo,
int  cpu_type 
)

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

00066 {
00067     ( void ) cpu_type;       /*unused */
00068     int retval = PAPI_OK;
00069 
00070     x86_get_memory_info( hwinfo );
00071 
00072     return retval;
00073 }

Here is the caller graph for this function:

int _darwin_update_shlib_info ( papi_mdi_t mdi  ) 

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

00077 {
00078 
00079 
00080     return PAPI_OK;
00081 }

Here is the caller graph for this function:


Generated on 26 Jan 2016 for PAPI by  doxygen 1.6.1