pass: resmon: Add new Resource Monitor (resmon) module 46/170446/3
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 2 Feb 2018 05:14:28 +0000 (14:14 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 15 Mar 2018 04:45:08 +0000 (13:45 +0900)
commit204e36c7c18aa76dfd5c0746993968dfd6f57518
treef5c56a124161f2f2bee9d9df15e7f53ac6c6ce54
parentec63b47f173e9fc871fd39619aca93235a59b38c
pass: resmon: Add new Resource Monitor (resmon) module

PASS required the resource monitoring in order to decide the current system
status. Even if it was required, PASS had not supported the separate
resource monitor module.

Add Resource Monitor (resmon) module to support the resource monitoring.
Other modules in PASS are able to use resmon in order to monitor/collect
the resource data such as frequency, utilization, file/memory's usage and so on.

Resource-Monitor provides two monitoring method as following:
- Timer-based resource monitor like polling method. There are both oneshot
  and periodic timer and it requires the interval as the mandatory.
- Uevent-based resource monitor like interrupt method. It notifies the result
  of monitoring when receiving the uevent. But, uevent-based resource monitor
  will be implemented on later.

[Function description]
- Timer-based resource monitor
int pass_resmon_update_timer_interval()
int pass_resmon_register_timer()
int pass_resmon_unregister_timer()

Change-Id: I4ec40f570fa0083a0fc22754174e63033cd99836
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
include/pass/common.h
src/pass/pass-resmon-internal.h [new file with mode: 0644]
src/pass/pass-resmon.c [new file with mode: 0644]
src/pass/pass-resmon.h [new file with mode: 0644]
src/pass/pass.c
src/pass/pass.h