summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLuke Mulkey <lwmulkey@us.ibm.com>2017-02-02 11:38:38 -0600
committerSachin Gupta <sgupta2m@in.ibm.com>2017-04-28 12:16:54 -0400
commit19ea95dd89795a181a8511a9251b650b2f628381 (patch)
tree009d2d3022e347aa486fc33a5c16be8800964883 /src
parent1c81aaa552b098d09da1c89ebe6e4c6ce95c467d (diff)
downloadtalos-sbe-19ea95dd89795a181a8511a9251b650b2f628381.tar.gz
talos-sbe-19ea95dd89795a181a8511a9251b650b2f628381.zip
Eff_config, volt, freq for p9c
Change-Id: I13fe2c0b91c0ae5b1c7ee37445775af566638c40 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35841 Reviewed-by: STEPHEN GLANCY <sglancy@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: ANDRE A. MARIN <aamarin@us.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35947 Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/import/hwpf/fapi2/tools/parseErrorInfo.pl14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl
index b511968f..176f128b 100755
--- a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl
+++ b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl
@@ -64,7 +64,7 @@ my $buffer_ffdc_type = "fapi2::buffer";
my $variable_buffer_ffdc_type = "fapi2::variable_buffer";
my $ffdc_type = "fapi2::ffdc_t";
my $mcast_type = "fapi2::mcast_t";
-my $ffdc_count = 0;
+my $ffdc_count = 0;
# There are some names used in the XML files which exist in either
# c++ keywords (case, for example) or macros (DOMAIN). The one's which
@@ -312,8 +312,9 @@ sub addFfdcMethod
$method_body .= " fapi2::g_FfdcData.ffdcData[$objectNumber].size =";
$method_body .= " fapi2::getErrorInfoFfdcSize(i_value);\n";
$method_body .= " return *this;\n };\n\n";
+
# ffdc_count is used to determine the maximum index written in sbe buffer
- if( $objectNumber > $ffdc_count)
+ if ( $objectNumber > $ffdc_count )
{
$ffdc_count = $objectNumber;
}
@@ -383,8 +384,9 @@ sub addFfdcMethod
$method_body .= " fapi2::g_FfdcData.ffdcData[$objectNumber].size =";
$method_body .= " fapi2::getErrorInfoFfdcSize(i_value);\n";
$method_body .= " return *this;\n };\n\n";
+
# ffdc_count is used to determine the maximum index written in sbe buffer
- if( $objectNumber > $ffdc_count)
+ if ( $objectNumber > $ffdc_count )
{
$ffdc_count = $objectNumber;
}
@@ -393,7 +395,7 @@ sub addFfdcMethod
$method .= ( $arg_empty_ffdc eq undef ) ? $method_body : " {return *this;}\n\n";
$methods->{$key}{ffdc_count} = $ffdc_count;
- $methods->{$key}{method} = $method;
+ $methods->{$key}{method} = $method;
}
#------------------------------------------------------------------------------
@@ -1480,12 +1482,14 @@ foreach my $argnum ( 0 .. $#ARGV )
{
print ECFILE $methods{$key}{method};
$method_count++;
+
# count number of indices written in sbe buffer
- if($methods{$key}{ffdc_count} > $count)
+ if ( $methods{$key}{ffdc_count} > $count )
{
$count = $methods{$key}{ffdc_count};
}
}
+
# Actual count is +1, as indices start from 0
$count += 1;
if ( $arg_local_ffdc eq undef )
OpenPOWER on IntegriCloud