freebsd cpu metrics
This commit is contained in:
1 parent
ac37c62faa
commit
0f4850670f
2 files changed
+62
-6
No files matched your search
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user