summaryrefslogtreecommitdiffstats
path: root/src/usr/trace/service.H
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2017-10-03 11:02:13 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-10-19 22:17:55 -0400
commitad1909dedffab93922fe80f06bf89d5b76d9e9a0 (patch)
treea244fa143b4463dc2f51b742d606a64cefd1548a /src/usr/trace/service.H
parent20250c0b1f6de53b2bfddd1c714fb8c97e655ce2 (diff)
downloadtalos-hostboot-ad1909dedffab93922fe80f06bf89d5b76d9e9a0.tar.gz
talos-hostboot-ad1909dedffab93922fe80f06bf89d5b76d9e9a0.zip
Log traces to error logs in HBRT
This enables buffer tracing at hostboot runtime. Will add these traces to runtime errors for better debug Change-Id: I795bb7deafdd02adea4588ebf8dfb11cbce116a0 RTC:172770 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/48084 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/trace/service.H')
-rw-r--r--src/usr/trace/service.H24
1 files changed, 16 insertions, 8 deletions
diff --git a/src/usr/trace/service.H b/src/usr/trace/service.H
index 001242530..afe2c18f7 100644
--- a/src/usr/trace/service.H
+++ b/src/usr/trace/service.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2016 */
+/* Contributors Listed Below - COPYRIGHT 2012,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -167,20 +167,28 @@ namespace TRACE
friend class TRACEDAEMON::Daemon;
private:
-#ifndef __HOSTBOOT_RUNTIME
/** Front-size buffers */
Buffer* iv_buffers[BUFFER_COUNT]; // slow / fast buffers.
- /** Interface to signal daemon. */
- DaemonIf* iv_daemon;
- /** List of component descriptors. */
- ComponentList* iv_compList;
- /** Get the singleton instance. */
- static Service* getGlobalInstance();
/** Copy the current time into the timestamp. */
void _createTimeStamp(trace_entry_stamp_t* o_entry);
+
+ /** Get the singleton instance. */
+
+ static Service* getGlobalInstance();
+
+ /** List of component descriptors. */
+ ComponentList* iv_compList;
+
+#ifndef __HOSTBOOT_RUNTIME
+ /** Interface to signal daemon. */
+ DaemonIf* iv_daemon;
+
/** tracelite enabled **/
uint8_t iv_traceLite;
+#else
+ /** Runtime daemon **/
+ TRACEDAEMON::Daemon * iv_daemon;
#endif
};
}
OpenPOWER on IntegriCloud