summaryrefslogtreecommitdiffstats
path: root/collectors/slabinfo.plugin/slabinfo.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:04 +0000
commita836a244a3d2bdd4da1ee2641e3e957850668cea (patch)
treecb87c75b3677fab7144f868435243f864048a1e6 /collectors/slabinfo.plugin/slabinfo.c
parentAdding upstream version 1.38.1. (diff)
downloadnetdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.tar.xz
netdata-a836a244a3d2bdd4da1ee2641e3e957850668cea.zip
Adding upstream version 1.39.0.upstream/1.39.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors/slabinfo.plugin/slabinfo.c')
-rw-r--r--collectors/slabinfo.plugin/slabinfo.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/collectors/slabinfo.plugin/slabinfo.c b/collectors/slabinfo.plugin/slabinfo.c
index 52b53cd20..25b96e386 100644
--- a/collectors/slabinfo.plugin/slabinfo.c
+++ b/collectors/slabinfo.plugin/slabinfo.c
@@ -171,19 +171,19 @@ struct slabinfo *read_file_slabinfo() {
char *name = procfile_lineword(ff, l, 0);
struct slabinfo *s = get_slabstruct(name);
- s->active_objs = str2uint64_t(procfile_lineword(ff, l, 1));
- s->num_objs = str2uint64_t(procfile_lineword(ff, l, 2));
- s->obj_size = str2uint64_t(procfile_lineword(ff, l, 3));
- s->obj_per_slab = str2uint64_t(procfile_lineword(ff, l, 4));
- s->pages_per_slab = str2uint64_t(procfile_lineword(ff, l, 5));
-
- s->tune_limit = str2uint64_t(procfile_lineword(ff, l, 7));
- s->tune_batchcnt = str2uint64_t(procfile_lineword(ff, l, 8));
- s->tune_shared_factor = str2uint64_t(procfile_lineword(ff, l, 9));
-
- s->data_active_slabs = str2uint64_t(procfile_lineword(ff, l, 11));
- s->data_num_slabs = str2uint64_t(procfile_lineword(ff, l, 12));
- s->data_shared_avail = str2uint64_t(procfile_lineword(ff, l, 13));
+ s->active_objs = str2uint64_t(procfile_lineword(ff, l, 1), NULL);
+ s->num_objs = str2uint64_t(procfile_lineword(ff, l, 2), NULL);
+ s->obj_size = str2uint64_t(procfile_lineword(ff, l, 3), NULL);
+ s->obj_per_slab = str2uint64_t(procfile_lineword(ff, l, 4), NULL);
+ s->pages_per_slab = str2uint64_t(procfile_lineword(ff, l, 5), NULL);
+
+ s->tune_limit = str2uint64_t(procfile_lineword(ff, l, 7), NULL);
+ s->tune_batchcnt = str2uint64_t(procfile_lineword(ff, l, 8), NULL);
+ s->tune_shared_factor = str2uint64_t(procfile_lineword(ff, l, 9), NULL);
+
+ s->data_active_slabs = str2uint64_t(procfile_lineword(ff, l, 11), NULL);
+ s->data_num_slabs = str2uint64_t(procfile_lineword(ff, l, 12), NULL);
+ s->data_shared_avail = str2uint64_t(procfile_lineword(ff, l, 13), NULL);
uint32_t memperslab = s->pages_per_slab * slab_pagesize;
// Internal fragmentation: loss per slab, due to objects not being a multiple of pagesize