summaryrefslogtreecommitdiffstats
path: root/collectors/cgroups.plugin/sys_fs_cgroup.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 11:19:16 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-24 09:53:24 +0000
commitb5f8ee61a7f7e9bd291dd26b0585d03eb686c941 (patch)
treed4d31289c39fc00da064a825df13a0b98ce95b10 /collectors/cgroups.plugin/sys_fs_cgroup.h
parentAdding upstream version 1.44.3. (diff)
downloadnetdata-upstream.tar.xz
netdata-upstream.zip
Adding upstream version 1.46.3.upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/cgroups.plugin/sys_fs_cgroup.h')
-rw-r--r--collectors/cgroups.plugin/sys_fs_cgroup.h48
1 files changed, 0 insertions, 48 deletions
diff --git a/collectors/cgroups.plugin/sys_fs_cgroup.h b/collectors/cgroups.plugin/sys_fs_cgroup.h
deleted file mode 100644
index e8cfcf5f6..000000000
--- a/collectors/cgroups.plugin/sys_fs_cgroup.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef NETDATA_SYS_FS_CGROUP_H
-#define NETDATA_SYS_FS_CGROUP_H 1
-
-#include "daemon/common.h"
-
-#define PLUGIN_CGROUPS_NAME "cgroups.plugin"
-#define PLUGIN_CGROUPS_MODULE_SYSTEMD_NAME "systemd"
-#define PLUGIN_CGROUPS_MODULE_CGROUPS_NAME "/sys/fs/cgroup"
-
-#define CGROUP_OPTIONS_DISABLED_DUPLICATE 0x00000001
-#define CGROUP_OPTIONS_SYSTEM_SLICE_SERVICE 0x00000002
-#define CGROUP_OPTIONS_IS_UNIFIED 0x00000004
-
-typedef struct netdata_ebpf_cgroup_shm_header {
- int cgroup_root_count;
- int cgroup_max;
- int systemd_enabled;
- int __pad;
- size_t body_length;
-} netdata_ebpf_cgroup_shm_header_t;
-
-#define CGROUP_EBPF_NAME_SHARED_LENGTH 256
-
-typedef struct netdata_ebpf_cgroup_shm_body {
- // Considering what is exposed in this link https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
- // this length is enough to store what we want.
- char name[CGROUP_EBPF_NAME_SHARED_LENGTH];
- uint32_t hash;
- uint32_t options;
- int enabled;
- char path[FILENAME_MAX + 1];
-} netdata_ebpf_cgroup_shm_body_t;
-
-typedef struct netdata_ebpf_cgroup_shm {
- netdata_ebpf_cgroup_shm_header_t *header;
- netdata_ebpf_cgroup_shm_body_t *body;
-} netdata_ebpf_cgroup_shm_t;
-
-#define NETDATA_SHARED_MEMORY_EBPF_CGROUP_NAME "netdata_shm_cgroup_ebpf"
-#define NETDATA_NAMED_SEMAPHORE_EBPF_CGROUP_NAME "/netdata_sem_cgroup_ebpf"
-
-#include "../proc.plugin/plugin_proc.h"
-
-char *cgroup_parse_resolved_name_and_labels(RRDLABELS *labels, char *data);
-
-#endif //NETDATA_SYS_FS_CGROUP_H