summaryrefslogtreecommitdiffstats
path: root/src/collectors/ebpf.plugin/ebpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectors/ebpf.plugin/ebpf.h')
-rw-r--r--src/collectors/ebpf.plugin/ebpf.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/collectors/ebpf.plugin/ebpf.h b/src/collectors/ebpf.plugin/ebpf.h
index 7db04c2af0..175c092a1c 100644
--- a/src/collectors/ebpf.plugin/ebpf.h
+++ b/src/collectors/ebpf.plugin/ebpf.h
@@ -38,19 +38,19 @@
#define NETDATA_EBPF_CONFIG_FILE "ebpf.d.conf"
#ifdef LIBBPF_MAJOR_VERSION // BTF code
-#include "libnetdata/ebpf/includes/cachestat.skel.h"
-#include "libnetdata/ebpf/includes/dc.skel.h"
-#include "libnetdata/ebpf/includes/disk.skel.h"
-#include "libnetdata/ebpf/includes/fd.skel.h"
-#include "libnetdata/ebpf/includes/filesystem.skel.h"
-#include "libnetdata/ebpf/includes/hardirq.skel.h"
-#include "libnetdata/ebpf/includes/mdflush.skel.h"
-#include "libnetdata/ebpf/includes/mount.skel.h"
-#include "libnetdata/ebpf/includes/shm.skel.h"
-#include "libnetdata/ebpf/includes/sync.skel.h"
-#include "libnetdata/ebpf/includes/socket.skel.h"
-#include "libnetdata/ebpf/includes/swap.skel.h"
-#include "libnetdata/ebpf/includes/vfs.skel.h"
+#include "cachestat.skel.h"
+#include "dc.skel.h"
+#include "disk.skel.h"
+#include "fd.skel.h"
+#include "filesystem.skel.h"
+#include "hardirq.skel.h"
+#include "mdflush.skel.h"
+#include "mount.skel.h"
+#include "shm.skel.h"
+#include "sync.skel.h"
+#include "socket.skel.h"
+#include "swap.skel.h"
+#include "vfs.skel.h"
extern struct cachestat_bpf *cachestat_bpf_obj;
extern struct dc_bpf *dc_bpf_obj;
@@ -389,6 +389,11 @@ void ebpf_read_local_addresses_unsafe();
extern ebpf_filesystem_partitions_t localfs[];
extern ebpf_sync_syscalls_t local_syscalls[];
extern bool ebpf_plugin_exit;
+
+static inline bool ebpf_plugin_stop(void) {
+ return ebpf_plugin_exit || nd_thread_signaled_to_cancel();
+}
+
void ebpf_stop_threads(int sig);
extern netdata_ebpf_judy_pid_t ebpf_judy_pid;