resource: system: Add MEMORY_PRESSURE_LEVEL attribute 16/287916/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 12 Jan 2023 12:39:12 +0000 (21:39 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 7 Feb 2023 17:14:04 +0000 (09:14 -0800)
commit60fc91b3c4d56826ca216341e235c47bcecf36d3
tree04a595f44f17225e19978c36c33c63a8f1b43668
parenta512645a82743e746463e73271426a57d1a8c3b9
resource: system: Add MEMORY_PRESSURE_LEVEL attribute

This adds the new attribute for representing pressure level of memory
as follows:
- Name: SYSTEM_ATTR_MEMORY_PRESSURE_LEVEL
- Type: SYSCOMMON_RESMAN_DATA_TYPE_INT
- Description:
    this attribute represents the current stall level for memory,
    which means how long delays memory allocation due to memory
    leakage. The level ranges between 0 and 4 (higher is worse).

Change-Id: Ibdce4a983384743e2316967744ac843a6ebb15e2
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
lib/resource-monitor/resource-monitor.h
src/resource/resource-system.c
tools/resource-monitor/resource-monitor.c