Add new functions for managing process group 01/264701/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 28 Sep 2021 10:00:10 +0000 (19:00 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 29 Sep 2021 04:12:36 +0000 (13:12 +0900)
commit5992b182a75c5d636b28a1bb7d1b40d4b765eff7
tree8d7501fe6644ebad3d8a3d217ca83b4cd9dcc7b1
parent3d4bd8f87ab2dc2097b0faba3c137545d79787ed
Add new functions for managing process group

To manage oom score of child processes of the application properly,
AMD and resourced must know the process ID. When the child process calls
the aul_proc_group_add() function, AMD sends the app group signal to
resourced to notify the process group information.
If the oom score of the main process is changed, the oom score of the
child process is also changed by resourced.

Adds:
 - aul_proc_group_add()
 - aul_proc_group_remove()

Change-Id: Ic02f958bf32110e794efbdacc64c6cf8e3d8cfe4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
include/aul_cmd.h
include/aul_proc_group.h [new file with mode: 0644]
src/aul_cmd.c
src/aul_proc_group.cc [new file with mode: 0644]
tool/aul_test/aul_test.c