| /openbmc/phosphor-health-monitor/test/ |
| H A D | test_health_metric_config.cpp | 22 bool isValidSubType(metric::Type type, metric::SubType subType) in isValidSubType() argument 25 << " Metric SubType: " << std::to_underlying(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() 35 .contains(subType); 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() [all …]
|
| /openbmc/entity-manager/configurations/meta/ventura/ |
| H A D | ventura_scm.json | 603 "SubType": "LeakSensingCable", string 611 "SubType": "LeakSensingCable", string 619 "SubType": "LeakSensingCable", string 627 "SubType": "LeakSensingCable", string 635 "SubType": "LeakSensingCable", string 643 "SubType": "LeakSensingCable", string 651 "SubType": "LeakSensingCable", string 659 "SubType": "LeakSensingCable", string 667 "SubType": "LeakSensingCable", string 675 "SubType": "LeakSensingCable", string [all …]
|
| /openbmc/phosphor-health-monitor/ |
| 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() 94 activeTimeDiff = activeTime - preActiveTime[config.subType]; in readCPU() 95 totalTimeDiff = totalTime - preTotalTime[config.subType]; in readCPU() 98 preActiveTime[config.subType] = activeTime; in readCPU() 99 preTotalTime[config.subType] = totalTime; in readCPU() 102 debug("CPU Metric {SUBTYPE}: {VALUE}", "SUBTYPE", config.subType, in readCPU() 121 std::unordered_map<MetricIntf::SubType, double> memoryValues; in readMemory() 135 memoryValues[MetricIntf::SubType::memoryAvailable] = value; in readMemory() [all …]
|
| H A D | health_metric_config.cpp | 53 static const auto validSubTypes = std::unordered_map<std::string, SubType>{ 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}, [all …]
|
| H A D | health_metric.cpp | 16 auto HealthMetric::getPath(MType type, std::string name, SubType subType) in getPath() argument 20 switch (subType) 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() [all …]
|
| H A D | health_metric_config.hpp | 27 enum class SubType enum 39 // Types for which subtype is not applicable 44 auto to_string(SubType) -> std::string; 72 /** @brief The metric subtype. */ 73 SubType subType = SubType::NA; member
|
| H A D | health_metric_collection.hpp | 29 using time_map_t = std::unordered_map<MetricIntf::SubType, uint64_t>; 44 /** @brief Map of health metrics by subtype */ 46 /** @brief Map for active time by subtype */ 48 /** @brief Map for total time by subtype */
|
| H A D | health_metric.hpp | 49 MetricIntf(bus, getPath(type, config.name, config.subType).c_str(), in HealthMetric() 72 /** @brief Get the object path for the given type, name and subtype */ 73 auto getPath(MType type, std::string name, SubType subType) -> std::string;
|
| /openbmc/phosphor-logging/extensions/openpower-pels/ |
| H A D | user_data_json.cpp | 43 std::string prettyJSON(uint16_t componentID, uint8_t subType, uint8_t version, 48 output[pv::subSection] = std::to_string(subType); 92 * @param[in] subType - The subtype from the UserData section header in prettyJSON() 99 std::string getCBORJSON(uint16_t componentID, uint8_t subType, uint8_t version, in prettyJSON() 123 return prettyJSON(componentID, subType, version, creatorID, json); in getCBORJSON() 134 * @param[in] subType - The subtype from the UserData section header in getCBORJSON() 141 std::string getTextJSON(uint16_t componentID, uint8_t subType, uint8_t version, 176 return prettyJSON(componentID, subType, versio in getTextJSON() 56 prettyJSON(uint16_t componentID,uint8_t subType,uint8_t version,uint8_t creatorID,const orderedJSON & json) prettyJSON() argument 112 getCBORJSON(uint16_t componentID,uint8_t subType,uint8_t version,uint8_t creatorID,const std::vector<uint8_t> & data) getCBORJSON() argument 154 getTextJSON(uint16_t componentID,uint8_t subType,uint8_t version,uint8_t creatorID,const std::vector<uint8_t> & data) getTextJSON() argument 205 getBuiltinFormatJSON(uint16_t componentID,uint8_t subType,uint8_t version,const std::vector<uint8_t> & data,uint8_t creatorID) getBuiltinFormatJSON() argument 257 getPythonJSON(uint16_t componentID,uint8_t subType,uint8_t version,const std::vector<uint8_t> & data,uint8_t creatorID) getPythonJSON() argument 403 getJSON(uint16_t componentID,uint8_t subType,uint8_t version,const std::vector<uint8_t> & data,uint8_t creatorID,const std::vector<std::string> & plugins) getJSON() argument [all...] |
| H A D | section_header.hpp | 24 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader() 32 * @param[in] subType - the sub-type field 35 SectionHeader(uint16_t id, uint16_t size, uint8_t version, uint8_t subType, in SectionHeader() 37 id(id), size(size), version(version), subType(subType), in SectionHeader() 59 uint8_t subType; member 74 return sizeof(id) + sizeof(size) + sizeof(version) + sizeof(subType) + in flattenedSize() 87 s >> header.id >> header.size >> header.version >> header.subType >> in operator >>() 100 s << header.id << header.size << header.version << header.subType in operator <<()
|
| H A D | extended_user_data.hpp | 47 * The component ID, subtype, and version are used to identify 51 * @param[in] subType - The type of user data 54 ExtendedUserData(uint16_t componentID, uint8_t subType, uint8_t version, 100 * @param[in] subType - The type of user data 105 void updateDataSection(const uint8_t subType, const uint16_t componentId, in updateDataSection() argument 112 // Update component Id & subtype in section header of ED in updateDataSection() 114 _header.subType = static_cast<uint8_t>(subType); in updateDataSection()
|
| H A D | user_data_json.hpp | 15 * @param[in] subType - The subtype from the UserData section header 24 uint16_t componentID, uint8_t subType, uint8_t version,
|
| H A D | extended_user_data.cpp | 55 ExtendedUserData::ExtendedUserData(uint16_t componentID, uint8_t subType, in ExtendedUserData() 61 _header.subType = subType; in ExtendedUserData() 92 return user_data::getJSON(_header.componentID, _header.subType, in validate() 67 ExtendedUserData(uint16_t componentID,uint8_t subType,uint8_t version,uint8_t creatorID,const std::vector<uint8_t> & data) ExtendedUserData() argument
|
| H A D | user_data.cpp | 53 UserData::UserData(uint16_t componentID, uint8_t subType, uint8_t version, in UserData() 59 _header.subType = subType; in UserData() 86 return user_data::getJSON(_header.componentID, _header.subType, in validate() 65 UserData(uint16_t componentID,uint8_t subType,uint8_t version,const std::vector<uint8_t> & data) UserData() argument
|
| H A D | pel.cpp | 64 file.subType == sbe::sbeFFDCSubType; in PEL() 151 << std::hex << regEntry.componentID << " " << file.subType in PEL() 385 getNumberString("%d", section.header().subType), 1); in printSectionInJSON() 474 "Subtype = {SUBTYPE}, Version = {VERSION}", in addUserDataSection() 476 userData->header().componentID, "SUBTYPE", in addUserDataSection() 477 userData->header().subType, "VERSION", in addUserDataSection() 496 (file.subType == jsonCalloutSubtype)) in addUserDataSection() 570 // Update subtype and component id in updateSysInfoInExtendedUserDataSection() 571 auto subType in updateSysInfoInExtendedUserDataSection() 583 auto subType = static_cast<uint8_t>(UserDataFormat::json); updateSysInfoInExtendedUserDataSection() local 1012 uint8_t subType{}; makeFFDCuserDataSection() local [all...] |
| /openbmc/entity-manager/configurations/meta/minerva/ |
| H A D | minerva_cmm_scm.json | 526 "SubType": "LeakSensingCable", string 534 "SubType": "LeakSensingCable", string 542 "SubType": "LeakSensingCable", string 550 "SubType": "LeakSensingCable", string 558 "SubType": "LeakSensingCable", string 566 "SubType": "LeakSensingCable", string 574 "SubType": "LeakSensingCable", string 582 "SubType": "LeakSensingCable", string 590 "SubType": "LeakSensingCable", string 598 "SubType": "LeakSensingCable", string [all …]
|
| /openbmc/openpower-hw-diags/attn/pel/ |
| H A D | section_header.hpp | 48 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader() 56 * @param[in] subType - the sub-type field 59 SectionHeader(uint16_t id, uint16_t size, uint8_t version, uint8_t subType, in SectionHeader() 61 id(id), size(size), version(version), subType(subType), in SectionHeader() 83 uint8_t subType; member 98 return sizeof(id) + sizeof(size) + sizeof(version) + sizeof(subType) + in flattenedSize() 111 s >> header.id >> header.size >> header.version >> header.subType >> in operator >>() 124 s << header.id << header.size << header.version << header.subType in operator <<()
|
| /openbmc/openpower-hw-diags/util/ |
| H A D | ffdc_file.hpp | 55 * @param subType format subtype; used for the 'Custom' type 58 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0, 95 * Returns the format subtype. 97 * @return subtype 101 return subType; in getSubType() 130 * Format subtype; used for the 'Custom' type. 132 uint8_t subType{0}; member in util::FFDCFile
|
| H A D | ffdc_file.cpp | 15 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile() argument 16 format{format}, subType{subType}, version{version} in FFDCFile()
|
| /openbmc/phosphor-power/phosphor-regulators/src/ |
| H A D | ffdc_file.hpp | 72 * @param subType format subtype; used for the 'Custom' type 75 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0, 112 * Returns the format subtype. 114 * @return subtype 118 return subType; in getSubType() 147 * Format subtype; used for the 'Custom' type. 149 uint8_t subType{0}; member in phosphor::power::regulators::FFDCFile
|
| H A D | ffdc_file.cpp | 31 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile() argument 32 format{format}, subType{subType}, version{version} in FFDCFile()
|
| /openbmc/entity-manager/configurations/meta/santabarbara/ |
| H A D | santabarbara_scm.json | 337 "SubType": "LeakSensingCable", string 345 "SubType": "LeakSensingCable", string 353 "SubType": "LeakSensingCable", string 361 "SubType": "LeakSensingCable", string 369 "SubType": "LeakSensingCable", string 377 "SubType": "LeakSensingCable", string 385 "SubType": "LeakSensingCable", string 393 "SubType": "LeakSensingCable", string 401 "SubType": "LeakSensingCable", string
|
| /openbmc/qemu/tests/qapi-schema/ |
| H A D | union-invalid-union-subtype.err | 1 union-invalid-union-subtype.json: In union 'TestUnion': 2 union-invalid-union-subtype.json:25: base member 'type' of type 'TestTypeA' collides with base memb…
|
| /openbmc/entity-manager/schemas/ |
| H A D | leak_detector.json | 17 "SubType": { object 37 "SubType",
|
| /openbmc/phosphor-logging/test/openpower-pels/ |
| H A D | extended_user_header_test.cpp | 16 0x01, 0x00, // version, subtype 60 EXPECT_EQ(euh.header().subType, 0x00); 96 EXPECT_EQ(euh.header().subType, 0x00); in TEST() 148 EXPECT_EQ(euh.header().subType, 0x00); in TEST() 189 EXPECT_EQ(euh.header().subType, 0x00); in TEST() 223 EXPECT_EQ(euh.header().subType, 0x00); in TEST() 262 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
|