diff options
author | vkalintiris <vasilis@netdata.cloud> | 2024-02-08 11:06:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 11:06:35 +0200 |
commit | e0ec10411bcfaeeaba331a93d5f3d96e23fa72e5 (patch) | |
tree | b371cfb03d8f276e8c64cfd042648053abfbd0a2 /collectors/ebpf.plugin/ebpf_sync.h | |
parent | e9760b43f53442d9dbd22f5353872ae5e83f7c4c (diff) |
Move collectors/ under src/ (#16965)
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_sync.h')
-rw-r--r-- | collectors/ebpf.plugin/ebpf_sync.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/collectors/ebpf.plugin/ebpf_sync.h b/collectors/ebpf.plugin/ebpf_sync.h deleted file mode 100644 index bd1bb78b0d..0000000000 --- a/collectors/ebpf.plugin/ebpf_sync.h +++ /dev/null @@ -1,60 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later - -#ifndef NETDATA_EBPF_SYNC_H -#define NETDATA_EBPF_SYNC_H 1 - -#ifdef LIBBPF_MAJOR_VERSION -#include "includes/sync.skel.h" -#endif - -// Module name & description -#define NETDATA_EBPF_MODULE_NAME_SYNC "sync" -#define NETDATA_EBPF_SYNC_MODULE_DESC "Monitor calls to syscalls sync(2), fsync(2), fdatasync(2), syncfs(2), msync(2), and sync_file_range(2)." - -// charts -#define NETDATA_EBPF_SYNC_CHART "sync" -#define NETDATA_EBPF_MSYNC_CHART "memory_map" -#define NETDATA_EBPF_FILE_SYNC_CHART "file_sync" -#define NETDATA_EBPF_FILE_SEGMENT_CHART "file_segment" -#define NETDATA_EBPF_SYNC_SUBMENU "synchronization (eBPF)" - -#define NETDATA_SYSCALLS_SYNC "sync" -#define NETDATA_SYSCALLS_SYNCFS "syncfs" -#define NETDATA_SYSCALLS_MSYNC "msync" -#define NETDATA_SYSCALLS_FSYNC "fsync" -#define NETDATA_SYSCALLS_FDATASYNC "fdatasync" -#define NETDATA_SYSCALLS_SYNC_FILE_RANGE "sync_file_range" - -#define NETDATA_EBPF_SYNC_SLEEP_MS 800000ULL - -// configuration file -#define NETDATA_SYNC_CONFIG_FILE "sync.conf" -#define NETDATA_SYNC_CONFIG_NAME "syscalls" - -typedef enum sync_syscalls_index { - NETDATA_SYNC_SYNC_IDX, - NETDATA_SYNC_SYNCFS_IDX, - NETDATA_SYNC_MSYNC_IDX, - NETDATA_SYNC_FSYNC_IDX, - NETDATA_SYNC_FDATASYNC_IDX, - NETDATA_SYNC_SYNC_FILE_RANGE_IDX, - - NETDATA_SYNC_IDX_END -} sync_syscalls_index_t; - -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_GLOBAL_TABLE -}; - -void *ebpf_sync_thread(void *ptr); -extern struct config sync_config; -extern netdata_ebpf_targets_t sync_targets[]; - -#endif /* NETDATA_EBPF_SYNC_H */ |