summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf_sync.h
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2021-03-17 10:22:11 +0000
committerGitHub <noreply@github.com>2021-03-17 10:22:11 +0000
commit65f4f12e8606a14d2c133569890e294275c2e056 (patch)
tree351d185fc6e08864e83498f55caed18e37503aa2 /collectors/ebpf.plugin/ebpf_sync.h
parent757e418090e1038b183d3776aa8a3c55260369ca (diff)
New thread for ebpf.plugin
Add monitoring to `sync` syscall
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_sync.h')
-rw-r--r--collectors/ebpf.plugin/ebpf_sync.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/collectors/ebpf.plugin/ebpf_sync.h b/collectors/ebpf.plugin/ebpf_sync.h
new file mode 100644
index 0000000000..ee9c5c8363
--- /dev/null
+++ b/collectors/ebpf.plugin/ebpf_sync.h
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_EBPF_SYNC_H
+#define NETDATA_EBPF_SYNC_H 1
+
+// charts
+#define NETDATA_EBPF_SYNC_CHART "sync"
+#define NETDATA_EBPF_SYNC_SUBMENU "synchronization"
+
+#define NETDATA_EBPF_SYNC_SLEEP_MS 800000ULL
+
+enum netdata_sync_charts {
+ NETDATA_SYNC_CALL,
+
+ // Keep this as last and don't skip numbers as it is used as element counter
+ NETDATA_SYNC_END
+};
+
+enum netdata_sync_table {
+ NETDATA_SYNC_GLOBLAL_TABLE
+};
+
+extern void *ebpf_sync_thread(void *ptr);
+
+#endif /* NETDATA_EBPF_SYNC_H */