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:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-08 16:27:08 +0000
commit81581f9719bc56f01d5aa08952671d65fda9867a (patch)
tree0f5c6b6138bf169c23c9d24b1fc0a3521385cb18 /collectors/slabinfo.plugin/slabinfo.c
parentReleasing debian version 1.38.1-1. (diff)
downloadnetdata-81581f9719bc56f01d5aa08952671d65fda9867a.tar.xz
netdata-81581f9719bc56f01d5aa08952671d65fda9867a.zip
Merging upstream version 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