diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-11 01:32:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-06-11 01:32:06 +0000 |
commit | cc73c2b1fd5f6d20bffcdf31a4081e4d1cb861cb (patch) | |
tree | 4c0590d674faae74445808228dd2eef4568d7938 /sys | |
parent | 721dad9825639506f3bee92df8d86d82e50ced26 (diff) |
export cpuid via kproc2, and make ps & top aware
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/sysctl.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 5bf14091529..f37d99ac0e6 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.h,v 1.77 2004/04/19 22:52:33 tedu Exp $ */ +/* $OpenBSD: sysctl.h,v 1.78 2004/06/11 01:32:05 deraadt Exp $ */ /* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */ /* @@ -336,6 +336,8 @@ struct kinfo_proc { #define KI_MAXLOGNAME 32 #define KI_EMULNAMELEN 8 +#define KI_NOCPU (~(u_int64_t)0) + struct kinfo_proc2 { u_int64_t p_forw; /* PTR: linked run/sleep queue. */ u_int64_t p_back; @@ -448,6 +450,7 @@ struct kinfo_proc2 { u_int32_t p_svgid; /* GID_T: saved group id */ char p_emul[KI_EMULNAMELEN]; /* syscall emulation name */ u_int64_t p_rlim_rss_cur; /* RLIM_T: soft limit for rss */ + u_int64_t p_cpuid; /* LONG: CPU id */ }; /* |