Changes committed to git://git.pcp.io/nathans/pcp.git master
Nathan Scott (3):
pmdalinux: fix container issues, especially with networking metrics
qa: fix typo in an error message in test 540
build: extend gitignore file set for pmdaroot
qa/042 | 82 ++++++++++++++++++++++++++++++++++++++
qa/042.out | 24 +++++++++++
qa/047 | 88 +++++++++++++++++++++++++++++++++++++++++
qa/047.out | 7 +++
qa/540 | 2
qa/GNUmakefile | 2
qa/common.docker | 52 ++++++++++++++++++++++++
qa/group | 5 +-
src/pmdas/linux/filesys.c | 10 +++-
src/pmdas/linux/filesys.h | 3 -
src/pmdas/linux/namespaces.c | 42 ++++++++++++++-----
src/pmdas/linux/namespaces.h | 6 ++
src/pmdas/linux/pmda.c | 30 ++++++++-----
src/pmdas/linux/proc_net_dev.c | 84 +++++++++++++++++++++++++++++++--------
src/pmdas/linux/proc_net_dev.h | 5 +-
src/pmdas/linux_proc/cgroups.c | 25 +++++++++--
src/pmdas/root/.gitignore | 1
src/pmdas/root/root.c | 2
18 files changed, 414 insertions(+), 56 deletions(-)
commit ec1e30e76aec2b303f88643862fcde45080ad262
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue May 12 17:33:24 2015 +1000
build: extend gitignore file set for pmdaroot
commit b08d0c375e98154708008139afadd21f722a8400
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue May 12 17:33:07 2015 +1000
qa: fix typo in an error message in test 540
commit 2adc1dc9990859c622be761e21c542fdeab77ed0
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue May 12 17:32:46 2015 +1000
pmdalinux: fix container issues, especially with networking metrics
Resolves issues listed in PR1106 - ensuring network ioctls issued
to a file descriptor opened in the correct namespace, add mnt to
the namespaces needed for network metrics using /sys (hw_addr),
fix a descriptor leak when saving the base host namespaces. Some
code refactoring to assist understanding the network refresh logic.
With Docker containers we need a buffer larger than maxhostlen in
the process ID lookup code (full 64 char docker IDs hit the limit).
Adds test 042 and 047 to exercise various aspects of the changes,
and introduces qa/common.docker to provide Docker helper code.
|