util: kernel: Fix to check memory map info precisely 35/277435/1 accepted/tizen/unified/20220708.132851 submit/tizen/20220707.045609
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 5 Jul 2022 10:09:51 +0000 (19:09 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 7 Jul 2022 02:54:31 +0000 (11:54 +0900)
commitdc0876d6aaa583fb46792b4412fcbe72b413b9b5
treebb52e4bc7194464ccf1d000be4f22b70f5e62738
parent5b88ee60d6f60e0997b3c036911ad3432adcc88b
util: kernel: Fix to check memory map info precisely

Since both "Pss:" and "SwapPss:" nodes has "Pss:" as substring, so
just strstr() cannot distinguish them. To fix it, not just check
section including node name, but check section starting with node
name.

Change-Id: Ia113d57b84414b9483b098920634c7f9f4b7461d
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/util/kernel.c