PEL: Create FailingMTMS section for new PELs

When a PEL is created from an OpenBMC event log, add the FailingMTMS
section to the PEL. This contains the machine type, model, and serial
number fields.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I8d08e6dda00260efebd2c6ac165270d2aaf98d67
diff --git a/extensions/openpower-pels/pel.cpp b/extensions/openpower-pels/pel.cpp
index 157af5a..ffd4974 100644
--- a/extensions/openpower-pels/pel.cpp
+++ b/extensions/openpower-pels/pel.cpp
@@ -1,6 +1,7 @@
 #include "pel.hpp"
 
 #include "bcd_time.hpp"
+#include "failing_mtms.hpp"
 #include "log_id.hpp"
 #include "section_factory.hpp"
 #include "src.hpp"
@@ -16,7 +17,8 @@
 
 PEL::PEL(const message::Entry& entry, uint32_t obmcLogID, uint64_t timestamp,
          phosphor::logging::Entry::Level severity,
-         const AdditionalData& additionalData)
+         const AdditionalData& additionalData,
+         const DataInterfaceBase& dataIface)
 {
     _ph = std::make_unique<PrivateHeader>(entry.componentID, obmcLogID,
                                           timestamp);
@@ -25,7 +27,8 @@
     auto src = std::make_unique<SRC>(entry, additionalData);
     _optionalSections.push_back(std::move(src));
 
-    // Add future sections here
+    auto mtms = std::make_unique<FailingMTMS>(dataIface);
+    _optionalSections.push_back(std::move(mtms));
 
     _ph->sectionCount() = 2 + _optionalSections.size();
 }