plugin-api: resourced: Add a skeleton of get_kill_candidates_post funcs 95/294695/14
authorUnsung Lee <unsung.lee@samsung.com>
Thu, 22 Jun 2023 02:43:05 +0000 (11:43 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Sun, 30 Jul 2023 04:46:33 +0000 (13:46 +0900)
commitfd9e938afd953da3504b82ef76da4a78cb84e03b
tree6892e59cdf6fba794f2949ddc107e0f1a596add3
parentc2888ff6aeec24b764c51f7f7c1581091cc36f82
plugin-api: resourced: Add a skeleton of get_kill_candidates_post funcs

Add a skeleton of three get_kill_candidates_post funcs. These functions
are directly mapped to get_kill_candidates_post funcs in resourced backend.

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

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: I2a3c42635ce105f4400a68c8c382fb6548a11f8e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk-interface.h
src/plugin-api/resourced/include/syscommon-plugin-resourced-memory-lmk.h
src/plugin-api/resourced/src/syscommon-plugin-resourced-memory-lmk.c