Home
last modified time | relevance | path

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

12

/openbmc/phosphor-logging/extensions/openpower-pels/
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 Duser_data_json.cpp43 std::string prettyJSON(uint16_t componentID, uint8_t subType, uint8_t version, in prettyJSON() argument
48 output[pv::subSection] = std::to_string(subType); in prettyJSON()
99 std::string getCBORJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getCBORJSON() argument
123 return prettyJSON(componentID, subType, version, creatorID, json); in getCBORJSON()
141 std::string getTextJSON(uint16_t componentID, uint8_t subType, uint8_t version, in getTextJSON() argument
176 return prettyJSON(componentID, subType, version, creatorID, json); in getTextJSON()
192 uint16_t componentID, uint8_t subType, uint8_t version, in getBuiltinFormatJSON() argument
195 switch (subType) in getBuiltinFormatJSON()
203 return prettyJSON(componentID, subType, version, creatorID, json); in getBuiltinFormatJSON()
207 return getCBORJSON(componentID, subType, version, creatorID, data); in getBuiltinFormatJSON()
[all …]
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.cpp53 UserData::UserData(uint16_t componentID, uint8_t subType, uint8_t version, in UserData() argument
59 _header.subType = subType; in UserData()
86 return user_data::getJSON(_header.componentID, _header.subType, in getJSON()
H A Dextended_user_data.cpp55 ExtendedUserData::ExtendedUserData(uint16_t componentID, uint8_t subType, in ExtendedUserData() argument
61 _header.subType = subType; in ExtendedUserData()
92 return user_data::getJSON(_header.componentID, _header.subType, in getJSON()
H A Dpel.cpp64 file.subType == sbe::sbeFFDCSubType; in PEL()
151 << std::hex << regEntry.componentID << " " << file.subType in PEL()
385 getNumberString("%d", section.header().subType), 1); in printSectionInJSON()
477 userData->header().subType, "VERSION", in addUserDataSection()
496 (file.subType == jsonCalloutSubtype)) in getCalloutJSON()
571 auto subType = static_cast<uint8_t>(UserDataFormat::json); in updateSysInfoInExtendedUserDataSection() local
578 extUserData->updateDataSection(subType, componentId, in updateSysInfoInExtendedUserDataSection()
1000 uint8_t subType{}; in makeFFDCuserDataSection() local
1006 subType = static_cast<uint8_t>(UserDataFormat::json); in makeFFDCuserDataSection()
1010 subType = static_cast<uint8_t>(UserDataFormat::cbor); in makeFFDCuserDataSection()
[all …]
H A Dfailing_mtms.cpp27 _header.subType = 0; in FailingMTMS()
83 jsonInsert(json, pv::subSection, getNumberString("%d", _header.subType), 1); in getJSON()
H A Duser_data_json.hpp24 uint16_t componentID, uint8_t subType, uint8_t version,
H A Dsbe_ffdc_handler.cpp106 (file.subType == sbeFFDCSubType)) in SbeFFDC()
270 pf.subType = openpower::pels::jsonCalloutSubtype; in process()
289 pdf.subType = 0; in process()
/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.cpp105 switch (subType) in getSubTypeUnits()
205 switch (subType) in loadDefaults()
209 if (subType == IpmbSubType::temp) in loadDefaults()
261 switch (subType) in loadDefaults()
282 if (subType == IpmbSubType::util) in loadDefaults()
552 subType = IpmbSubType::volt; in sensorSubType()
556 subType = IpmbSubType::power; in sensorSubType()
560 subType = IpmbSubType::curr; in sensorSubType()
564 subType = IpmbSubType::util; in sensorSubType()
568 subType = IpmbSubType::temp; in sensorSubType()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dextended_user_header_test.cpp60 EXPECT_EQ(euh.header().subType, 0x00); in TEST()
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()
H A Dfailing_mtms_test.cpp35 EXPECT_EQ(fm.header().subType, 0x00); in TEST()
87 EXPECT_EQ(fm.header().subType, 0x00); in TEST()
H A Duser_data_test.cpp29 EXPECT_EQ(ud.header().subType, 0x02); in TEST()
88 EXPECT_EQ(ud.header().subType, 0x42); in TEST()
H A Dpel_test.cpp361 EXPECT_EQ(ud->header().subType, 0x01); in TEST_F()
407 EXPECT_EQ(ud->header().subType, 0x01); in TEST_F()
487 ffdc.subType = 5; in getJSONFFDC()
520 EXPECT_EQ(ud->header().subType, in TEST_F()
545 ffdc.subType = 5; in TEST_F()
561 ffdc.subType = 5; in getCBORFFDC()
591 EXPECT_EQ(ud->header().subType, static_cast<uint8_t>(UserDataFormat::cbor)); in TEST_F()
626 ffdc.subType = 5; in getTextFFDC()
650 EXPECT_EQ(ud->header().subType, static_cast<uint8_t>(UserDataFormat::text)); in TEST_F()
665 ffdc.subType = 5; in getCustomFFDC()
[all …]
H A Dextended_user_data_test.cpp21 EXPECT_EQ(eud.header().subType, 0x02); in TEST()
80 EXPECT_EQ(eud.header().subType, 0x42); in TEST()

12