pmdalinux: fix zoneinfo protection metrics on 32-bit platforms
commite33ef495a8109e85df465764740f3c7311878536
authorNathan Scott <nathans@redhat.com>
Wed, 15 Feb 2017 02:30:03 +0000 (15 13:30 +1100)
committerNathan Scott <nathans@redhat.com>
Wed, 15 Feb 2017 02:30:03 +0000 (15 13:30 +1100)
treea69f8e3b1d9b5a2567dbbbfb35674d098c9ee475
parentb0a172e5339409e6140deb4b6be45fbd52fcdf09
pmdalinux: fix zoneinfo protection metrics on 32-bit platforms

Resolve a compiler warning Ken came across where recently added
zoneinfo protection metric indom was storing values directly in
the value pointer.  That meant we attempted to place a 64-bit
value into a 32-bit pointer and the compiler rightly complained.
Resolved by dynamically allocating space to hold these values.
src/pmdas/linux/pmda.c
src/pmdas/linux/proc_zoneinfo.c