summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/plat/prdfLineDelete.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/diag/prdf/common/plat/prdfLineDelete.C')
-rwxr-xr-xsrc/usr/diag/prdf/common/plat/prdfLineDelete.C19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/usr/diag/prdf/common/plat/prdfLineDelete.C b/src/usr/diag/prdf/common/plat/prdfLineDelete.C
index 35c622d5a..6ea383fec 100755
--- a/src/usr/diag/prdf/common/plat/prdfLineDelete.C
+++ b/src/usr/diag/prdf/common/plat/prdfLineDelete.C
@@ -5,7 +5,7 @@
/* */
/* IBM CONFIDENTIAL */
/* */
-/* COPYRIGHT International Business Machines Corp. 2005,2013 */
+/* COPYRIGHT International Business Machines Corp. 2005,2014 */
/* */
/* p1 */
/* */
@@ -63,6 +63,23 @@ namespace LineDelete
return ( iv_thPolicy.threshold <= count );
}
+ bool PrdfCacheCETable::addrThReached( PrdfCacheAddress i_addr,
+ STEP_CODE_DATA_STRUCT & i_sdc )
+ {
+ bool o_reached = false;
+
+ if ( cv_flushTimerInited && !isIntervalElapsed(i_sdc) )
+ {
+ uint32_t * count = cv_ceTable.find( i_addr );
+ if ( NULL != count )
+ {
+ o_reached = ( iv_thPolicy.threshold <= *count );
+ }
+ }
+
+ return o_reached;
+ }
+
/* PrdfCacheCETable::isIntervalElapsed()
*/
bool PrdfCacheCETable::isIntervalElapsed( STEP_CODE_DATA_STRUCT & i_sdc )
OpenPOWER on IntegriCloud