diff options
| author | Dean Sanner <dsanner@us.ibm.com> | 2016-05-15 12:03:54 -0500 |
|---|---|---|
| committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2016-06-24 10:56:44 -0400 |
| commit | aa513a3a39202bcbc5294cd1ef6618ecbe151bf8 (patch) | |
| tree | 03a13ac3ed32fe5d30027a25e1033912f5698cc0 /src/usr/trace/daemonif.C | |
| parent | 7e8f95823e071367bc17bb95113239324f06e5d5 (diff) | |
| download | talos-hostboot-aa513a3a39202bcbc5294cd1ef6618ecbe151bf8.tar.gz talos-hostboot-aa513a3a39202bcbc5294cd1ef6618ecbe151bf8.zip | |
FSPless continous tracing support
- Updated trace daemon to output trace buf addr, size to
mbox scratch 1, 2
- Moved enable disable of continous trace to "istep" control
- Updated istep tool to dump traces to file and commandline
Change-Id: I2d9f48f5ed9878591ff9ab45fa18a98fc286ac1f
RTC:127346
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24565
Tested-by: Jenkins Server
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: FSP CI Jenkins
Reviewed-by: Prachi Gupta <pragupta@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/trace/daemonif.C')
| -rw-r--r-- | src/usr/trace/daemonif.C | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/usr/trace/daemonif.C b/src/usr/trace/daemonif.C index 427b2c0bc..c6dd79219 100644 --- a/src/usr/trace/daemonif.C +++ b/src/usr/trace/daemonif.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2016 */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -64,4 +66,13 @@ namespace TRACE } } + void DaemonIf::continousMode(bool i_enable) + { + msg_t* msg = msg_allocate(); + msg->type = TRACE_CONT_TRACE_STATE; + msg->data[0] = i_enable ? 0x1 : 0x0; //needs to be a zero/one + msg_sendrecv(iv_queue, msg); + msg_free(msg); + } + } |

