pmdalinux: dynamic per-CPU and per-node instance domains
commitbfe5828499eb643c8fad680528499b42a3aade0e
authorNathan Scott <nathans@redhat.com>
Thu, 19 Jan 2017 04:52:19 +0000 (19 15:52 +1100)
committerNathan Scott <nathans@redhat.com>
Thu, 19 Jan 2017 04:52:19 +0000 (19 15:52 +1100)
treedfd901ec79ed1de1b9195afdcf095a03dfd1fb68
parenta5d12e4e5169e611b87600c027ab37b0f0fb7964
pmdalinux: dynamic per-CPU and per-node instance domains

Convert the Linux kernel PMDA per-CPU and per-NUMA-node indoms
to using the pmdaCache routines, so the PMDA behaves correctly
with these system changes.

This commit also makes some other closely related improvements.
The disk.* refresh logic at pmFetch time is optimised so as to
not cause unnecessary /proc/stat rescanning.  Logic determining
machine type is moved out of the cpu_name routine into a more
appropriate place, and implemented using uname(2) as a fallback
instead of simply "linux" on non-SGI-NUMA machines.

Resolves Red Hat BZ #1409704.
18 files changed:
qa/910 [new file with mode: 0755]
qa/910.out [new file with mode: 0644]
qa/group
src/pmdas/linux/getinfo.c
src/pmdas/linux/getinfo.h
src/pmdas/linux/help
src/pmdas/linux/linux.h
src/pmdas/linux/mem_bandwidth.c
src/pmdas/linux/numa_meminfo.c
src/pmdas/linux/numa_meminfo.h [copied from src/pmdas/linux/getinfo.h with 64% similarity]
src/pmdas/linux/pmda.c
src/pmdas/linux/proc_cpuinfo.c
src/pmdas/linux/proc_cpuinfo.h [copied from src/pmdas/linux/getinfo.h with 56% similarity]
src/pmdas/linux/proc_meminfo.c
src/pmdas/linux/proc_net_softnet.c
src/pmdas/linux/proc_net_softnet.h
src/pmdas/linux/proc_stat.c
src/pmdas/linux/proc_stat.h