Home
last modified time | relevance | path

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

1234

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Drepository.cpp85 PEL pel{data}; in restore() local
86 if (pel.valid()) in restore()
90 if (pel.hostTransmissionState() == TransmissionState::sent) in restore()
92 pel.setHostTransmissionState(TransmissionState::newPEL); in restore()
95 write(pel, dirEntry.path()); in restore()
101 "ID", lg2::hex, pel.id()); in restore()
108 pel.privateHeader().creatorID(), in restore()
109 pel.userHeader().subsystem(), in restore()
110 pel.userHeader().severity(), in restore()
111 pel.userHeader().actionFlags(), in restore()
[all …]
H A Dcallout.cpp19 Callout::Callout(Stream& pel) in Callout() argument
21 pel >> _size >> _flags >> _priority >> _locationCodeSize; in Callout()
26 pel >> _locationCode; in Callout()
37 pel >> type; in Callout()
38 pel.offset(pel.offset() - 2); in Callout()
44 _fruIdentity = std::make_unique<FRUIdentity>(pel); in Callout()
50 _pceIdentity = std::make_unique<PCEIdentity>(pel); in Callout()
56 _mru = std::make_unique<MRU>(pel); in Callout()
172 void Callout::flatten(Stream& pel) const in flatten()
174 pel << _size << _flags << _priority << _locationCodeSize; in flatten()
[all …]
H A Dmru.cpp18 MRU::MRU(Stream& pel) in MRU() argument
20 pel >> _type >> _size >> _flags >> _reserved4B; in MRU()
27 pel >> mru.priority; in MRU()
28 pel >> mru.id; in MRU()
67 void MRU::flatten(Stream& pel) const in flatten()
69 pel << _type << _size << _flags << _reserved4B; in flatten()
73 pel << mru.priority; in flatten()
74 pel << mru.id; in flatten()
H A Dmanager.cpp129 auto pel = std::make_unique<openpower::pels::PEL>(pelData, obmcLogID); in addPEL() local
130 if (pel->valid()) in addPEL()
133 pel->setCommitTime(); in addPEL()
136 if ((pel->privateHeader()).creatorID() != in addPEL()
139 pel->assignID(); in addPEL()
143 const Repository::LogID id{Repository::LogID::Pel(pel->id())}; in addPEL()
149 "ID", lg2::hex, pel->id()); in addPEL()
151 _repo.archivePEL(*pel); in addPEL()
160 pel->updateSysInfoInExtendedUserDataSection(*_dataIface); in addPEL()
163 updateProgressSRC(pel); in addPEL()
[all …]
H A Dextended_user_header.cpp22 ExtendedUserHeader::ExtendedUserHeader(Stream& pel) in ExtendedUserHeader() argument
26 unflatten(pel); in ExtendedUserHeader()
71 void ExtendedUserHeader::flatten(Stream& pel) const in flatten()
73 pel << _header << _mtms; in flatten()
74 pel.write(_serverFWVersion.data(), _serverFWVersion.size()); in flatten()
75 pel.write(_subsystemFWVersion.data(), _subsystemFWVersion.size()); in flatten()
76 pel << _reserved4B << _refTime << _reserved1B1 << _reserved1B2 in flatten()
80 void ExtendedUserHeader::unflatten(Stream& pel) in unflatten() argument
82 pel >> _header >> _mtms; in unflatten()
83 pel.read(_serverFWVersion.data(), _serverFWVersion.size()); in unflatten()
[all …]
H A Dpce_identity.cpp13 PCEIdentity::PCEIdentity(Stream& pel) in PCEIdentity() argument
15 pel >> _type >> _size >> _flags >> _mtms; in PCEIdentity()
26 pel >> _pceName; in PCEIdentity()
29 void PCEIdentity::flatten(Stream& pel) const in flatten()
31 pel << _type << _size << _flags << _mtms << _pceName; in flatten()
H A Dcallouts.cpp17 Callouts::Callouts(Stream& pel) in Callouts() argument
19 pel >> _subsectionID >> _subsectionFlags >> _subsectionWordLength; in Callouts()
26 _callouts.emplace_back(new Callout(pel)); in Callouts()
31 void Callouts::flatten(Stream& pel) const in flatten()
33 pel << _subsectionID << _subsectionFlags << _subsectionWordLength; in flatten()
37 callout->flatten(pel); in flatten()
H A Dfru_identity.cpp40 FRUIdentity::FRUIdentity(Stream& pel) in FRUIdentity() argument
42 pel >> _type >> _size >> _flags; in FRUIdentity()
46 pel.read(_pnOrProcedureID.data(), _pnOrProcedureID.size()); in FRUIdentity()
51 pel.read(_ccin.data(), _ccin.size()); in FRUIdentity()
56 pel.read(_sn.data(), _sn.size()); in FRUIdentity()
174 void FRUIdentity::flatten(Stream& pel) const in flatten()
176 pel << _type << _size << _flags; in flatten()
180 pel.write(_pnOrProcedureID.data(), _pnOrProcedureID.size()); in flatten()
185 pel.write(_ccin.data(), _ccin.size()); in flatten()
190 pel.write(_sn.data(), _sn.size()); in flatten()
H A Dservice_indicators.cpp22 bool LightPath::ignore(const PEL& pel) const in ignore()
24 auto creator = pel.privateHeader().creatorID(); in ignore()
30 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in ignore()
40 void LightPath::activate(const PEL& pel) in activate() argument
42 if (ignore(pel)) in activate()
51 auto src = pel.primarySRC(); in activate()
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 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);
H A Dservice_indicators.hpp38 virtual void activate(const PEL& pel) = 0;
92 void activate(const PEL& pel) override;
120 bool ignore(const PEL& pel) const;
/openbmc/phosphor-logging/test/openpower-pels/
H A Dhost_notifier_test.cpp79 auto pel = std::make_unique<PEL>(data, obmcID++); in makePEL() local
80 pel->assignID(); in makePEL()
81 pel->setCommitTime(); in makePEL()
82 return pel; in makePEL()
149 auto pel = makePEL(); in TEST_F() local
150 repo.add(pel); in TEST_F()
153 EXPECT_TRUE(notifier.enqueueRequired(pel->id())); in TEST_F()
154 EXPECT_TRUE(notifier.notifyRequired(pel->id())); in TEST_F()
161 repo.setPELHostTransState(pel->id(), TransmissionState::acked); in TEST_F()
164 EXPECT_FALSE(notifier.enqueueRequired(pel->id())); in TEST_F()
[all …]
H A Drepository_test.cpp61 auto pel = std::make_unique<PEL>(data); in TEST_F() local
63 repo.add(pel); in TEST_F()
67 const auto ts = pel->privateHeader().commitTimestamp(); in TEST_F()
68 auto name = Repository::getPELFilename(pel->id(), ts); in TEST_F()
74 auto pelData = pel->data(); in TEST_F()
77 EXPECT_EQ(repo.lastPelID(), pel->id()); in TEST_F()
90 auto pel = std::make_unique<PEL>(data, 1); in TEST_F() local
92 pel->assignID(); in TEST_F()
93 Repository::LogID id{pelID{pel->id()}, obmcID{pel->obmcLogID()}}; in TEST_F()
95 repo.add(pel); in TEST_F()
[all …]
H A Dreal_pel_test.cpp531 PEL pel{origData}; in TEST_F() local
533 EXPECT_TRUE(pel.valid()); in TEST_F()
536 auto flat = pel.data(); in TEST_F()
538 EXPECT_EQ(realPELData.size(), pel.size()); in TEST_F()
542 const auto& sections = pel.optionalSections(); in TEST_F()
543 EXPECT_EQ(pel.privateHeader().sectionCount(), sections.size() + 2); in TEST_F()
545 auto src = pel.primarySRC(); in TEST_F()
550 auto& last = pel.optionalSections().back(); in TEST_F()
H A Dpel_test.cpp51 auto pel = std::make_unique<PEL>(data); in TEST_F() local
54 EXPECT_TRUE(pel->valid()); in TEST_F()
55 EXPECT_EQ(pel->id(), 0x80818283); in TEST_F()
56 EXPECT_EQ(pel->plid(), 0x50515253); in TEST_F()
57 EXPECT_EQ(pel->userHeader().subsystem(), 0x10); in TEST_F()
58 EXPECT_EQ(pel->userHeader().actionFlags(), 0x80C0); in TEST_F()
61 auto flattenedData = pel->data(); in TEST_F()
63 EXPECT_EQ(flattenedData.size(), pel->size()); in TEST_F()
69 auto pel = std::make_unique<PEL>(data); in TEST_F() local
71 auto origTime = pel->commitTime(); in TEST_F()
[all …]
H A Dservice_indicators_test.cpp37 PEL pel{data}; in TEST() local
39 EXPECT_EQ(lightPath.ignore(pel), std::get<bool>(test)); in TEST()
271 PEL pel{data}; in TEST() local
273 lightPath.activate(pel); in TEST()
297 PEL pel{data}; in TEST() local
299 lightPath.activate(pel); in TEST()
314 PEL pel{data}; in TEST() local
316 lightPath.activate(pel); in TEST()
336 PEL pel{data}; in TEST() local
338 lightPath.activate(pel); in TEST()
[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.cpp304 PEL pel{data}; in genPELJSON() local
305 if (!pel.valid()) in genPELJSON()
309 if (!includeInfo && pel.userHeader().severity() == 0) in genPELJSON()
313 if (critSysTerm && pel.userHeader().severity() != critSysTermSeverity) in genPELJSON()
317 std::bitset<16> actionFlags{pel.userHeader().actionFlags()}; in genPELJSON()
322 if (pel.primarySRC() && scrubRegex) in genPELJSON()
324 val = pel.primarySRC().value()->asciiString(); in genPELJSON()
334 << dumpHex(std::data(pel.data()), pel.size(), 0, false).get() in genPELJSON()
348 pel.toJSON(registry, plugins); in genPELJSON()
354 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()
165 std::array<char, pel::asciiStringSize> srcChars{'0'}; in createPelCustom()
186 std::min(srcString.size(), pel::asciiStringSize), 0); in createPelCustom()
211 tiPel->setSrcWords(std::array<uint32_t, pel::numSrcWords>{ in createPelCustom()
224 std::array<char, pel::asciiStringSize> srcChars{'0'}; in createPelCustom()
245 std::min(srcString.size(), pel::asciiStringSize), 0); in createPelCustom()
266 tiPel->setSeverity(static_cast<uint8_t>(pel::Severity::termination)); in createPelCustom()
267 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
111 openpower::dump::pel::Severity convertSeverityToEnum(uint8_t severity) in convertSeverityToEnum()
116 return openpower::dump::pel::Severity::Informational; in convertSeverityToEnum()
118 return openpower::dump::pel::Severity::Warning; in convertSeverityToEnum()
120 return openpower::dump::pel::Severity::Error; in convertSeverityToEnum()
122 return openpower::dump::pel::Severity::Error; in convertSeverityToEnum()
128 openpower::dump::pel::FFDCData& pelAdditionalData) in processFFDCPackets()
141 if (logSeverity != openpower::dump::pel::Severity::Informational) in processFFDCPackets()
147 logSeverity = openpower::dump::pel::Severity::Informational; in processFFDCPackets()
156 auto logId = openpower::dump::pel::createSbeErrorPEL( in processFFDCPackets()

1234