Support for memory buffer SBE dump
This commit adds support for collecting memory buffer
SBE in the dump collect application
Change-Id: I8cde59d5fdea042db86356bbf6baea0270cb74e2
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/dump/dump_collect_main.cpp b/dump/dump_collect_main.cpp
index ac43fb1..dc6562b 100644
--- a/dump/dump_collect_main.cpp
+++ b/dump/dump_collect_main.cpp
@@ -31,7 +31,8 @@
app.add_option("--type, -t", type, "Type of the dump")
->required()
->check(CLI::IsMember({SBE_DUMP_TYPE_HARDWARE, SBE_DUMP_TYPE_HOSTBOOT,
- SBE_DUMP_TYPE_SBE, SBE_DUMP_TYPE_PERFORMANCE}));
+ SBE_DUMP_TYPE_SBE, SBE_DUMP_TYPE_PERFORMANCE,
+ SBE_DUMP_TYPE_MSBE}));
app.add_option("--id, -i", id, "ID of the dump")->required();
@@ -50,7 +51,8 @@
return app.exit(e);
}
- if (((type == SBE_DUMP_TYPE_HARDWARE) || (type == SBE_DUMP_TYPE_SBE)) &&
+ if (((type == SBE_DUMP_TYPE_HARDWARE) || (type == SBE_DUMP_TYPE_SBE) ||
+ (type == SBE_DUMP_TYPE_MSBE)) &&
!failingUnit.has_value())
{
std::cerr
@@ -75,7 +77,7 @@
try
{
- if (type == SBE_DUMP_TYPE_SBE)
+ if ((type == SBE_DUMP_TYPE_SBE) || (type == SBE_DUMP_TYPE_MSBE))
{
collectSBEDump(id, failingUnitId, pathStr, type);
}
diff --git a/dump/sbe_consts.hpp b/dump/sbe_consts.hpp
index 4088929..b1d0a47 100644
--- a/dump/sbe_consts.hpp
+++ b/dump/sbe_consts.hpp
@@ -6,8 +6,9 @@
constexpr auto SBE_DUMP_TYPE_HARDWARE = 0x1;
constexpr auto SBE_DUMP_TYPE_PERFORMANCE = 0x3;
-// SBE dump type
+// SBE dump types
constexpr auto SBE_DUMP_TYPE_SBE = 0xA;
+constexpr auto SBE_DUMP_TYPE_MSBE = 0xB;
// Clock state requested
// Collect the dump with clocks on