blob: 03d6a8f72f7f4232051f4c09b0751b07bc24893b [file] [log] [blame]
Ben Tyner9ae5ca42020-02-28 13:13:50 -06001#include <hei_main.hpp>
2
3namespace analyzer
4{
5
6// Quick test that we can call the core libhei functions. This function
7// is called from the attention handler when a checkstop event is active.
8void analyzeHardware()
9{
10 using namespace libhei;
11
12 // Add some chips for error isolation
13 std::vector<Chip> chipList;
14 chipList.emplace_back(Chip{"proc", static_cast<ChipType_t>(0xdeadbeef)});
15
16 // Isolation data that will be populated by isolator
17 IsolationData isoData{};
18
19 // Isolate active hardware errors in chips
20 initialize(nullptr, 0);
21 isolate(chipList, isoData);
22 uninitialize();
23}
24
25} // namespace analyzer