Home
last modified time | relevance | path

Searched refs:pel (Results 1 – 25 of 105) sorted by relevance

12345

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Drepository.cpp95 PEL pel{data}; in restore() local
96 if (pel.valid()) in restore()
100 if (pel.hostTransmissionState() == TransmissionState::sent) in restore()
102 pel.setHostTransmissionState(TransmissionState::newPEL); in restore()
105 write(pel, dirEntry.path()); in restore()
111 "ID", lg2::hex, pel.id()); in restore()
118 pel.privateHeader().creatorID(), in restore()
119 pel.userHeader().subsystem(), in restore()
120 pel.userHeader().severity(), in restore()
121 pel.userHeader().actionFlags(), in restore()
[all …]
H A Dmanager.cpp141 auto pel = std::make_unique<openpower::pels::PEL>(pelData, obmcLogID); in addPEL() local
142 if (pel->valid()) in addPEL()
145 pel->setCommitTime(); in addPEL()
148 if ((pel->privateHeader()).creatorID() != in addPEL()
151 pel->assignID(); in addPEL()
155 const Repository::LogID id{Repository::LogID::Pel(pel->id())}; in addPEL()
161 "ID", lg2::hex, pel->id()); in addPEL()
163 _repo.archivePEL(*pel); in addPEL()
172 pel->updateSysInfoInExtendedUserDataSection(*_dataIface); in addPEL()
175 updateProgressSRC(pel); in addPEL()
[all …]
H A Dcallout.cpp31 Callout::Callout(Stream& pel) in Callout() argument
33 pel >> _size >> _flags >> _priority >> _locationCodeSize; in Callout()
38 pel >> _locationCode; in Callout()
49 pel >> type; in Callout()
50 pel.offset(pel.offset() - 2); in Callout()
56 _fruIdentity = std::make_unique<FRUIdentity>(pel); in Callout()
62 _pceIdentity = std::make_unique<PCEIdentity>(pel); in Callout()
68 _mru = std::make_unique<MRU>(pel); in Callout()
184 void Callout::flatten(Stream& pel) const in flatten()
186 pel << _size << _flags << _priority << _locationCodeSize; in flatten()
[all …]
H A Dextended_user_header.cpp36 ExtendedUserHeader::ExtendedUserHeader(Stream& pel) in ExtendedUserHeader() argument
40 unflatten(pel); in ExtendedUserHeader()
85 void ExtendedUserHeader::flatten(Stream& pel) const in flatten()
87 pel << _header << _mtms; in flatten()
88 pel.write(_serverFWVersion.data(), _serverFWVersion.size()); in flatten()
89 pel.write(_subsystemFWVersion.data(), _subsystemFWVersion.size()); in flatten()
90 pel << _reserved4B << _refTime << _reserved1B1 << _reserved1B2 in flatten()
94 void ExtendedUserHeader::unflatten(Stream& pel) in unflatten() argument
96 pel >> _header >> _mtms; in unflatten()
97 pel.read(_serverFWVersion.data(), _serverFWVersion.size()); in unflatten()
[all …]
H A Dmru.cpp30 MRU::MRU(Stream& pel) in MRU() argument
32 pel >> _type >> _size >> _flags >> _reserved4B; in MRU()
39 pel >> mru.priority; in MRU()
40 pel >> mru.id; in MRU()
79 void MRU::flatten(Stream& pel) const in flatten()
81 pel << _type << _size << _flags << _reserved4B; in flatten()
85 pel << mru.priority; in flatten()
86 pel << mru.id; in flatten()
H A Dcallouts.cpp29 Callouts::Callouts(Stream& pel) in Callouts() argument
31 pel >> _subsectionID >> _subsectionFlags >> _subsectionWordLength; in Callouts()
38 _callouts.emplace_back(new Callout(pel)); in Callouts()
43 void Callouts::flatten(Stream& pel) const in flatten()
45 pel << _subsectionID << _subsectionFlags << _subsectionWordLength; in flatten()
49 callout->flatten(pel); in flatten()
H A Dpce_identity.cpp25 PCEIdentity::PCEIdentity(Stream& pel) in PCEIdentity() argument
27 pel >> _type >> _size >> _flags >> _mtms; in PCEIdentity()
38 pel >> _pceName; in PCEIdentity()
41 void PCEIdentity::flatten(Stream& pel) const in flatten()
43 pel << _type << _size << _flags << _mtms << _pceName; in flatten()
H A Dfru_identity.cpp54 FRUIdentity::FRUIdentity(Stream& pel) in FRUIdentity() argument
56 pel >> _type >> _size >> _flags; in FRUIdentity()
60 pel.read(_pnOrProcedureID.data(), _pnOrProcedureID.size()); in FRUIdentity()
65 pel.read(_ccin.data(), _ccin.size()); in FRUIdentity()
70 pel.read(_sn.data(), _sn.size()); in FRUIdentity()
188 void FRUIdentity::flatten(Stream& pel) const in flatten()
190 pel << _type << _size << _flags; in flatten()
194 pel.write(_pnOrProcedureID.data(), _pnOrProcedureID.size()); in flatten()
199 pel.write(_ccin.data(), _ccin.size()); in flatten()
204 pel.write(_sn.data(), _sn.size()); in flatten()
H A Dmanager.hpp247 std::string getResolution(const openpower::pels::PEL& pel) const;
254 std::string getEventId(const openpower::pels::PEL& pel) const;
286 void updateProgressSRC(std::unique_ptr<openpower::pels::PEL>& pel) const;
415 void checkPelAndQuiesce(std::unique_ptr<openpower::pels::PEL>& pel);
425 void updateEventId(std::unique_ptr<openpower::pels::PEL>& pel);
457 bool updateResolution(const openpower::pels::PEL& pel);
466 void updateDBusSeverity(const openpower::pels::PEL& pel);
506 openpower::pels::PEL& pel);
561 sdbusplus::server::org::open_power::logging::pel::Entry>>
H A Dservice_indicators.cpp35 bool LightPath::ignore(const PEL& pel) const in ignore()
37 auto creator = pel.privateHeader().creatorID(); in ignore()
43 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in ignore()
53 void LightPath::activate(const PEL& pel) in activate() argument
55 if (ignore(pel)) in activate()
64 auto src = pel.primarySRC(); in activate()
H A Drepository.hpp80 LogID(Pel pel, Obmc obmc) : pelID(pel), obmcID(obmc) {} in LogID()
169 void add(std::unique_ptr<PEL>& pel);
362 static bool isServiceableSev(const PELAttributes& pel);
454 void archivePEL(const PEL& pel);
492 void processAddCallbacks(const PEL& pel) const;
515 void write(const PEL& pel, const std::filesystem::path& path);
524 void updateRepoStats(const PELAttributes& pel, bool pelAdded);
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp92 auto pel = std::make_unique<PEL>(data, obmcID++); in makePEL() local
93 pel->assignID(); in makePEL()
94 pel->setCommitTime(); in makePEL()
95 return pel; in makePEL()
162 auto pel = makePEL(); in TEST_F() local
163 repo.add(pel); in TEST_F()
166 EXPECT_TRUE(notifier.enqueueRequired(pel->id())); in TEST_F()
167 EXPECT_TRUE(notifier.notifyRequired(pel->id())); in TEST_F()
174 repo.setPELHostTransState(pel->id(), TransmissionState::acked); in TEST_F()
177 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
[all …]
H A Drepository_test.cpp73 auto pel = std::make_unique<PEL>(data); in TEST_F() local
75 repo.add(pel); in TEST_F()
79 const auto ts = pel->privateHeader().commitTimestamp(); in TEST_F()
80 auto name = Repository::getPELFilename(pel->id(), ts); in TEST_F()
86 auto pelData = pel->data(); in TEST_F()
89 EXPECT_EQ(repo.lastPelID(), pel->id()); in TEST_F()
102 auto pel = std::make_unique<PEL>(data, 1); in TEST_F() local
104 pel->assignID(); in TEST_F()
105 Repository::LogID id{pelID{pel->id()}, obmcID{pel->obmcLogID()}}; in TEST_F()
107 repo.add(pel); in TEST_F()
[all …]
H A Dpel_test.cpp63 auto pel = std::make_unique<PEL>(data); in TEST_F() local
66 EXPECT_TRUE(pel->valid()); in TEST_F()
67 EXPECT_EQ(pel->id(), 0x80818283); in TEST_F()
68 EXPECT_EQ(pel->plid(), 0x50515253); in TEST_F()
69 EXPECT_EQ(pel->userHeader().subsystem(), 0x10); in TEST_F()
70 EXPECT_EQ(pel->userHeader().actionFlags(), 0x80C0); in TEST_F()
73 auto flattenedData = pel->data(); in TEST_F()
75 EXPECT_EQ(flattenedData.size(), pel->size()); in TEST_F()
81 auto pel = std::make_unique<PEL>(data); in TEST_F() local
83 auto origTime = pel->commitTime(); in TEST_F()
[all …]
H A Dreal_pel_test.cpp543 PEL pel{origData}; in TEST_F() local
545 EXPECT_TRUE(pel.valid()); in TEST_F()
548 auto flat = pel.data(); in TEST_F()
550 EXPECT_EQ(realPELData.size(), pel.size()); in TEST_F()
554 const auto& sections = pel.optionalSections(); in TEST_F()
555 EXPECT_EQ(pel.privateHeader().sectionCount(), sections.size() + 2); in TEST_F()
557 auto src = pel.primarySRC(); in TEST_F()
562 auto& last = pel.optionalSections().back(); in TEST_F()
H A Dservice_indicators_test.cpp49 PEL pel{data}; in TEST() local
51 EXPECT_EQ(lightPath.ignore(pel), std::get<bool>(test)); in TEST()
283 PEL pel{data}; in TEST() local
285 lightPath.activate(pel); in TEST()
309 PEL pel{data}; in TEST() local
311 lightPath.activate(pel); in TEST()
326 PEL pel{data}; in TEST() local
328 lightPath.activate(pel); in TEST()
348 PEL pel{data}; in TEST() local
350 lightPath.activate(pel); in TEST()
[all …]
H A Dpel_manager_test.cpp307 PEL pel(*data); in TEST_F() local
310 EXPECT_TRUE(pel.valid()); in TEST_F()
311 EXPECT_EQ(pel.obmcLogID(), 33); in TEST_F()
312 EXPECT_EQ(pel.primarySRC().value()->asciiString(), in TEST_F()
315 EXPECT_EQ(manager.getEventId(pel), in TEST_F()
319 EXPECT_EQ(manager.getResolution(pel), in TEST_F()
424 PEL pel{newData}; in TEST_F() local
425 auto id = pel.id(); in TEST_F()
484 EXPECT_EQ(pel.id(), manager.getPELIdFromBMCLogId(pel.obmcLogID())); in TEST_F()
486 manager.getPELIdFromBMCLogId(pel.obmcLogID() + 1), in TEST_F()
[all …]
/openbmc/openpower-hw-diags/attn/pel/
H A Dextended_user_header.cpp5 namespace pel namespace
8 ExtendedUserHeader::ExtendedUserHeader(Stream& pel) in ExtendedUserHeader() argument
10 unflatten(pel); in ExtendedUserHeader()
13 void ExtendedUserHeader::flatten(Stream& pel) const in flatten()
15 pel << _header; in flatten()
16 pel.write(_mtms, mtmsSize); in flatten()
17 pel.write(_serverFWVersion.data(), _serverFWVersion.size()); in flatten()
18 pel.write(_subsystemFWVersion.data(), _subsystemFWVersion.size()); in flatten()
19 pel << _reserved4B << _refTime << _reserved1B1 << _reserved1B2 in flatten()
23 void ExtendedUserHeader::unflatten(Stream& pel) in unflatten() argument
[all …]
H A Dprivate_header.cpp5 namespace pel namespace
8 PrivateHeader::PrivateHeader(Stream& pel) in PrivateHeader() argument
10 unflatten(pel); in PrivateHeader()
H A Duser_header.cpp5 namespace pel namespace
8 UserHeader::UserHeader(Stream& pel) in UserHeader() argument
10 unflatten(pel); in UserHeader()
H A Dprimary_src.cpp5 namespace pel namespace
8 PrimarySrc::PrimarySrc(Stream& pel) in PrimarySrc() argument
10 unflatten(pel); in PrimarySrc()
/openbmc/phosphor-logging/extensions/openpower-pels/tools/
H A Dpeltool.cpp332 PEL pel{data}; in genPELJSON() local
333 if (!pel.valid()) in genPELJSON()
337 if (!includeInfo && pel.userHeader().severity() == 0) in genPELJSON()
341 if (critSysTerm && pel.userHeader().severity() != critSysTermSeverity) in genPELJSON()
345 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in genPELJSON()
350 if (pel.primarySRC() && scrubRegex) in genPELJSON()
352 val = pel.primarySRC().value()->asciiString(); in genPELJSON()
362 << dumpHex(std::data(pel.data()), pel.size(), 0, false).get() in genPELJSON()
376 pel.toJSON(registry, plugins); in genPELJSON()
382 getNumberString("0x%X", pel.privateHeader().id()) + in genPELJSON()
[all …]
/openbmc/openpower-hw-diags/attn/
H A Dattn_logging.cpp109 auto tiPel = std::make_unique<pel::PelMinimal>(i_rawPel); in createPelCustom()
148 if (static_cast<uint8_t>(pel::SubsystemID::hypervisor) == subsystem) in createPelCustom()
151 tiPel->setSrcWords(std::array<uint32_t, pel::numSrcWords>{ in createPelCustom()
164 std::array<char, pel::asciiStringSize> srcChars{'0'}; in createPelCustom()
185 std::min(srcString.size(), pel::asciiStringSize), 0); in createPelCustom()
210 tiPel->setSrcWords(std::array<uint32_t, pel::numSrcWords>{ in createPelCustom()
223 std::array<char, pel::asciiStringSize> srcChars{'0'}; in createPelCustom()
244 std::min(srcString.size(), pel::asciiStringSize), 0); in createPelCustom()
265 tiPel->setSeverity(static_cast<uint8_t>(pel::Severity::termination)); in createPelCustom()
266 tiPel->setType(static_cast<uint8_t>(pel::EventType::na)); in createPelCustom()
[all …]
H A Dmeson.build60 'pel/extended_user_header.cpp',
61 'pel/pel_minimal.cpp',
62 'pel/primary_src.cpp',
63 'pel/private_header.cpp',
64 'pel/user_header.cpp',
/openbmc/openpower-debug-collector/dump/
H A Dcreate_pel.cpp26 namespace openpower::dump::pel namespace
109 openpower::dump::pel::Severity convertSeverityToEnum(uint8_t severity) in convertSeverityToEnum()
114 return openpower::dump::pel::Severity::Informational; in convertSeverityToEnum()
116 return openpower::dump::pel::Severity::Warning; in convertSeverityToEnum()
118 return openpower::dump::pel::Severity::Error; in convertSeverityToEnum()
120 return openpower::dump::pel::Severity::Error; in convertSeverityToEnum()
126 openpower::dump::pel::FFDCData& pelAdditionalData) in processFFDCPackets()
138 if (logSeverity != openpower::dump::pel::Severity::Informational) in processFFDCPackets()
144 logSeverity = openpower::dump::pel::Severity::Informational; in processFFDCPackets()
153 auto logId = openpower::dump::pel::createSbeErrorPEL( in processFFDCPackets()

12345