Combine attn handler and openpower hwdiags
The main binary is now openpower-hw-diags. This application will take a
command line option --daemon to load it as a daemon. As a daemon it will
register the attention handler portion of application as the attention
gpio event handler. If the application is not loaded as a daemon it will
operate as a stand alone application which accepts command line options
for requesting hardware analyses and diagnostics operations.
Change-Id: I6210b744cb320873d74a0757928f904ca6296846
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
diff --git a/attn/attn_handler.cpp b/attn/attn_handler.cpp
index 0463837..ec600e5 100644
--- a/attn/attn_handler.cpp
+++ b/attn/attn_handler.cpp
@@ -1,5 +1,6 @@
#include <libpdbg.h>
+#include <analyzer/analyzer_main.hpp>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
@@ -157,12 +158,7 @@
ss << "[ATTN] checkstop" << std::endl;
log<level::INFO>(ss.str().c_str());
- if (0 != rc)
- {
- std::stringstream ss; // log message stream
- ss << "[ATTN] checkstop NOT handled" << std::endl;
- log<level::INFO>(ss.str().c_str());
- }
+ analyzer::analyzeHardware();
// TODO recoverable errors?