lowmem: Support 'get_kill_candidates_post' funcs 59/294659/19
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 21 Jun 2023 10:31:02 +0000 (19:31 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 31 Jul 2023 02:39:59 +0000 (02:39 +0000)
commitc5db1ca1f029b6d99473261df988d1496b84c077
tree9c6b01de4783514fcf43ef48ee7a95636ac0e6d9
parentb248697c0ed20aef133b676f1c9dc342a10f12c1
lowmem: Support 'get_kill_candidates_post' funcs

Support LMK governor post funcs which will be called after
LMK governor function to reorder a victim candidate list

resourced LMK needs to reorder victim candidates list according to
serveral conditions (e.g., working set size, foreground app status)

resourced supports three type of get_kill_candidates_post ops newly
  - int syscommon_plugin_resourced_memory_lmk_get_kill_candidates_post(
  GArray *candidates)
  to consider user custom governor policy
  - int syscommon_plugin_resourced_memory_lmk_get_kill_candidates_post_with_wss(
  GArray *candidates)
  to consider working set size of app
  - int syscommon_plugin_resourced_memory_lmk_get_kill_candidates_post_with_foreground(
  GArray *candidates)
  to consider window information of app

Change-Id: I32bab160d66d05cd986b9f84c942ea1d2b8a59c4
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/resource-limiter/memory/lowmem-governor.c
src/resource-limiter/memory/lowmem.c
src/resource-limiter/memory/lowmem.h