resource: Add system resource driver 12/271212/16
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 10 Feb 2022 06:41:49 +0000 (15:41 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 18 Feb 2022 07:52:00 +0000 (16:52 +0900)
commit09879c7e7bdede6a667135e7c790c4f2ef272c0b
treee1937fe555a9f695cdee77d7cd81ff632d50c915
parentf0e75e332db982d3e1755074588c2142b18d8644
resource: Add system resource driver

The system resource driver provides the system attributes expressing
the whole system information.

[Detailed description of added system attributes]
- SYSTEM_CPU_UTIL : Average cpu utilization of all cpus
- SYSTEM_CPU_USER_UTIL : Average cpu utilization of all cpus on user
- SYSTEM_CPU_SYS_UTIL : Average cpu utilization of all cpus on system
- SYSTEM_PER_CPU_UTIL : Per-cpu utilization of all cpus
- SYSTEM_PER_CPU_USER_UTIL : Per-cpu utilization on user
- SYSTEM_PER_CPU_SYS_UTIL : Per-cpu utilization on system
- SYSTEM_POSSIBLE_CPU : the number of all cpus regardless cpu online status.
- SYSTEM_ONLINE_CPU : the number of online cpu.

Change-Id: Ide1673e8dae0076bb5dd47002457d0ff0e43649b
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
CMakeLists.txt
lib/tmonitor/tmonitor.h
src/resource/resource-system.c [new file with mode: 0644]