summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2023-05-15 16:06:26 +0000
committerGitHub <noreply@github.com>2023-05-15 19:06:26 +0300
commit588096c6b682ec467d85656abab65d77f74e5755 (patch)
tree64d88be9c0ec23c5d79370cc1bed826e19a2b51a /daemon
parentbdc40c318a761f5e05e3544b72c4aa3384484e44 (diff)
Debugfs collector (#15017)
Co-authored-by: Fotis Voutsas <fotis@netdata.cloud> Co-authored-by: Austin S. Hemmelgarn <ahferroin7@gmail.com> Co-authored-by: ilyam8 <ilya@netdata.cloud>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/buildinfo.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/daemon/buildinfo.c b/daemon/buildinfo.c
index 5afcd5490c..d277d2b3cf 100644
--- a/daemon/buildinfo.c
+++ b/daemon/buildinfo.c
@@ -115,6 +115,12 @@
#define FEAT_APPS_PLUGIN 0
#endif
+#ifdef ENABLE_DEBUGFS_PLUGIN
+#define FEAT_DEBUGFS_PLUGIN 1
+#else
+#define FEAT_DEBUGFS_PLUGIN 0
+#endif
+
#ifdef HAVE_FREEIPMI
#define FEAT_IPMI 1
#else
@@ -291,6 +297,7 @@ void print_build_info(void) {
printf(" apps: %s\n", FEAT_YES_NO(FEAT_APPS_PLUGIN));
printf(" cgroup Network Tracking: %s\n", FEAT_YES_NO(FEAT_CGROUP_NET));
printf(" CUPS: %s\n", FEAT_YES_NO(FEAT_CUPS));
+ printf(" debugfs: %s\n", FEAT_YES_NO(FEAT_DEBUGFS_PLUGIN));
printf(" EBPF: %s\n", FEAT_YES_NO(FEAT_EBPF));
printf(" IPMI: %s\n", FEAT_YES_NO(FEAT_IPMI));
printf(" NFACCT: %s\n", FEAT_YES_NO(FEAT_NFACCT));
@@ -349,6 +356,7 @@ void print_build_info_json(void) {
printf(" \"apps\": %s,\n", FEAT_JSON_BOOL(FEAT_APPS_PLUGIN));
printf(" \"cgroup-net\": %s,\n", FEAT_JSON_BOOL(FEAT_CGROUP_NET));
printf(" \"cups\": %s,\n", FEAT_JSON_BOOL(FEAT_CUPS));
+ printf(" \"debugfs\": %s,\n", FEAT_JSON_BOOL(FEAT_DEBUGFS_PLUGIN));
printf(" \"ebpf\": %s,\n", FEAT_JSON_BOOL(FEAT_EBPF));
printf(" \"ipmi\": %s,\n", FEAT_JSON_BOOL(FEAT_IPMI));
printf(" \"nfacct\": %s,\n", FEAT_JSON_BOOL(FEAT_NFACCT));
@@ -424,6 +432,9 @@ void analytics_build_info(BUFFER *b) {
#ifdef ENABLE_APPS_PLUGIN
add_to_bi(b, "apps");
#endif
+#ifdef ENABLE_DEBUGFS_PLUGIN
+ add_to_bi(b, "debugfs");
+#endif
#ifdef HAVE_SETNS
add_to_bi(b, "cgroup Network Tracking");
#endif