freebsd cpu metrics

This commit is contained in:
Doug MacEachern committed 2005-02-09 03:54:57 +00:00
1 parent ac37c62faa
commit 0f4850670f
2 files changed
+62 -6

No files matched your search

+7
View File
@@ -10,6 +10,11 @@
#include <sys/sysctl.h>
enum {
KOFFSET_CPUINFO,
KOFFSET_MAX
};
struct sigar_t {
SIGAR_T_BASE;
int pagesize;
@@ -20,6 +25,8 @@ struct sigar_t {
mach_port_t mach_port;
#else
kvm_t *kp;
/* offsets for seeking on kmem */
unsigned long koffsets[KOFFSET_MAX];
#endif
};