summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2/tools
diff options
context:
space:
mode:
authorLuke Mulkey <lwmulkey@us.ibm.com>2017-02-02 11:38:38 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-04-28 16:11:24 -0400
commit78b9f5fc8fdd8aa99796729902150eae0f7829b5 (patch)
treedc6eb4f01fc174d39ea73fc59582481998ab3dc8 /src/import/hwpf/fapi2/tools
parent7058a2198c9f1a06d3306757ba2973d27a2dee75 (diff)
downloadtalos-hostboot-78b9f5fc8fdd8aa99796729902150eae0f7829b5.tar.gz
talos-hostboot-78b9f5fc8fdd8aa99796729902150eae0f7829b5.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/35948 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>
Diffstat (limited to 'src/import/hwpf/fapi2/tools')
-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 1c33435a9..81a8d303a 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