summaryrefslogtreecommitdiffstats
path: root/src/usr/trace/buffer.C
Commit message (Collapse)AuthorAgeFilesLines
* Implement a lockfree ABA-safe smart pointer.Patrick Williams2015-04-241-6/+9
| | | | | | | | | | | | | | | | * Use algorithm from lockfree stack as basis. * Convert lockfree stack to use new ABA-safe pointer. * Convert trace service to use ABA-safe pointers on client buffer pages to resolve futex hang due to page reuse. Change-Id: Ib6645f2281db8fa5d81103c1753e548976615797 CQ: FW633818 Backport: release-fips830 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16042 Tested-by: Jenkins Server Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix spelling mistakes using codespell.Patrick Williams2015-01-151-5/+7
| | | | | | | | | | | | - See https://github.com/lucasdemarchi/codespell Change-Id: I03e102d1ebb9473b6226fa9b6edb684fa0218a2f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15031 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-211-10/+10
| | | | | | | 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>
* Trace race condition causes deadlock.Patrick Williams2014-05-211-4/+11
| | | | | | | | | | | | | | | | | | | | | | In some cases where the trace daemon is coalescing trace at the exact instant that a thread is creating a trace entry we can end up in a deadlock. The daemon is in the process of moving a trace entry from one page to another and updates some pointers in the trace linked list. The daemon then pauses for all of the trace producers to finish their transactions before updating the component buffer's pointers. At this point, the producer can use data that is in a half-updated state and deadlock. The solution is to have the producer cache state data during the life of its transaction. Change-Id: Ic7d031abb03f24e47cf4903400ef5f0e7520ee68 CQ: SW261995 Backport: release-fips811 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11149 Tested-by: Jenkins Server Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com> 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>
* Potential buffer overrun in trace collection.Patrick Williams2014-01-151-1/+5
| | | | | | | | | Change-Id: I8352c37f3789c684df24b75e85abca9fddfa314f Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/8054 Tested-by: Jenkins Server Reviewed-by: Michael Baiocchi <baiocchi@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Race condition in trace leads to double-delete.Patrick Williams2013-11-151-22/+15
| | | | | | | | | Change-Id: I4fc4acc8f84de151d1d9600802539c18c6aa7851 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7277 Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: Thi N. Tran <thi@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Race condition in extract-trace.Patrick Williams2013-05-011-4/+5
| | | | | | | | Change-Id: If1445116f7520e010cad74d9f7227ae7889ef935 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4254 Tested-by: Jenkins Server Reviewed-by: Dean Sanner <dsanner@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Lockless trace implementationPatrick Williams2012-12-141-0/+588
RTC: 35396 Change-Id: I96ea0d95606f04abb4dc2b0470345ca475b53912 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2520 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud