diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:36:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 08:37:11 +0000 |
commit | 910c794ec6d0a364b4aabccf22b715cb45780e83 (patch) | |
tree | 561a9ef6b6a4668102674e1a52b3e7563c57ac61 /src/collectors/common-contexts/mem.pgfaults.h | |
parent | Releasing debian version 1.47.5-1. (diff) | |
download | netdata-910c794ec6d0a364b4aabccf22b715cb45780e83.tar.xz netdata-910c794ec6d0a364b4aabccf22b715cb45780e83.zip |
Merging upstream version 2.0.0 (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/common-contexts/mem.pgfaults.h')
-rw-r--r-- | src/collectors/common-contexts/mem.pgfaults.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/src/collectors/common-contexts/mem.pgfaults.h b/src/collectors/common-contexts/mem.pgfaults.h deleted file mode 100644 index 503b9f7e..00000000 --- a/src/collectors/common-contexts/mem.pgfaults.h +++ /dev/null @@ -1,40 +0,0 @@ -// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef NETDATA_MEM_PGFAULTS_H
-#define NETDATA_MEM_PGFAULTS_H
-
-#include "common-contexts.h"
-
-static inline void common_mem_pgfaults(uint64_t minor, uint64_t major, int update_every) {
- static RRDSET *st_pgfaults = NULL;
- static RRDDIM *rd_minor = NULL, *rd_major = NULL;
-
- if(unlikely(!st_pgfaults)) {
- st_pgfaults = rrdset_create_localhost(
- "mem"
- , "pgfaults"
- , NULL
- , "page faults"
- , NULL
- , "Memory Page Faults"
- , "faults/s"
- , _COMMON_PLUGIN_NAME
- , _COMMON_PLUGIN_MODULE_NAME
- , NETDATA_CHART_PRIO_MEM_SYSTEM_PGFAULTS
- , update_every
- , RRDSET_TYPE_LINE
- );
-
- rrdset_flag_set(st_pgfaults, RRDSET_FLAG_DETAIL);
-
- rd_minor = rrddim_add(st_pgfaults, "minor", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
- rd_major = rrddim_add(st_pgfaults, "major", NULL, -1, 1, RRD_ALGORITHM_INCREMENTAL);
- }
-
- // this always have to be in base units, so that exporting sends base units to other time-series db
- rrddim_set_by_pointer(st_pgfaults, rd_minor, minor);
- rrddim_set_by_pointer(st_pgfaults, rd_major, major);
- rrdset_done(st_pgfaults);
-}
-
-#endif //NETDATA_MEM_PGFAULTS_H
|