lmkd: Remove unused workingset_refault parsing from zoneinfo
workingset_refault field in zoneinfo is currently being parsed but is not used. Instead the same field in vmstat is being used to capture the number of file-backed workingset refaults. Remove the unused field parsing code. Bug: 175617952 Test: lmkd_unit_test Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I79641a833c252cf50ac08c0c7d17c8294236d82d
This commit is contained in:
parent
07acc19c82
commit
9f8d3dec72
5
lmkd.cpp
5
lmkd.cpp
|
|
@ -336,21 +336,18 @@ struct zoneinfo_zone {
|
||||||
enum zoneinfo_node_field {
|
enum zoneinfo_node_field {
|
||||||
ZI_NODE_NR_INACTIVE_FILE = 0,
|
ZI_NODE_NR_INACTIVE_FILE = 0,
|
||||||
ZI_NODE_NR_ACTIVE_FILE,
|
ZI_NODE_NR_ACTIVE_FILE,
|
||||||
ZI_NODE_WORKINGSET_REFAULT,
|
|
||||||
ZI_NODE_FIELD_COUNT
|
ZI_NODE_FIELD_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char* const zoneinfo_node_field_names[ZI_NODE_FIELD_COUNT] = {
|
static const char* const zoneinfo_node_field_names[ZI_NODE_FIELD_COUNT] = {
|
||||||
"nr_inactive_file",
|
"nr_inactive_file",
|
||||||
"nr_active_file",
|
"nr_active_file",
|
||||||
"workingset_refault",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
union zoneinfo_node_fields {
|
union zoneinfo_node_fields {
|
||||||
struct {
|
struct {
|
||||||
int64_t nr_inactive_file;
|
int64_t nr_inactive_file;
|
||||||
int64_t nr_active_file;
|
int64_t nr_active_file;
|
||||||
int64_t workingset_refault;
|
|
||||||
} field;
|
} field;
|
||||||
int64_t arr[ZI_NODE_FIELD_COUNT];
|
int64_t arr[ZI_NODE_FIELD_COUNT];
|
||||||
};
|
};
|
||||||
|
|
@ -371,7 +368,6 @@ struct zoneinfo {
|
||||||
int64_t totalreserve_pages;
|
int64_t totalreserve_pages;
|
||||||
int64_t total_inactive_file;
|
int64_t total_inactive_file;
|
||||||
int64_t total_active_file;
|
int64_t total_active_file;
|
||||||
int64_t total_workingset_refault;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Fields to parse in /proc/meminfo */
|
/* Fields to parse in /proc/meminfo */
|
||||||
|
|
@ -1718,7 +1714,6 @@ static int zoneinfo_parse(struct zoneinfo *zi) {
|
||||||
}
|
}
|
||||||
zi->total_inactive_file += node->fields.field.nr_inactive_file;
|
zi->total_inactive_file += node->fields.field.nr_inactive_file;
|
||||||
zi->total_active_file += node->fields.field.nr_active_file;
|
zi->total_active_file += node->fields.field.nr_active_file;
|
||||||
zi->total_workingset_refault += node->fields.field.workingset_refault;
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue