22 if ( _system_configuration.tlb_attrib & ( 1 << 30 ) ) {
36 if ( _system_configuration.cache_attrib & ( 1 << 30 ) ) {
38 L[0].
cache[0].
size = _system_configuration.icache_size;
43 L[0].
cache[0].
size = _system_configuration.icache_size;
47 L[0].
cache[1].
size = _system_configuration.dcache_size;
52 L[1].
cache[0].
size = _system_configuration.L2_cache_size;
74 pid_t mypid = getpid( );
80 if ( getprocs( &pi,
sizeof ( pi ), 0, 0, &
pid, 1 ) != 1 )
82 if ( mypid == pi.pi_pid ) {
91 d->
resident = pi.pi_drss + pi.pi_trss;
int _aix_get_memory_info(PAPI_hw_info_t *mem_info, int type)
int _aix_get_dmem_info(PAPI_dmem_info_t *d)
Return codes and api definitions.
#define PAPI_MH_TYPE_DATA
#define PAPI_MH_TYPE_INST
#define PAPI_MH_TYPE_UNIFIED
A pointer to the following is passed to PAPI_get_dmem_info()
long long high_water_mark
PAPI_mh_info_t mem_hierarchy
PAPI_mh_level_t level[PAPI_MAX_MEM_HIERARCHY_LEVELS]
PAPI_mh_tlb_info_t tlb[PAPI_MH_MAX_LEVELS]
PAPI_mh_cache_info_t cache[PAPI_MH_MAX_LEVELS]