diff options
author | Jaymes Wilks <mjwilks@us.ibm.com> | 2016-02-17 14:08:22 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-05-10 11:30:41 -0400 |
commit | 6b5cbe4f6329a608a916b74cf5a2dff12546827e (patch) | |
tree | abe0d913c7f5d7212c082462133069c168cd602a /src/usr/trace/service.H | |
parent | 9f8d0889827da64842444c8ba5a0d26e38520b2c (diff) | |
download | talos-hostboot-6b5cbe4f6329a608a916b74cf5a2dff12546827e.tar.gz talos-hostboot-6b5cbe4f6329a608a916b74cf5a2dff12546827e.zip |
Output native trace data to console
Trace data is printed as ascii hex values to console when turned on.
Traces can now be recreated using a command line tool and the
hbotStringFile.
Change-Id: I8e8a95945002a9acbe555d1e75482d289c7ef8fa
BackPort: no
RTC:143820
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21593
Tested-by: Jenkins Server
Tested-by: FSP CI Jenkins
Reviewed-by: Stephen M. Cprek <smcprek@us.ibm.com>
Tested-by: Jenkins OP Build CI
Tested-by: Jenkins OP HW
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24218
Reviewed-by: Jay M. Azurin <jmazurin@us.ibm.com>
Diffstat (limited to 'src/usr/trace/service.H')
-rw-r--r-- | src/usr/trace/service.H | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/usr/trace/service.H b/src/usr/trace/service.H index e32dc1792..52cc81399 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,2015 */ +/* Contributors Listed Below - COPYRIGHT 2012,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -145,6 +145,16 @@ namespace TRACE */ void flushBuffers(); + /** @brief Sets TraceLite as enabled or disabled. + * @param[in] i_isEnabled - 1 for enabled, 0 for disabled + */ + void setTraceLite(uint8_t i_isEnabled); + + /** @brief Gets TraceLite setting (either enabled or disabled). + * @return 1 for enabled, 0 for disabled + */ + uint8_t getTraceLite(); + friend class TRACEDAEMON::Daemon; private: @@ -160,6 +170,8 @@ namespace TRACE static Service* getGlobalInstance(); /** Copy the current time into the timestamp. */ void _createTimeStamp(trace_entry_stamp_t* o_entry); + /** tracelite enabled **/ + uint8_t iv_traceLite; #endif }; } |