From 277cf2e68e6dcbb9c9adae2a176ddc62c165c254 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 9 Apr 2008 05:21:46 +0000 Subject: [PATCH] aix+hpux cpu_info sockets+cores --- src/os/aix/aix_sigar.c | 3 +++ src/os/hpux/hpux_sigar.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index d0771e1c..755fc1f6 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -1987,6 +1987,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar, info = &cpu_infos->data[cpu_infos->number++]; + info->total_sockets = ncpu; + info->total_cores = ncpu; + info->cache_size = SIGAR_CPU_CACHE_SIZE; info->mhz = sigar_get_cpu_mhz(sigar); diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 553e73de..1dffd1e4 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -679,6 +679,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar, info = &cpu_infos->data[cpu_infos->number++]; + info->total_sockets = sigar->ncpu; + info->total_cores = sigar->ncpu; + #ifdef __ia64__ SIGAR_SSTRCPY(info->vendor, "Intel"); /*XXX*/ SIGAR_SSTRCPY(info->model, "Itanium"); /*XXX*/