summaryrefslogtreecommitdiffstats
path: root/dump_manager.hpp
diff options
context:
space:
mode:
authorMarri Devender Rao <devenrao@in.ibm.com>2018-11-12 07:45:54 -0600
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-01-22 21:57:01 +0000
commit0deb287cc1cd0acccc38e9333a87842134e87be3 (patch)
tree39657b4f568909f08ef25add7906fd9bf42bddc5 /dump_manager.hpp
parente57ee7623b4e4a5e6987879548ce4f201eabe685 (diff)
downloadphosphor-debug-collector-0deb287cc1cd0acccc38e9333a87842134e87be3.tar.gz
phosphor-debug-collector-0deb287cc1cd0acccc38e9333a87842134e87be3.zip
Refactor to pass errors to watch through config YAML
Add errors to watch for through error YAML file Add support for checkstop error type Tested: Generating dumps for elog, core, checkstop type errors. Change-Id: Idd00ace2e3d0c472a74ec142e6d150e55e843a6f Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
Diffstat (limited to 'dump_manager.hpp')
-rw-r--r--dump_manager.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/dump_manager.hpp b/dump_manager.hpp
index f414752..694cf7b 100644
--- a/dump_manager.hpp
+++ b/dump_manager.hpp
@@ -37,6 +37,13 @@ namespace fs = std::experimental::filesystem;
using Watch = phosphor::dump::inotify::Watch;
+// Type to dreport type string map
+static const std::map<Type, std::string> TypeMap = {
+ {Type::ApplicationCored, "core"},
+ {Type::UserRequested, "user"},
+ {Type::InternalFailure, "elog"},
+ {Type::Checkstop, "checkstop"}};
+
/** @class Manager
* @brief OpenBMC Dump manager implementation.
* @details A concrete implementation for the
OpenPOWER on IntegriCloud