summaryrefslogtreecommitdiffstats
path: root/src/collectors/common-contexts/system.interrupts.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/collectors/common-contexts/system.interrupts.h
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/collectors/common-contexts/system.interrupts.h')
-rw-r--r--src/collectors/common-contexts/system.interrupts.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/src/collectors/common-contexts/system.interrupts.h b/src/collectors/common-contexts/system.interrupts.h
deleted file mode 100644
index dffd70572..000000000
--- a/src/collectors/common-contexts/system.interrupts.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#ifndef NETDATA_SYSTEM_INTERRUPTS_H
-#define NETDATA_SYSTEM_INTERRUPTS_H
-
-#include "common-contexts.h"
-
-#define _
-
-static inline void common_interrupts(uint64_t interrupts, int update_every, char *ext_module) {
- static RRDSET *st_intr = NULL;
- static RRDDIM *rd_interrupts = NULL;
-
- char *module = (!ext_module) ? _COMMON_PLUGIN_MODULE_NAME: ext_module;
-
- if(unlikely(!st_intr)) {
- st_intr = rrdset_create_localhost( "system"
- , "intr"
- , NULL
- , "interrupts"
- , NULL
- , "CPU Interrupts"
- , "interrupts/s"
- , _COMMON_PLUGIN_NAME
- , module
- , NETDATA_CHART_PRIO_SYSTEM_INTR
- , update_every
- , RRDSET_TYPE_LINE);
-
- rrdset_flag_set(st_intr, RRDSET_FLAG_DETAIL);
-
- rd_interrupts = rrddim_add(st_intr, "interrupts", NULL, 1, 1, RRD_ALGORITHM_INCREMENTAL);
- }
-
- rrddim_set_by_pointer(st_intr, rd_interrupts, (collected_number)interrupts);
- rrdset_done(st_intr);
-}
-
-#endif //NETDATA_SYSTEM_INTERRUPTS_H