Home
last modified time | relevance | path

Searched refs:subType (Results 1 – 25 of 45) sorted by relevance

12

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Duser_data_json.cpp56 std::string prettyJSON(uint16_t componentID, uint8_t subType, uint8_t version, in prettyJSON() argument
61 output[pv::subSection] = std::to_string(subType); in prettyJSON()
112 std::string getCBORJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getCBORJSON() argument
136 return prettyJSON(componentID, subType, version, creatorID, json); in getCBORJSON()
154 std::string getTextJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getTextJSON() argument
189 return prettyJSON(componentID, subType, version, creatorID, json); in getTextJSON()
205 uint16_t componentID, uint8_t subType, uint8_t version, in getBuiltinFormatJSON() argument
208 switch (subType) in getBuiltinFormatJSON()
216 return prettyJSON(componentID, subType, version, creatorID, json); in getBuiltinFormatJSON()
220 return getCBORJSON(componentID, subType, version, creatorID, data); in getBuiltinFormatJSON()
[all …]
H A Dsection_header.hpp24 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader()
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 Dextended_user_data.hpp54 ExtendedUserData(uint16_t componentID, uint8_t subType, uint8_t version,
105 void updateDataSection(const uint8_t subType, const uint16_t componentId, in updateDataSection() argument
114 _header.subType = static_cast<uint8_t>(subType); in updateDataSection()
H A Duser_data.cpp69 UserData::UserData(uint16_t componentID, uint8_t subType, uint8_t version, in UserData() argument
75 _header.subType = subType; in UserData()
102 return user_data::getJSON(_header.componentID, _header.subType, in getJSON()
H A Dextended_user_data.cpp67 ExtendedUserData::ExtendedUserData(uint16_t componentID, uint8_t subType, in ExtendedUserData() argument
73 _header.subType = subType; in ExtendedUserData()
104 return user_data::getJSON(_header.componentID, _header.subType, in getJSON()
H A Dpel.cpp76 file.subType == sbe::sbeFFDCSubType; in PEL()
163 << std::hex << regEntry.componentID << " " << file.subType in PEL()
397 getNumberString("%d", section.header().subType), 1); in printSectionInJSON()
489 userData->header().subType, "VERSION", in addUserDataSection()
508 (file.subType == jsonCalloutSubtype)) in getCalloutJSON()
583 auto subType = static_cast<uint8_t>(UserDataFormat::json); in updateSysInfoInExtendedUserDataSection() local
590 extUserData->updateDataSection(subType, componentId, in updateSysInfoInExtendedUserDataSection()
1012 uint8_t subType{}; in makeFFDCuserDataSection() local
1018 subType = static_cast<uint8_t>(UserDataFormat::json); in makeFFDCuserDataSection()
1022 subType = static_cast<uint8_t>(UserDataFormat::cbor); in makeFFDCuserDataSection()
[all …]
H A Dfailing_mtms.cpp41 _header.subType = 0; in FailingMTMS()
97 jsonInsert(json, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
H A Dsbe_ffdc_handler.cpp120 (file.subType == sbeFFDCSubType)) in SbeFFDC()
284 pf.subType = openpower::pels::jsonCalloutSubtype; in process()
303 pdf.subType = 0; in process()
H A Dprivate_header.cpp40 _header.subType = 0; in PrivateHeader()
110 jsonInsert(ph, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
/openbmc/openpower-hw-diags/attn/pel/
H A Dsection_header.hpp48 SectionHeader() : id(0), size(0), version(0), subType(0), componentID(0) {} in SectionHeader()
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/phosphor-health-monitor/
H A Dhealth_metric_collection.cpp71 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()
158 auto value = memoryValues.at(config.subType) * 1024; in readMemory()
161 config.subType, "VALUE", value, "TOTAL", total); in readMemory()
[all …]
H A Dhealth_metric_config.cpp144 "TYPE", type, "NAME", config.name, "SUBTYPE", config.subType, in printConfig()
186 auto subType = validSubTypes.find(name); in getHealthMetricConfigs() local
187 config.subType = in getHealthMetricConfigs()
188 (subType != validSubTypes.end() ? subType->second : SubType::NA); in getHealthMetricConfigs()
H A Dhealth_metric.cpp16 auto HealthMetric::getPath(MType type, std::string name, SubType subType) in getPath() argument
20 switch (subType) in getPath()
71 subType, "TYPE", type); in getPath()
77 error("Invalid metric {SUBTYPE}", "SUBTYPE", subType); in getPath()
H A Dhealth_metric.hpp49 MetricIntf(bus, getPath(type, config.name, config.subType).c_str(), in HealthMetric()
73 auto getPath(MType type, std::string name, SubType subType) -> std::string;
/openbmc/phosphor-health-monitor/test/
H A Dtest_health_metric_config.cpp22 bool isValidSubType(metric::Type type, metric::SubType subType) in isValidSubType() argument
25 << " Metric SubType: " << std::to_underlying(subType) in isValidSubType()
35 .contains(subType); in isValidSubType()
43 .contains(subType); in isValidSubType()
47 return set_t{metric::SubType::NA}.contains(subType); in isValidSubType()
65 EXPECT_TRUE(isValidSubType(type, config.subType)); in TEST()
/openbmc/openpower-hw-diags/util/
H A Dffdc_file.cpp15 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile() argument
16 format{format}, subType{subType}, version{version} in FFDCFile()
H A Dffdc_file.hpp58 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0,
101 return subType; in getSubType()
132 uint8_t subType{0}; member in util::FFDCFile
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dffdc_file.cpp31 FFDCFile::FFDCFile(FFDCFormat format, uint8_t subType, uint8_t version) : in FFDCFile() argument
32 format{format}, subType{subType}, version{version} in FFDCFile()
H A Dffdc_file.hpp75 explicit FFDCFile(FFDCFormat format, uint8_t subType = 0,
118 return subType; in getSubType()
149 uint8_t subType{0}; member in phosphor::power::regulators::FFDCFile
/openbmc/dbus-sensors/src/ipmb/
H A DIpmbSensor.cpp104 switch (subType) in getSubTypeUnits()
206 switch (subType) in loadDefaults()
210 if (subType == IpmbSubType::temp) in loadDefaults()
262 switch (subType) in loadDefaults()
283 if (subType == IpmbSubType::util) in loadDefaults()
554 subType = IpmbSubType::volt; in sensorSubType()
558 subType = IpmbSubType::power; in sensorSubType()
562 subType = IpmbSubType::curr; in sensorSubType()
566 subType = IpmbSubType::util; in sensorSubType()
570 subType = IpmbSubType::temp; in sensorSubType()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dextended_user_header_test.cpp72 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
108 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
160 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
201 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
235 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
274 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
H A Dpel_test.cpp373 EXPECT_EQ(ud->header().subType, 0x01); in TEST_F()
419 EXPECT_EQ(ud->header().subType, 0x01); in TEST_F()
499 ffdc.subType = 5; in getJSONFFDC()
532 EXPECT_EQ(ud->header().subType, in TEST_F()
557 ffdc.subType = 5; in TEST_F()
573 ffdc.subType = 5; in getCBORFFDC()
603 EXPECT_EQ(ud->header().subType, static_cast<uint8_t>(UserDataFormat::cbor)); in TEST_F()
638 ffdc.subType = 5; in getTextFFDC()
662 EXPECT_EQ(ud->header().subType, static_cast<uint8_t>(UserDataFormat::text)); in TEST_F()
677 ffdc.subType = 5; in getCustomFFDC()
[all …]
H A Dfailing_mtms_test.cpp47 EXPECT_EQ(fm.header().subType, 0x00); in TEST()
99 EXPECT_EQ(fm.header().subType, 0x00); in TEST()
H A Duser_data_test.cpp41 EXPECT_EQ(ud.header().subType, 0x02); in TEST()
100 EXPECT_EQ(ud.header().subType, 0x42); in TEST()
H A Dextended_user_data_test.cpp33 EXPECT_EQ(eud.header().subType, 0x02); in TEST()
92 EXPECT_EQ(eud.header().subType, 0x42); in TEST()

12