summaryrefslogtreecommitdiffstats
path: root/src/usr/testcore/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix true_type and false_ type typdef with integral_constantAndre Marin2019-04-022-2/+18
| | | | | | | | | | Change-Id: Ie1a432be0d1b2a59a0e0521f251d6bdf8a11ac70 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/74942 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> 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> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
* Add std::remove_all_extends to HB STL libraryAndre Marin2019-03-151-0/+60
| | | | | | | | | | Change-Id: I6fa0e9930a9d8340416ab3c775238f60931882d8 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72688 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Chen Du <duchen@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Thread local storage: Update unit tests for thread local storageJaymes Wilks2019-03-112-18/+172
| | | | | | | | | | | | | | | | | | | | Test cases now support TLS tests for: - intra translation unit (already existed) - inter translation unit, within the same module - inter module - trivial and non trivial constructors - both orders of declaration and usage Change-Id: I71681b00525bfe3e7906541e0b5b4c21a8556beb RTC:147599 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/72633 Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-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: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Disable Sync TestChristian Geddes2019-02-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SyncTest has been periodically failing with with a data storage exception. While this is being looked at we will disable the test to stop it from failing CI tests. Fail being seen: |-+ TID 840 State: Block on Futex(0x80000000081da810) SyncTest::watch_counter(void*) [libtestsyslib.so] NIP : _syscall5+0x4 : 0x00002928 F[00]: sync_cond_wait(_cond_imp_t*, _futex_imp_t*)+0xd0 : 0x00010ee0 F[01]: SyncTest::watch_counter(void*)+0x5C : 0x40bc0a7c F[02]: task_end_stub+0x0 : 0x00002710 |+ TID 841 State: Block on Futex(0x80000000081da7f0) SyncTest::increment(void*) [libtestsyslib.so] NIP : _syscall5+0x4 : 0x00002928 F[00]: barrier_wait(_barrier_imp_t*)+0x13c : 0x0001084c F[01]: SyncTest::increment(void*)+0xE8 : 0x40bc09f8 F[02]: task_end_stub+0x0 : 0x00002710 |-+ TID 842 State: Zombie(Crashed) SyncTest::increment(void*) [libtestsyslib.so] NIP : UNKNOWN+0x0 : 0x7c5b03a63840002c F[00]: _start+0x0 : 0x00000000 RTC: 204720 Change-Id: Ie5546167cf3728b168b504db8a24389af36aa26e Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71792 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> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Attribute support for recursive mutexesMatt Raybuck2018-11-122-8/+9
| | | | | | | | | | | | | | | | Added a new recursive mutex attribute, new test cases, and initializers for recursive mutex attributes. Change-Id: I49e6bc4fc2fd84e5c46e5d4c5ec125270347bde5 RTC: 196793 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67939 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@us.ibm.com> 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>
* Disable synchronization testsNick Bofferding2018-11-011-1/+1
| | | | | | | | | | | | | | | Synchonization tests were recently re-enabled, causing CI instability. This re-disables the testcases until they can be made to work properly. Change-Id: I03f7df90c1548554ad8f293d10df5f9cdd117456 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/68240 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-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: Matthew Raybuck <mraybuc@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Added support for recursive mutexesMatt Raybuck2018-10-292-7/+75
| | | | | | | | | | | | | | | | There was only support for non-recursive mutexes. This commit adds support for recursive mutexes and a new API for using them. Change-Id: I664c181af1633b05b8b2da6b1ff21b93a37cec28 RTC: 196793 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67938 Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Ilya Smirnov <ismirno@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: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add additional comparison function objects into functional headerAndre Marin2018-05-101-1/+61
| | | | | | | | | | Change-Id: I6314ec8582e1d9cc284adf877e115433e95a168e Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58217 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> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add std::map operator== overload and != for vectorStephen Cprek2017-10-101-0/+24
| | | | | | | | | | | | | Change-Id: I3b40533d2586d455db184e9d845618b41b848296 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/46712 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@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: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Marshall J. Wilks <mjwilks@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Add map list initialization and at() methodsStephen Cprek2017-04-101-1/+19
| | | | | | | | | | | | | | Also add ErrnoToString() as a test which is a functionality ported from p8 Change-Id: Ia6dd9b37638af2634267e224d9b97133bf984fb4 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/38956 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@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> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Makefile changes for OP Build CI WitherspoonElizabeth Liner2016-11-151-2/+2
| | | | | | | | | | | Change-Id: Id51c5333c10e910f54d9f2fb5666ed5701efbfc0 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/32621 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com> Reviewed-by: Prachi Gupta <pragupta@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Implement std::arrayStephen Cprek2016-10-302-1/+186
| | | | | | | | | | | Change-Id: I86149816b46f213502801fb710dc2f68d4a4b0f7 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/30647 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Overloaded != operator for shared_ptr.Matt Derksen2016-06-021-2/+6
| | | | | | | | | | | | | Also updated cxxtests to make them pass. Change-Id: I444a9c6c60261755db55fffbed66c92f93965c50 RTC:153697 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/25138 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Implement std::map::emplace()Matt Derksen2016-06-021-0/+75
| | | | | | | | | | | Change-Id: Id3f42ac3e5edf6c65c420e60ac69d649cbaa1ed0 RTC:153697 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24631 Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Added equal comparison override for shared_ptrMatt Derksen2016-05-241-1/+6
| | | | | | | | | | | Change-Id: I7a9358001bd7a99735fc52bb6b8af21be3df45a6 RTC:133837 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24605 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: Andres A. Lugo-Reyes <aalugore@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Vector and list initializer lists fail with {} contructorAndrew Geissler2016-05-161-1/+10
| | | | | | | | | | | | | | | The initializer list with C++14 now requires we have a non-explicit default constructor in list and vector Change-Id: Iec9e77aedd48c97e3c1c49cfa43274098bd56a03 RTC: 153890 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24518 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
* Implement std::enable_if in HBMatt Derksen2016-05-071-0/+83
| | | | | | | | | | | | Change-Id: I72f415403ef0d88defc80f81cb1038013f94b99f RTC:152209 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/24091 Tested-by: Jenkins Server Reviewed-by: Martin Gloff <mgloff@us.ibm.com> Tested-by: FSP CI Jenkins Reviewed-by: A. P. Williams III <iawillia@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
* Need to implement new Ctor for std::vectorAndrew Geissler2016-03-171-3/+88
| | | | | | | | | Change-Id: Ia7743dc8d3a83b4be361626b1dea57f39e4dd483 RTC: 149398 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/21938 Tested-by: Jenkins Server Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: A. P. Williams III <iawillia@us.ibm.com>
* Re-enable shared ptr test casecrgeddes2016-02-191-14/+2
| | | | | | | | Change-Id: Ib871e29ed2cd75c64988820a739504fe9589c0bc RTC:144346 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23669 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* Re-enable test cases for P9 Workcrgeddes2016-02-191-2/+17
| | | | | | | | | | | | | | This commit re-enables the test modules that were shut off for the initial start of of the p9 simics model. Most of the changes were updating hardcoded values and changing the definition of a "fail" for some of the test that were assuming certain components to be contained in the system Change-Id: I1860f49ea83ba1946f5181a05a4e97f10f1522f3 RTC: 129630 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22826 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
* libc support for thread-local storagePatrick Williams2015-12-111-0/+75
| | | | | | | | | | RTC: 124148 Change-Id: I055885bc7d7cfc4ebd7cf1a662f677bdf4e28c62 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22313 Tested-by: Jenkins Server Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* shared_ptr r-value ref ctor didn't match standardPatrick Williams2015-12-111-0/+16
| | | | | | | | Change-Id: I4825be8ff9929eadc3ee78d2141f6a3d43ea751b Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22518 Reviewed-by: Christian Geddes <crgeddes@us.ibm.com> Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Implement std::shared_ptr.Patrick Williams2015-12-111-0/+89
| | | | | | | | | | RTC: 124148 Change-Id: Iad6430ec701caec0d3c65de3618cc8d5605e6aa0 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21800 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Implement std::is_pointer,is_referencePatrick Williams2015-12-111-0/+120
| | | | | | | | | | | RTC: 124148 Change-Id: I25117c038cc3e9c926503921168f2239a1e6d673 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21797 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: PRACHI GUPTA <pragupta@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Implement std::is_integral.Patrick Williams2015-12-111-0/+70
| | | | | | | | | | | RTC: 124148 Change-Id: I01b8f3c1fb27068e0384045c65c271baefd25622 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21796 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Implement std::is_same.Patrick Williams2015-12-112-0/+148
| | | | | | | | | | | RTC: 124148 Change-Id: Id0737361f92d0ff46411254c3e1e3df22d6d8a10 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/21795 Tested-by: Jenkins Server Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: Richard J. Knight <rjknight@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add support for std::ptr_funPatrick Williams2014-10-151-0/+89
| | | | | | | | | Change-Id: I89f178d7adbd87b503077d75cec021ee94f96a48 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/13998 Tested-by: Jenkins Server Reviewed-by: Brian Silver <bsilver@us.ibm.com> Reviewed-by: STEPHEN M. CPREK <smcprek@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Change copyright prolog for all files to Apache.Patrick Williams2014-05-217-121/+119
| | | | | | | 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-212-4/+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>
* Initial Hostboot Runtime image support.Patrick Williams2013-09-172-14/+46
| | | | | | | | 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>
* Memory Leak task_endBill Schwartz2012-10-121-33/+36
| | | | | | | | Change-Id: Idb7a2d8d72a55f644efd0b2548eca5df5d062e6d RTC: 47491 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/2011 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Removed workaround for SW145497Patrick Williams2012-09-241-8/+0
| | | | | | | | | | | Task 42921 Change-Id: Ia763402c654e3e2f881a6646b7ced77597c7d473 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1775 Tested-by: Jenkins Server Reviewed-by: ADAM R. MUHLE <armuhle@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Additional needed utilities for PRD port.Patrick Williams2012-08-151-0/+91
| | | | | | | | | | | | | | | | | Implement assorted utilities and STL templates for the port of existing PRD code from FSP: * strcat / strncat * std::generate_n * std::transform * std::back_inserter RTC: 44531 Change-Id: I9992f78222cbc2f74da15eea74c9b2cad602ad59 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1501 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Christopher T. Phan <cphan@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for core_activate via IPI.Patrick Williams2012-07-161-23/+32
| | | | | | | | RTC: 37009 Change-Id: I56669805c86d9659a20ad7c26e5e9860c7a248c7 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1087 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Enhanced STL capabilities.Patrick Williams2012-05-211-0/+124
| | | | | | | | | | | | | | | | | | | - max_element - for_each - remove / remove_if - unique - sort - mem_fun / mem_fun_ref - bind1st / bind2nd RTC: 41636 Change-Id: Icf15ef90562ed20097306a15f4a314e05511b199 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1068 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support for POSIX clock_gettime function.Patrick Williams2012-05-211-0/+70
| | | | | | | | | | Change-Id: I004772e9005ce08d72d666a9b4073afd7b74e582 RTC: 41635 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1053 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>
* Segfault in map when removing root-node.Patrick Williams2012-05-101-0/+12
| | | | | | | | | Change-Id: I0ed81f62d00c771ffb7d3fc98745ea47bd51f90f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1043 Tested-by: Jenkins Server Reviewed-by: Van H. Lee <vanlee@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix deadlock in synctest.HPatrick Williams2012-04-111-30/+37
| | | | | | | | | | | | | | | A barrier was reinitialized by the testcase driver task prior to all the previous tasks leaving the barrier. This causes a permanent deadlock for the next set of tasks. Add a task_wait call to ensure all children have exited the barrier (and exited) prior to reusing the barrier. Change-Id: I537090da662d79796ada42befd1a12c7acdaa148 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/872 Tested-by: Jenkins Server Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Fix broken map::operator[].Patrick Williams2012-04-051-0/+6
| | | | | | | | | | | | | | | | According to the STL documentation, 'insert' should do nothing if attempting to insert an item that already exists. This allows [] to be implemented as a form of insert(pair(key, data_T())). Our insert was actually updating the data portion of the map, which was causing operator[] to always erase the data portion of any lookup. Change-Id: I5b2ae1934dbd81d71df4b56d83e2f04f53f0e525 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/825 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Improve std::map by using a SplayTree container.Patrick Williams2012-03-291-0/+37
| | | | | | | | | | | | | | | | | Originally std::map was implemented as a linked list. Some of the maps in PORE and PRD code will be big enough that this is very inefficient. Converted std::map to a binary search tree implementation based on the Splay-Tree algorithm. RTC: 34071 Change-Id: If77c017f5d95920f8010991e7f087cbe571ca2e9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/790 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add return of an iterator to the vector erase function to match the stl ↵Doug Gilbert2012-03-061-0/+33
| | | | | | | | | | | standard. Change-Id: I383a147976bb6203f6426c22279f9ad6dc80b46e RTC: 37922 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/722 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Reviewed-by: Bradley W. Bishop <bradleyb@us.ibm.com>
* STL advance / distance.Patrick Williams2012-02-221-0/+94
| | | | | | | | | | Change-Id: I9cdf9459f2970def812b1681897fe7d0cdda37ac Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/669 Tested-by: Jenkins Server Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com> Reviewed-by: Terry J. Opie <opiet@us.ibm.com> Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Conditional Variable supportDoug Gilbert2012-01-251-0/+139
| | | | | | | Change-Id: Ib715b3a4e775ef183244e8769c6560a85ac19104 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/612 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Support host boot mutex attributesNick Bofferding2011-11-161-5/+2
| | | | | | | | | | | | | | | | | | | | - Prevented mutex attributes from being copied in target APIs - Added target APIs to get/tryGet mutex attribute references - Added testcases to verify mutex attributes - Added mutex attribute type to XML definition - Added test mutex attribute to system target XML definition - Modified attribute compiler to support mutex attributes and restrictions - Replaced 100000 cycle loop in synctest.H with nanosleep for 10 CTX switches - Added context switch time macros to time.h - Removed context switch time macros from taskwaittest.H and renamed existing macro calls - Removed context switch time macros from synctest.H and renamed existing macro calls Change-Id: I93fecfa75e00e509fa442e4dd5c9e3fd67866e98 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/491 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* STL map support based on STL listDoug Gilbert2011-10-261-0/+171
| | | | | | | Change-Id: Ifd693b0911b0f76114564920dbb86f1cefa6f838 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/450 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Reduce sleep times in test cases.Patrick Williams2011-10-191-1/+6
| | | | | | | | Change-Id: I262532cb368ed4d2d5c718e00783a73eb2790855 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/440 Tested-by: Jenkins Server Reviewed-by: MATTHEW S. BARTH <msbarth@us.ibm.com> Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
* Floating point support.Patrick Williams2011-09-121-0/+49
| | | | | | | Change-Id: I859cac1c01bf631d12223702d68813b45339b65f Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/295 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Add copyright headers to all source files.Patrick Williams2011-08-242-0/+44
| | | | | | | Change-Id: I205f2409e56032cfc0aaf01d7e26d357f0b86373 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/277 Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com> Tested-by: Jenkins Server
* Clean up mutex issues.Patrick Williams2011-08-091-0/+15
| | | | | | | | | | | | | - Final fix for mutex bug. - Document weak-consistency decisions in mutex code. - Prevent aggressive optimizations around lwsync/isync instrs. - Fix minor bug in futex_wait system call. - Optimize futex path with likely/unlikely hints. Change-Id: I26b54dee7e45bcb42195f730474b350b44f53cfc Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/233 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
* Create testcore directory for kernel-level tests.Patrick Williams2011-06-172-0/+99
Change-Id: I4b6235edec59c0a97f53af431752d2f4dfabcfa9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/151 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
OpenPOWER on IntegriCloud