PEL: New D-Bus properties on PEL entry iface
Fill in the 4 newly added properties on the PEL entry D-Bus interface:
- Platform log ID (PLID)
- Deconfig flag from the SRC section
- Guard flag from the SRC section
- Creation timestamp
These were also added to the PELAttributes map in the Repository class
so that each PEL wouldn't have to be reconstructed from a file again
when creating the D-Bus objects.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I7878645f56c634e6111fcecc22ab27673d0c0f5d
diff --git a/extensions/openpower-pels/repository.hpp b/extensions/openpower-pels/repository.hpp
index a45a0d4..07a499d 100644
--- a/extensions/openpower-pels/repository.hpp
+++ b/extensions/openpower-pels/repository.hpp
@@ -34,17 +34,23 @@
std::bitset<16> actionFlags;
TransmissionState hostState;
TransmissionState hmcState;
+ uint32_t plid;
+ bool deconfig;
+ bool guard;
+ uint64_t creationTime;
PELAttributes() = delete;
PELAttributes(const std::filesystem::path& p, size_t size,
uint8_t creator, uint8_t subsystem, uint8_t sev,
uint16_t flags, TransmissionState hostState,
- TransmissionState hmcState) :
+ TransmissionState hmcState, uint32_t plid, bool deconfig,
+ bool guard, uint64_t creationTime) :
path(p),
sizeOnDisk(size), creator(creator), subsystem(subsystem),
severity(sev), actionFlags(flags), hostState(hostState),
- hmcState(hmcState)
+ hmcState(hmcState), plid(plid), deconfig(deconfig), guard(guard),
+ creationTime(creationTime)
{}
};