package/collectd: add buddyinfo option
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 15 Apr 2020 06:30:08 +0000 (08:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 17 Aug 2020 10:15:57 +0000 (12:15 +0200)
buddyinfo is available since version 5.11.0 and
https://github.com/collectd/collectd/commit/cb19ecf90d89a79836b8b5236d2b66277dd79c5f

It is currently enabled by default

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Asaf Kahlon <asafka7@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/collectd/Config.in
package/collectd/collectd.mk

index ca45130c4d59f8a749e160fdcdb767a6ed0a9586..4f54944cbc736c74acf4f50dc6b4e3f8be278a32 100644 (file)
@@ -131,6 +131,11 @@ config BR2_PACKAGE_COLLECTD_BIND
        help
          Collects BIND DNS statistics.
 
+config BR2_PACKAGE_COLLECTD_BUDDYINFO
+       bool "buddyinfo"
+       help
+         Statistics from buddyinfo file about memory fragmentation.
+
 config BR2_PACKAGE_COLLECTD_CAPABILITIES
        bool "capabilities"
        depends on BR2_aarch64 || BR2_i386 || BR2_x86_64 # dmidecode
index b36975daf0bc936109038e54037731f4e587dafc..2eed6b2c169e2e0f371a49c4195efd40ef2d9b89 100644 (file)
@@ -51,6 +51,7 @@ COLLECTD_CONF_OPTS += \
        $(if $(BR2_PACKAGE_COLLECTD_APCUPS),--enable-apcups,--disable-apcups) \
        $(if $(BR2_PACKAGE_COLLECTD_BATTERY),--enable-battery,--disable-battery) \
        $(if $(BR2_PACKAGE_COLLECTD_BIND),--enable-bind,--disable-bind) \
+       $(if $(BR2_PACKAGE_COLLECTD_BUDDYINFO),--enable-buddyinfo,--disable-buddyinfo) \
        $(if $(BR2_PACKAGE_COLLECTD_CAPABILITIES),--enable-capabilities,--disable-capabilities) \
        $(if $(BR2_PACKAGE_COLLECTD_CEPH),--enable-ceph,--disable-ceph) \
        $(if $(BR2_PACKAGE_COLLECTD_CHRONY),--enable-chrony,--disable-chrony) \