diff options
author | Prem Shanker Jha <premjha2@in.ibm.com> | 2013-10-30 10:26:21 +0530 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-12-02 18:00:45 -0600 |
commit | 03d39f2bbcef34ef34eabdf8e64b5cfe52f2d6f7 (patch) | |
tree | df4e6178f334331204a90f141a86849e93bc9c05 /src/usr/diag/prdf/test | |
parent | 554aa3dbb530d6da0de7c83bf23346ae5f6032eb (diff) | |
download | talos-hostboot-03d39f2bbcef34ef34eabdf8e64b5cfe52f2d6f7.tar.gz talos-hostboot-03d39f2bbcef34ef34eabdf8e64b5cfe52f2d6f7.zip |
PRDF:Handling multiple chips of a domain at error
Depends-On: Ib42b269d2e9fd5588b58950949c379bdc8518bfc
RTC:85138
Change-Id: Id4d785f72c928498dbcbee729e9644a8464fc0ae
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7459
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Tested-by: Jenkins Server
Squashed: Ic871fdfb693a4cc174c72e1583a3373524277559
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/14573
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/test')
-rwxr-xr-x | src/usr/diag/prdf/test/prdfsimServices.C | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/usr/diag/prdf/test/prdfsimServices.C b/src/usr/diag/prdf/test/prdfsimServices.C index a153f08d9..84d015a15 100755 --- a/src/usr/diag/prdf/test/prdfsimServices.C +++ b/src/usr/diag/prdf/test/prdfsimServices.C @@ -5,7 +5,9 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2012,2014 */ +/* Contributors Listed Below - COPYRIGHT 2012,2014 */ +/* [+] 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. */ @@ -26,6 +28,7 @@ #include <prdfMain.H> #include <prdfTrace.H> #include <prdfGlobal.H> +#include <algorithm> #include "prdfsimUtil.H" #include "prdsimSignatureParser.H" @@ -149,10 +152,10 @@ namespace PRDF void SimServices::addAttnEntry(const char * i_epath, ATTENTION_VALUE_TYPE i_attnType) { - AttnData l_attnEntry; - l_attnEntry.targetHndl = string2Target(i_epath); - l_attnEntry.attnType = i_attnType; - iv_attnList.push_back(l_attnEntry); + AttnData l_attnEntry( string2Target(i_epath), i_attnType ); + iv_attnList.insert( std::lower_bound( iv_attnList.begin(), + iv_attnList.end(), l_attnEntry ), + l_attnEntry ); // If the target in sim is not functional, // set to functional and destroy the PRD config |