util: resource: Add resource flag to express the specific features 26/279426/4
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 8 Aug 2022 18:46:42 +0000 (03:46 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Aug 2022 08:54:40 +0000 (17:54 +0900)
commitafefb9aafdcb6a6fd5a695e7e08f268a99a4d05d
treea7a9e8630f739b07e29e9fe52639d24b1d4a5fb0
parenta155d4bce4d1ebc58dc1d287b8f9f87fcfc50c87
util: resource: Add resource flag to express the specific features

Each resource are able to have the non-common features.
The resource flag will be used to indicate the characteristics
of resource.

- RESOURCE_FLAG_COUNT_ONLY_ONE
  : Some resource's resource count is only one on all board such as system and
  memory resources. Add this flag when want to return 1 as resource count.
- RESOURCE_FLAG_PROCESS
  : process and process-group are not physical resource like CPU/GPU/Memory.
  Sometimes, it should be handled by the different handling. In order to
  separate out them, use this flag.

Change-Id: Ic7df2cae2105b14382c0f084c30fbbcde5efdac4
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/util/resource.h
src/resource/resource-memory.c
src/resource/resource-process-group.c
src/resource/resource-process.c
src/resource/resource-system.c
src/util/resource.c
tests/integration-test/resource-monitor-tests.cpp
tools/resource-monitor/resource-monitor.c