diff options
author | Dan Crowell <dcrowell@us.ibm.com> | 2019-02-08 15:32:51 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2019-02-14 22:39:10 -0600 |
commit | 8995ddcdc7682002872937c0a343b7df36f4502c (patch) | |
tree | 80550ada1a324b2a241b8402c6ef4b9e16ef1113 /src/build/buildpnor/PnorUtils.pm | |
parent | 117289f4ebcf54e6bace81b1c477b4a303200c61 (diff) | |
download | talos-hostboot-8995ddcdc7682002872937c0a343b7df36f4502c.tar.gz talos-hostboot-8995ddcdc7682002872937c0a343b7df36f4502c.zip |
Add a couple useful traces to the PNOR build script
Added a couple traces that indicate more clearly when and how
we are rearranging sections for our CI tests.
Change-Id: I33dbfa546218684d3039477de0cdfe7f12fb31c6
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71613
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@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: Michael Baiocchi <mbaiocch@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/build/buildpnor/PnorUtils.pm')
-rw-r--r-- | src/build/buildpnor/PnorUtils.pm | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/build/buildpnor/PnorUtils.pm b/src/build/buildpnor/PnorUtils.pm index 84eb5924b..0d26ebc91 100644 --- a/src/build/buildpnor/PnorUtils.pm +++ b/src/build/buildpnor/PnorUtils.pm @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2016,2018 +# Contributors Listed Below - COPYRIGHT 2016,2019 # [+] International Business Machines Corp. # # @@ -161,6 +161,7 @@ sub loadPnorLayout my $volatile = (exists $sectionEl->{volatile} ? "yes" : "no"); if (($i_testRun == 0) && ($sectionEl->{testonly}[0] eq "yes")) { + trace(2, "$this_func: Skipping $eyeCatch because this is non-test"); next; } @@ -371,7 +372,7 @@ sub checkSpaceConstraints # cases fit if ($testRun && $eyeCatch eq "HBI") { - print "Adjusting HBI size - ran out of space for test cases\n"; + print "$this_func: Adjusting HBI size - ran out of space for test cases\n"; adjustHbiPhysSize(\%sectionHash, $layoutKey, $filesize); } else @@ -391,6 +392,7 @@ sub checkSpaceConstraints sub adjustHbiPhysSize { my ($i_sectionHashRef, $i_hbiKey, $i_filesize) = @_; + my $this_func = (caller(0))[3]; my %sectionHash = %$i_sectionHashRef; @@ -410,7 +412,13 @@ sub adjustHbiPhysSize if ( $sectionHash{$section}{physicalOffset} > $sectionHash{$i_hbiKey}{physicalOffset} ) { + my $origoffset = $sectionHash{$section}{physicalOffset}; $sectionHash{$section}{physicalOffset} += $hbi_move; + trace(3, "$this_func: Section $sectionHash{$section}{eyeCatch} : " . sprintf("%X",$origoffset) . " --> " . sprintf("%X",$sectionHash{$section}{physicalOffset})); + } + else + { + printf "$this_func: Section $sectionHash{$section}{eyeCatch} : unchanged"; } } } |