sigar/src/os/aix/perfstat/sigar_perfstat.c
2004-07-19 19:49:32 +00:00

21 lines
474 B
C

#include <libperfstat.h>
/*
* ibm docs say:
* "name Must be set to NULL.
* desired_number Must be set to 1."
* so we just hardcode that in our wrapper.
*/
int sigar_perfstat_cpu_total(perfstat_cpu_total_t *cpu_total, int size)
{
return perfstat_cpu_total(NULL, cpu_total, size, 1);
}
int sigar_perfstat_cpu(perfstat_id_t *id,
perfstat_cpu_t *cpu,
int size, int num)
{
return perfstat_cpu(id, cpu, size, num);
}