From 5ce165ec2e7b9723bdad79ddbc4b6e1b3037a1a7 Mon Sep 17 00:00:00 2001 From: Suren Baghdasaryan Date: Mon, 25 Mar 2019 11:01:00 -0700 Subject: [PATCH] lmkd: Fix meminfo logs missing SwapTotal and having wrong field order Previous change If154dc364711bf7c86f32e24ddcd10be359386de called "lmkd: Do not downgrade/ignore events when swap is full" added SwapTotal into meminfo structure without adding the field into events.logtag file. This results in logs which missing field and all fields starting with "SwapFree" get reordered as a result. Fix this by adding the missing field into events.logtag. Bug: 129274901 Test: Confirm correct information in the logcat Change-Id: Ia4de3790a7e9d49a0e4cba8b3161a715eaf6532e Signed-off-by: Suren Baghdasaryan --- lmkd/event.logtags | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lmkd/event.logtags b/lmkd/event.logtags index 7c2cd18d2..065c6db6d 100644 --- a/lmkd/event.logtags +++ b/lmkd/event.logtags @@ -35,4 +35,4 @@ # TODO: generate ".java" and ".h" files with integer constants from this file. # for meminfo logs -10195355 meminfo (MemFree|1),(Cached|1),(SwapCached|1),(Buffers|1),(Shmem|1),(Unevictable|1),(SwapFree|1),(ActiveAnon|1),(InactiveAnon|1),(ActiveFile|1),(InactiveFile|1),(SReclaimable|1),(SUnreclaim|1),(KernelStack|1),(PageTables|1),(ION_heap|1),(ION_heap_pool|1),(CmaFree|1) +10195355 meminfo (MemFree|1),(Cached|1),(SwapCached|1),(Buffers|1),(Shmem|1),(Unevictable|1),(SwapTotal|1),(SwapFree|1),(ActiveAnon|1),(InactiveAnon|1),(ActiveFile|1),(InactiveFile|1),(SReclaimable|1),(SUnreclaim|1),(KernelStack|1),(PageTables|1),(ION_heap|1),(ION_heap_pool|1),(CmaFree|1)