From: Dongwoo Lee Date: Tue, 22 Mar 2022 01:22:46 +0000 (+0900) Subject: resource: process: Set attributes as always supported X-Git-Tag: submit/tizen/20220322.020653^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a92ec779bffa95aaa82d66b42895cad28e24abea;p=platform%2Fcore%2Fsystem%2Fpass.git resource: process: Set attributes as always supported To support skeleton process resource driver which is representing process on demand, it should be possible to set interesting attributes list before set controls. To this end, all attributes in process is now set to always supported. Change-Id: Ib595d9093b90c860d9f8fb3922d1d295a9957af8 Signed-off-by: Dongwoo Lee --- diff --git a/src/resource/resource-process.c b/src/resource/resource-process.c index 8baf5dc..0e050af 100644 --- a/src/resource/resource-process.c +++ b/src/resource/resource-process.c @@ -219,6 +219,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_DOUBLE, .ops = { .get = process_get_cpu_util, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_MEM_VIRT", @@ -226,6 +227,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_UINT64, .ops = { .get = process_get_mem_virt, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_MEM_RSS", @@ -233,6 +235,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_UINT64, .ops = { .get = process_get_mem_rss, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_MEM_RSS_PERCENT", @@ -240,6 +243,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_DOUBLE, .ops = { .get = process_get_mem_rss, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_DISK_READ_BPS", @@ -247,6 +251,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_UINT, .ops = { .get = process_get_disk_bps, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_DISK_WRITE_BPS", @@ -254,6 +259,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_UINT, .ops = { .get = process_get_disk_bps, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_COMM", @@ -261,6 +267,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_STRING, .ops = { .get = process_get_context_data, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_PGID", @@ -268,6 +275,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_INT, .ops = { .get = process_get_context_data, + .is_supported = resource_attr_supported_always, }, }, { .name = "PROCESS_ATTR_PPID", @@ -275,6 +283,7 @@ static const struct resource_attribute process_attrs[] = { .type = DATA_TYPE_INT, .ops = { .get = process_get_context_data, + .is_supported = resource_attr_supported_always, }, }, };