pass: resmon: Add resmon source's skeleton code 47/170447/3
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 13 Feb 2018 07:17:16 +0000 (16:17 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 15 Mar 2018 04:45:11 +0000 (13:45 +0900)
commitca5fa7b87cf90c843c2a44ac2720360661f27204
treefb94932b6931b0df317b62ea7ac0ec9beab548ec
parent204e36c7c18aa76dfd5c0746993968dfd6f57518
pass: resmon: Add resmon source's skeleton code

The RESMON (resource monitor) module will monitor the various h/w resource
such as CPU, GPU, Memory, Network, Filesystem and so on. Each h/w resource
requires the common monitoring API like timer hanlding function. Add resmon
source's skeleton code.

RESMON makes the following two files to implement ths resource monitor:
- pass-resmon.c : Implment pass_resmon_init/exit() and common monitoring API
  which are used for all resource monitoring. It contains the exported API of
  both timer-based and uevent-baed resource monitor.

- pass-resmon-impl.c : Implement the h/w resource monitoring through HAL
  (Hardware Abstract Layer). Each resource-monitor would collect the data of
  h/w resource with their own method. For example, some resource-monitor just
  reads the value from fixed sysfs interface. On the other hand, other
  resource-monitor parses the multiple data and then make the meaningfull data
  from raw data.

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