83c9dea1ba
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 |
||
---|---|---|
.. | ||
ata_machdep.c | ||
autoconf.c | ||
bus_machdep.c | ||
cache.c | ||
cam_machdep.c | ||
cheetah.c | ||
clock.c | ||
counter.c | ||
db_disasm.c | ||
db_hwwatch.c | ||
db_interface.c | ||
db_trace.c | ||
dump_machdep.c | ||
eeprom.c | ||
elf_machdep.c | ||
exception.S | ||
gdb_machdep.c | ||
genassym.c | ||
identcpu.c | ||
in_cksum.c | ||
interrupt.S | ||
intr_machdep.c | ||
iommu.c | ||
jbusppm.c | ||
locore.S | ||
machdep.c | ||
mem.c | ||
mp_exception.S | ||
mp_locore.S | ||
mp_machdep.c | ||
nexus.c | ||
ofw_machdep.c | ||
pmap.c | ||
prof_machdep.c | ||
rtc.c | ||
rwindow.c | ||
sc_machdep.c | ||
schppm.c | ||
spitfire.c | ||
ssm.c | ||
stack_machdep.c | ||
support.S | ||
swtch.S | ||
sys_machdep.c | ||
tick.c | ||
tlb.c | ||
trap.c | ||
tsb.c | ||
uio_machdep.c | ||
upa.c | ||
vm_machdep.c | ||
zeus.c |