summaryrefslogtreecommitdiffstats
path: root/src/usr/trace/compdesc.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/trace/compdesc.C')
-rw-r--r--src/usr/trace/compdesc.C19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/usr/trace/compdesc.C b/src/usr/trace/compdesc.C
index 92b306949..ddfd860dc 100644
--- a/src/usr/trace/compdesc.C
+++ b/src/usr/trace/compdesc.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2012 */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
/* */
/* p1 */
/* */
@@ -26,6 +26,8 @@
#include <string.h>
#include <string_ext.h>
+#include <targeting/common/commontargeting.H>
+
namespace TRACE
{
ComponentDesc::ComponentDesc(const char* i_comp, uint32_t i_size,
@@ -91,6 +93,21 @@ namespace TRACE
l_rc = &iv_components.back();
}
+ // Check for special SCAN component to force enable debug trace on.
+ if (0 == memcmp(l_compName, "SCAN", 5))
+ {
+ TARGETING::Target* sys = NULL;
+ TARGETING::targetService().getTopLevelTarget(sys);
+
+ TARGETING::HbSettings hbSettings =
+ sys->getAttr<TARGETING::ATTR_HB_SETTINGS>();
+
+ if (hbSettings.traceScanDebug)
+ {
+ l_rc->iv_debugEnabled = true;
+ }
+ }
+
mutex_unlock(&iv_mutex);
return l_rc;
}
OpenPOWER on IntegriCloud