summaryrefslogtreecommitdiffstats
path: root/src/usr/trace/runtime
Commit message (Collapse)AuthorAgeFilesLines
* Defect fix for class RsvdTraceBuffer to fix ErrorLog flatten issueRoland Veloz2019-04-232-32/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix is to correct an issue with the flattening of error logs. In particular 3 issues have been addressed in the method RsvdTraceBuffer::getTraceEntries(void* o_data, uint32_t i_dataSize) 1) The offset to insert the data entries into a returning buffer(o_data) was incorrect. It was using the size of the data for the first entry as the offset when it needed to be the size of the struct trace_buf_head_t because that struct is put first in the outgoing buffer(o_data) before the data items. 2) The method was returning the actual size of the data when it needed to be the size of the data in an alignment of 8 using ALIGN_8 method. 3) The method was returning the data in a skewed manner. Basically it was off by one. Which explains why the last entry was the foul one. Also added more comments and fixed spelling errors. Change-Id: Idabf519a36990cb1857d63d43304b6c0b9c04373 CQ: SW460919 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/76075 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Glenn Miles <milesg@ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Remove call to retrieve data from a previous runtime crashCorey Swenson2019-02-281-5/+9
| | | | | | | | | | | | | The reserved trace buffer is storing pointers that are no longer valid after opal-prd is restarted. Change-Id: I2495a2ca57e498aee571edc87e868ebd635d6df5 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72580 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Couple improvements to some runtime tracesDan Crowell2018-10-161-0/+9
| | | | | | | | | | | | | | Added SRC description for reserved memory trace log Added trace buffers to scom failures Change-Id: Ieb490cbd9c9b4a9e518135a40469a62f2b69a054 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66895 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Roland Veloz <rveloz@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
* Create a utility to add/remove entries from a link list within a given bufferRoland Veloz2018-06-197-1/+2808
| | | | | | | | | | | | | | | | | | | | | | This buffer is designed to be used in a runtime environment. I am laying the ground work for an over arching story that will save traces in a buffer for future consumption. For this commit, I have created the methods necessary to add, remove and find available space (for an Entry) in a buffer bound region of memory using a circular, doubly linked list. Change-Id: I259bb0f6051611a17b7b919bf026919ffdb12eb1 RTC: 191303 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/59575 Tested-by: Jenkins Server <pfd-jenkins+hostboot@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> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* HBRT Reserved Mem Trace Buffer implementation.Sakethan R Kotta2018-06-193-2/+51
| | | | | | | | | | | | | | | | | | | | | | -Hostboot master Drawer will create TRACEBUF section in the HB Rsvd Mem and HBRT, while booting, gets the TRACEBUF section details and initializes the circual buffer, if available. -If a valid data is present in the buffer, HBRT will create an info log ERRL, otherwise initializes the buffer. -Traces from all components are serialized and stored in the single TRACEBUF in the same format (fsp-binary Trace). When buffer is full, it deletes the oldest entry/entries to store the new ones. -ERRL->collectTrace() works similar to other buffers. -A new test case is added to dump the traces from TRACEBUF. Change-Id: I4ce943231a2ba30e3a13ca34d1c40ff68464a994 RTC:188726 RTC:191302 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/56450 Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Tested-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Log traces to error logs in HBRTMatt Derksen2017-10-194-6/+978
| | | | | | | | | | | | | | | | 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>
* Data streaming from a hw procedure - simple solution to consoleAndrew Geissler2015-01-221-1/+3
| | | | | | | | | | Change-Id: Icbf4b70acbe3909211294be9f0faed338763fc55 RTC: 34190 CMVC-Prereq: 949573 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14799 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-212-20/+20
| | | | | | | Change-Id: I5664587b4f889099290ef50d50fa9ce5e580e1eb Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11167 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Update makefiles & included .mk files to use += convention.Brian Silver2014-05-211-2/+5
| | | | | | | | Change-Id: I4148bc4c770b7c3c10fe25aa18d57d1a4301e5a9 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11194 Tested-by: Jenkins Server Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Clean up beam errors in core.Patrick Williams2014-02-271-2/+2
| | | | | | | | | | Change-Id: I695a38ae88583a052cae19b930eb53171f8fab2b RTC:94993 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/9050 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Runtime trace interfaces.Patrick Williams2013-10-081-5/+114
| | | | | | | | | | Change-Id: Ie261eba4bd790150d520bb0261f56c8329cb6a80 RTC: 79420 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6400 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Initial Hostboot Runtime image support.Patrick Williams2013-09-172-0/+126
RTC: 76675 Change-Id: Ibd21cf5b555e6dcee182a2f1a292b47d4f384ba0 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6127 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud