Add chip at fault to TOD secondary error callout list
The error could be anywhere between the chip at fault and the clock
source chip. So both chips should be added to the callout list.
Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I2a9e9b7b03ea300fc8ea92fcbd41080737f862d7
diff --git a/analyzer/plugins/p10-tod-plugins.cpp b/analyzer/plugins/p10-tod-plugins.cpp
index 35e306b..563e558 100644
--- a/analyzer/plugins/p10-tod-plugins.cpp
+++ b/analyzer/plugins/p10-tod-plugins.cpp
@@ -96,12 +96,17 @@
* network.
* @param i_topology Target topology.
* @param i_chipSourcingClock The chip sourcing the clock for the chip at
- * fault. This is NOT the chip at fault.
+ * fault.
+ * @param i_chipAtFault The chip reporting the fault.
*/
- void setNetworkFault(Topology i_topology, pdbg_target* i_chipSourcingClock)
+ void setNetworkFault(Topology i_topology, pdbg_target* i_chipSourcingClock,
+ pdbg_target* i_chipAtFault)
{
assert(nullptr != i_chipSourcingClock);
iv_networkFaultList[i_topology].push_back(i_chipSourcingClock);
+
+ assert(nullptr != i_chipAtFault);
+ iv_networkFaultList[i_topology].push_back(i_chipAtFault);
}
/**
@@ -281,7 +286,7 @@
slavePathSelect, util::pdbg::getPath(i_chip),
iohsPos, util::pdbg::getPath(chipSourcingClock));
- o_data.setNetworkFault(top, chipSourcingClock);
+ o_data.setNetworkFault(top, chipSourcingClock, i_chip);
}
}
}