Searched refs:SubType (Results 1 – 8 of 8) sorted by relevance
/openbmc/phosphor-health-monitor/test/ |
H A D | test_health_metric_config.cpp | 22 bool isValidSubType(metric::Type type, metric::SubType subType) in isValidSubType() 28 using set_t = std::set<metric::SubType>; in isValidSubType() 33 return set_t{metric::SubType::cpuTotal, metric::SubType::cpuKernel, in isValidSubType() 34 metric::SubType::cpuUser} in isValidSubType() 38 return set_t{metric::SubType::memoryAvailable, in isValidSubType() 39 metric::SubType::memoryBufferedAndCached, in isValidSubType() 40 metric::SubType::memoryFree, in isValidSubType() 41 metric::SubType::memoryShared, in isValidSubType() 42 metric::SubType::memoryTotal} in isValidSubType() 47 return set_t{metric::SubType::NA}.contains(subType); in isValidSubType()
|
H A D | test_health_metric.cpp | 38 config.subType = SubType::cpuKernel; in SetUp()
|
/openbmc/phosphor-health-monitor/ |
H A D | health_metric_config.cpp | 54 {"CPU", SubType::cpuTotal}, 55 {"CPU_User", SubType::cpuUser}, 56 {"CPU_Kernel", SubType::cpuKernel}, 57 {"Memory", SubType::memoryTotal}, 58 {"Memory_Free", SubType::memoryFree}, 59 {"Memory_Available", SubType::memoryAvailable}, 60 {"Memory_Shared", SubType::memoryShared}, 61 {"Memory_Buffered_And_Cached", SubType::memoryBufferedAndCached}, 62 {"Storage_RW", SubType::NA}, 63 {"Storage_TMP", SubType::NA}}; [all …]
|
H A D | health_metric_collection.cpp | 71 if (config.subType == MetricIntf::SubType::cpuTotal) in readCPU() 82 else if (config.subType == MetricIntf::SubType::cpuKernel) in readCPU() 86 else if (config.subType == MetricIntf::SubType::cpuUser) in readCPU() 121 std::unordered_map<MetricIntf::SubType, double> memoryValues; in readMemory() 135 memoryValues[MetricIntf::SubType::memoryAvailable] = value; in readMemory() 139 memoryValues[MetricIntf::SubType::memoryFree] = value; in readMemory() 143 memoryValues[MetricIntf::SubType::memoryBufferedAndCached] += value; in readMemory() 147 memoryValues[MetricIntf::SubType::memoryTotal] = value; in readMemory() 151 memoryValues[MetricIntf::SubType::memoryShared] += value; in readMemory() 159 auto total = memoryValues.at(MetricIntf::SubType::memoryTotal) * 1024; in readMemory()
|
H A D | health_metric.cpp | 17 SubType subType) -> std::string in getPath() 22 case SubType::cpuTotal: in getPath() 26 case SubType::cpuKernel: in getPath() 30 case SubType::cpuUser: in getPath() 34 case SubType::memoryAvailable: in getPath() 38 case SubType::memoryBufferedAndCached: in getPath() 43 case SubType::memoryFree: in getPath() 47 case SubType::memoryShared: in getPath() 51 case SubType::memoryTotal: in getPath() 55 case SubType::NA: in getPath()
|
H A D | health_metric_config.hpp | 27 enum class SubType enum 44 auto to_string(SubType) -> std::string; 73 SubType subType = SubType::NA;
|
H A D | health_metric_collection.hpp | 29 using time_map_t = std::unordered_map<MetricIntf::SubType, uint64_t>;
|
H A D | health_metric.hpp | 73 auto getPath(MType type, std::string name, SubType subType) -> std::string;
|