summaryrefslogtreecommitdiffstats
path: root/extensions/openpower-pels/section_factory.cpp
diff options
context:
space:
mode:
authorAatir Manzur <aatrapps@gmail.com>2019-09-06 13:30:48 -0500
committerMatt Spinler <spinler@us.ibm.com>2019-10-09 08:13:30 -0500
commit51c9263f080fe794d62724a35e44dc1cfff75415 (patch)
treea238eb121bb90102f2ef2e7756d70280e152a51a /extensions/openpower-pels/section_factory.cpp
parent07eefc543b36f9fdb7d7b7ff2a64018d0770bc31 (diff)
downloadphosphor-logging-51c9263f080fe794d62724a35e44dc1cfff75415.tar.gz
phosphor-logging-51c9263f080fe794d62724a35e44dc1cfff75415.zip
PEL: User Data class
This class is used for accessing the UserData section of a PEL. This section contains free format data that can be identified by the component ID, subtype, and version fields in the section header. Signed-off-by: Aatir Manzur <aatrapps@gmail.com> Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I1223f84353e81202d1ff63c00f3d926cda4994e5
Diffstat (limited to 'extensions/openpower-pels/section_factory.cpp')
-rw-r--r--extensions/openpower-pels/section_factory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/openpower-pels/section_factory.cpp b/extensions/openpower-pels/section_factory.cpp
index 69274c0..11d8386 100644
--- a/extensions/openpower-pels/section_factory.cpp
+++ b/extensions/openpower-pels/section_factory.cpp
@@ -4,6 +4,7 @@
#include "generic.hpp"
#include "pel_types.hpp"
#include "private_header.hpp"
+#include "user_data.hpp"
#include "user_header.hpp"
namespace openpower
@@ -32,6 +33,9 @@ std::unique_ptr<Section> create(Stream& pelData)
case static_cast<uint16_t>(SectionID::privateHeader):
section = std::make_unique<PrivateHeader>(pelData);
break;
+ case static_cast<uint16_t>(SectionID::userData):
+ section = std::make_unique<UserData>(pelData);
+ break;
case static_cast<uint16_t>(SectionID::userHeader):
section = std::make_unique<UserHeader>(pelData);
break;
OpenPOWER on IntegriCloud