Changeset View
Changeset View
Standalone View
Standalone View
head/sys/kern/kern_mib.c
Show First 20 Lines • Show All 574 Lines • ▼ Show 20 Lines | SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD, | ||||
SYSCTL_NULL_INT_PTR, sizeof(struct bio), "sizeof(struct bio)"); | SYSCTL_NULL_INT_PTR, sizeof(struct bio), "sizeof(struct bio)"); | ||||
SYSCTL_INT(_debug_sizeof, OID_AUTO, buf, CTLFLAG_RD, | SYSCTL_INT(_debug_sizeof, OID_AUTO, buf, CTLFLAG_RD, | ||||
SYSCTL_NULL_INT_PTR, sizeof(struct buf), "sizeof(struct buf)"); | SYSCTL_NULL_INT_PTR, sizeof(struct buf), "sizeof(struct buf)"); | ||||
#include <sys/user.h> | #include <sys/user.h> | ||||
SYSCTL_INT(_debug_sizeof, OID_AUTO, kinfo_proc, CTLFLAG_RD, | SYSCTL_INT(_debug_sizeof, OID_AUTO, kinfo_proc, CTLFLAG_RD, | ||||
SYSCTL_NULL_INT_PTR, sizeof(struct kinfo_proc), "sizeof(struct kinfo_proc)"); | SYSCTL_NULL_INT_PTR, sizeof(struct kinfo_proc), "sizeof(struct kinfo_proc)"); | ||||
/* Used by kernel debuggers. */ | |||||
const int pcb_size = sizeof(struct pcb); | |||||
SYSCTL_INT(_debug_sizeof, OID_AUTO, pcb, CTLFLAG_RD, | |||||
SYSCTL_NULL_INT_PTR, sizeof(struct pcb), "sizeof(struct pcb)"); | |||||
/* XXX compatibility, remove for 6.0 */ | /* XXX compatibility, remove for 6.0 */ | ||||
#include <sys/imgact.h> | #include <sys/imgact.h> | ||||
#include <sys/imgact_elf.h> | #include <sys/imgact_elf.h> | ||||
SYSCTL_INT(_kern, OID_AUTO, fallback_elf_brand, CTLFLAG_RW, | SYSCTL_INT(_kern, OID_AUTO, fallback_elf_brand, CTLFLAG_RW, | ||||
&__elfN(fallback_brand), sizeof(__elfN(fallback_brand)), | &__elfN(fallback_brand), sizeof(__elfN(fallback_brand)), | ||||
"compatibility for kern.fallback_elf_brand"); | "compatibility for kern.fallback_elf_brand"); |