summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 51fff4e)
raw | patch | inline | side by side (parent: 51fff4e)
author | Jakub Jankowski <shastah> | |
Thu, 15 Oct 2015 23:30:33 +0000 (23:30 +0000) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 2 Dec 2015 20:38:46 +0000 (21:38 +0100) |
Fixes: #1307
src/vmem.c | patch | blob | history |
diff --git a/src/vmem.c b/src/vmem.c
index b8febcecf748de0ec86030639a990f2eb0edb521..b1c02a67a0c0f73568b6469902b99632327feae2 100644 (file)
--- a/src/vmem.c
+++ b/src/vmem.c
value_t value = { .derive = counter };
submit_one (inst, "vmpage_action", "refill", value);
}
+ else if (strncmp ("pgsteal_kswapd_", key, strlen ("pgsteal_kswapd_")) == 0)
+ {
+ char *inst = key + strlen ("pgsteal_kswapd_");
+ value_t value = { .derive = counter };
+ submit_one (inst, "vmpage_action", "steal_kswapd", value);
+ }
+ else if (strncmp ("pgsteal_direct_", key, strlen ("pgsteal_direct_")) == 0)
+ {
+ char *inst = key + strlen ("pgsteal_direct_");
+ value_t value = { .derive = counter };
+ submit_one (inst, "vmpage_action", "steal_direct", value);
+ }
+ /* For backwards compatibility (somewhen before 4.2.3) */
else if (strncmp ("pgsteal_", key, strlen ("pgsteal_")) == 0)
{
char *inst = key + strlen ("pgsteal_");