.type = DATA_TYPE_DOUBLE,
.ops = {
.get = process_get_cpu_util,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_MEM_VIRT",
.type = DATA_TYPE_UINT64,
.ops = {
.get = process_get_mem_virt,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_MEM_RSS",
.type = DATA_TYPE_UINT64,
.ops = {
.get = process_get_mem_rss,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_MEM_RSS_PERCENT",
.type = DATA_TYPE_DOUBLE,
.ops = {
.get = process_get_mem_rss,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_DISK_READ_BPS",
.type = DATA_TYPE_UINT,
.ops = {
.get = process_get_disk_bps,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_DISK_WRITE_BPS",
.type = DATA_TYPE_UINT,
.ops = {
.get = process_get_disk_bps,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_COMM",
.type = DATA_TYPE_STRING,
.ops = {
.get = process_get_context_data,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_PGID",
.type = DATA_TYPE_INT,
.ops = {
.get = process_get_context_data,
+ .is_supported = resource_attr_supported_always,
},
}, {
.name = "PROCESS_ATTR_PPID",
.type = DATA_TYPE_INT,
.ops = {
.get = process_get_context_data,
+ .is_supported = resource_attr_supported_always,
},
},
};