From: zzzyhtheonly Date: Fri, 26 May 2023 08:25:11 +0000 (+0800) Subject: vmem: add metrics starting with `pgrefill` X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9369ed71450430266ebd7ca410022c2b1b548fb4;p=thirdparty%2Fcollectd.git vmem: add metrics starting with `pgrefill` Signed-off-by: zzzyhtheonly Signed-off-by: luffysong --- diff --git a/src/vmem.c b/src/vmem.c index aed18b420..75a4395db 100644 --- a/src/vmem.c +++ b/src/vmem.c @@ -215,6 +215,9 @@ static int vmem_read(void) { char *inst = key + strlen("pgscan_"); value_t value = {.derive = counter}; submit_one(inst, "vmpage_action", "scan", value); + } else if (strncmp("pgrefill", key, strlen("pgrefill")) == 0) { + value_t value = {.derive = counter}; + submit_one(NULL, "vmpage_action", "refill", value); } /*