summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf_filesystem.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:54:44 +0000
commit836b47cb7e99a977c5a23b059ca1d0b5065d310e (patch)
tree1604da8f482d02effa033c94a84be42bc0c848c3 /collectors/ebpf.plugin/ebpf_filesystem.h
parentReleasing debian version 1.44.3-2. (diff)
downloadnetdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.tar.xz
netdata-836b47cb7e99a977c5a23b059ca1d0b5065d310e.zip
Merging upstream version 1.46.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_filesystem.h')
-rw-r--r--collectors/ebpf.plugin/ebpf_filesystem.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/collectors/ebpf.plugin/ebpf_filesystem.h b/collectors/ebpf.plugin/ebpf_filesystem.h
deleted file mode 100644
index f58d7fbe..00000000
--- a/collectors/ebpf.plugin/ebpf_filesystem.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef NETDATA_EBPF_FILESYSTEM_H
-#define NETDATA_EBPF_FILESYSTEM_H 1
-
-// Module name & description
-#define NETDATA_EBPF_MODULE_NAME_FILESYSTEM "filesystem"
-#define NETDATA_EBPF_FS_MODULE_DESC "Monitor filesystem latency for: btrfs, ext4, nfs, xfs and zfs."
-
-#include "ebpf.h"
-#ifdef LIBBPF_MAJOR_VERSION
-#include "includes/filesystem.skel.h"
-#endif
-
-#define NETDATA_FS_MAX_DIST_NAME 64UL
-
-#define NETDATA_FILESYSTEM_CONFIG_NAME "filesystem"
-
-// Process configuration name
-#define NETDATA_FILESYSTEM_CONFIG_FILE "filesystem.conf"
-
-typedef struct netdata_fs_hist {
- uint32_t hist_id;
- uint32_t bin;
-} netdata_fs_hist_t;
-
-enum filesystem_limit {
- NETDATA_KEY_CALLS_READ = 24,
- NETDATA_KEY_CALLS_WRITE = 48,
- NETDATA_KEY_CALLS_OPEN = 72,
- NETDATA_KEY_CALLS_SYNC = 96
-};
-
-enum netdata_filesystem_flags {
- NETDATA_FILESYSTEM_FLAG_NO_PARTITION = 0,
- NETDATA_FILESYSTEM_LOAD_EBPF_PROGRAM = 1,
- NETDATA_FILESYSTEM_FLAG_HAS_PARTITION = 2,
- NETDATA_FILESYSTEM_FLAG_CHART_CREATED = 4,
- NETDATA_FILESYSTEM_FILL_ADDRESS_TABLE = 8,
- NETDATA_FILESYSTEM_REMOVE_CHARTS = 16,
- NETDATA_FILESYSTEM_ATTR_CHARTS = 32
-};
-
-enum netdata_filesystem_table {
- NETDATA_MAIN_FS_TABLE,
- NETDATA_ADDR_FS_TABLE
-};
-
-enum netdata_filesystem_localfs_idx {
- NETDATA_FS_LOCALFS_EXT4,
- NETDATA_FS_LOCALFS_XFS,
- NETDATA_FS_LOCALFS_NFS,
- NETDATA_FS_LOCALFS_ZFS,
- NETDATA_FS_LOCALFS_BTRFS,
-
- NETDATA_FS_LOCALFS_END,
-};
-
-void *ebpf_filesystem_thread(void *ptr);
-extern struct config fs_config;
-
-#endif /* NETDATA_EBPF_FILESYSTEM_H */