pcp-mpstat: gracefully handle the absence of interrupt metrics
commit04355deea42bf3a1a5063ca9c4fe96d84495b008
authorNathan Scott <nathans@redhat.com>
Wed, 19 Jul 2017 00:45:41 +0000 (19 10:45 +1000)
committerNathan Scott <nathans@redhat.com>
Wed, 19 Jul 2017 00:45:41 +0000 (19 10:45 +1000)
treeea22312f5f7f4d3e7122053e4063802e4b41fedc
parent4cb0df02e2fc8f29b43339112119a5e88da5d2c4
pcp-mpstat: gracefully handle the absence of interrupt metrics

Noticed that pcp-mpstat fails to run when per-CPU soft and hard
interrupt metrics are missing from the source (archive, although
it will probably affect non x86 hosts as well I suspect).

For the default report case these are not actually used, so this
is quite unfortunate - the tool can still produce correct output
in that case (now does).

Added an archive showing the problem and extended qa/883.
qa/883
qa/883.out
qa/archives/GNUmakefile
qa/archives/pcp-mpstat2.0 [new file with mode: 0644]
qa/archives/pcp-mpstat2.index [new file with mode: 0644]
qa/archives/pcp-mpstat2.meta [new file with mode: 0644]
src/pcp/mpstat/pcp-mpstat.py