Remove openpower-libhei subproject dependency
Statically link to openpower-libhei rather than building it as a
subproject.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Ifc1be912ef484c0c7a1157ac0c9b90a62e03d9c7
diff --git a/analyzer/analyzer_main.cpp b/analyzer/analyzer_main.cpp
index f697b4b..13da175 100644
--- a/analyzer/analyzer_main.cpp
+++ b/analyzer/analyzer_main.cpp
@@ -3,10 +3,23 @@
namespace analyzer
{
-/** @brief Analyze and isolate hardware errors */
+/** Analyze error condition using the hardware error isolator */
void analyzeHardware()
{
- return;
+ using namespace libhei;
+
+ std::vector<Chip> chipList; // data to isolator
+ IsolationData isoData{}; // data from isolator
+
+ // TEMP CODE - start
+ initialize(nullptr, 0);
+
+ chipList.emplace_back(Chip{"proc", static_cast<ChipType_t>(0xdeadbeef)});
+
+ isolate(chipList, isoData);
+
+ uninitialize();
+ // TEMP CODE - end
}
} // namespace analyzer