21ead51d79
in place. To do per-cpu stats, convert all fields that previously were maintained in the vmmeters that sit in pcpus to counter(9). - Since some vmmeter stats may be touched at very early stages of boot, before we have set up UMA and we can do counter_u64_alloc(), provide an early counter mechanism: o Leave one spare uint64_t in struct pcpu, named pc_early_dummy_counter. o Point counter(9) fields of vmmeter to pcpu[0].pc_early_dummy_counter, so that at early stages of boot, before counters are allocated we already point to a counter that can be safely written to. o For sparc64 that required a whole dummy pcpu[MAXCPU] array. Further related changes: - Don't include vmmeter.h into pcpu.h. - vm.stats.vm.v_swappgsout and vm.stats.vm.v_swappgsin changed to 64-bit, to match kernel representation. - struct vmmeter hidden under _KERNEL, and only vmstat(1) is an exclusion. This is based on benno@'s 4-year old patch: https://lists.freebsd.org/pipermail/freebsd-arch/2013-July/014471.html Reviewed by: kib, gallatin, marius, lidl Differential Revision: https://reviews.freebsd.org/D10156 |
||
---|---|---|
.. | ||
_align.h | ||
_bus.h | ||
_inttypes.h | ||
_limits.h | ||
_stdint.h | ||
_types.h | ||
altivec.h | ||
asm.h | ||
atomic.h | ||
bat.h | ||
bus_dma.h | ||
bus.h | ||
clock.h | ||
counter.h | ||
cpu.h | ||
cpufunc.h | ||
db_machdep.h | ||
dbdma.h | ||
dump.h | ||
efi.h | ||
elf.h | ||
endian.h | ||
exec.h | ||
float.h | ||
floatingpoint.h | ||
fpu.h | ||
frame.h | ||
gdb_machdep.h | ||
hid.h | ||
ieee.h | ||
ieeefp.h | ||
in_cksum.h | ||
intr_machdep.h | ||
kdb.h | ||
limits.h | ||
machdep.h | ||
md_var.h | ||
memdev.h | ||
metadata.h | ||
mmuvar.h | ||
ofw_machdep.h | ||
openpicreg.h | ||
openpicvar.h | ||
param.h | ||
pcb.h | ||
pcpu.h | ||
pio.h | ||
platform.h | ||
platformvar.h | ||
pmap.h | ||
pmc_mdep.h | ||
proc.h | ||
profile.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
reloc.h | ||
resource.h | ||
rtas.h | ||
runq.h | ||
sc_machdep.h | ||
setjmp.h | ||
sigframe.h | ||
signal.h | ||
slb.h | ||
smp.h | ||
spr.h | ||
sr.h | ||
stack.h | ||
stdarg.h | ||
sysarch.h | ||
tlb.h | ||
trap.h | ||
ucontext.h | ||
varargs.h | ||
vdso.h | ||
vm.h | ||
vmparam.h |