Add level 2 callout to TI logs

Hostboot requested this just in case any of their log fail to produce a
hidden SRC.

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: Ifc7dc862b3f612cfc25d339bf09b40a691c1b464
diff --git a/attn/attn_logging.cpp b/attn/attn_logging.cpp
index 34f3735..db14a92 100644
--- a/attn/attn_logging.cpp
+++ b/attn/attn_logging.cpp
@@ -6,11 +6,14 @@
 #include <attn/attn_dump.hpp>
 #include <attn/attn_logging.hpp>
 #include <attn/pel/pel_minimal.hpp>
+#include <nlohmann/json.hpp>
 #include <phosphor-logging/log.hpp>
 #include <util/dbus.hpp>
 #include <util/ffdc.hpp>
 #include <util/trace.hpp>
 
+#include <fstream>
+
 namespace attn
 {
 /** @brief Tuple containing information about ffdc files */
@@ -478,8 +481,16 @@
 
     trace::inf("TI info size = %u", tiInfoSize);
 
-    event(EventType::Terminate, i_additionalData,
-          createFFDCFiles(i_tiInfoData, tiInfoSize));
+    auto userData = createFFDCFiles(i_tiInfoData, tiInfoSize);
+
+    // Per request from the Hostboot team. Add a level 2 callout.
+    userData.emplace_back(util::FFDCFormat::Custom, 0xCA, 0x01);
+    std::ofstream o{userData.back().getPath()};
+    o << nlohmann::json::parse(R"(
+        [ { "Procedure": "next_level_support", "Priority": "L" } ]
+    )");
+
+    event(EventType::Terminate, i_additionalData, userData);
 }
 
 /** @brief Commit SBE vital event to log, returns event log ID */