diff options
| author | Mark Wenning <wenning@us.ibm.com> | 2012-09-18 13:42:55 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-11-07 12:08:57 -0600 |
| commit | b23d4daee35dfc8761aecc86ade077be1bcac548 (patch) | |
| tree | af9d0bae4e63f21b6d098492e73f9b7b8d09be6b /src/build/debug | |
| parent | 899d62da619d299b0869c8e2b8c7b416985243af (diff) | |
| download | blackbird-hostboot-b23d4daee35dfc8761aecc86ade077be1bcac548.tar.gz blackbird-hostboot-b23d4daee35dfc8761aecc86ade077be1bcac548.zip | |
pore_gen_cpureg
Change-Id: Ic5cb0817118bf0de7d706124708e5b8551ba4258
RTC: 41425
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1899
Tested-by: Jenkins Server
Reviewed-by: Van H. Lee <vanlee@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/debug')
| -rwxr-xr-x | src/build/debug/vpo-debug-framework.pl | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/build/debug/vpo-debug-framework.pl b/src/build/debug/vpo-debug-framework.pl index 0985bd6b4..c828fce25 100755 --- a/src/build/debug/vpo-debug-framework.pl +++ b/src/build/debug/vpo-debug-framework.pl @@ -63,6 +63,7 @@ my %optionInfo = ( "-s#" => ["The slot to act on."], "-p#" => ["The chip position to act on."], "-c#" => ["The core/chipUnit to act on."], + "--realmem" => ["read from real memory instead of L3"], ); #-------------------------------------------------------------------------------- @@ -86,6 +87,7 @@ my @ecmdOpt = ("-cft"); my @threadState = (); my $l2Flushed = 0; my $fh; +my $opt_realmem = 0; # Use HB_VBUTOOLS env if specified my $outDir = getcwd(); @@ -130,6 +132,7 @@ if ($self) "out-path:s" => \$outPath, "debug" => \$debug, "mute" => \$mute, + "realmem" => \$opt_realmem, "no-save-states" => \$nosavestates, "help" => \$cfgHelp, "toolhelp" => \$toolHelp, @@ -159,6 +162,7 @@ else "out-path:s" => \$outPath, "debug" => \$debug, "mute" => \$mute, + "realmem" => \$opt_realmem, "no-save-states" => \$nosavestates, "help" => \$cfgHelp, "man" => \$cfgMan, @@ -324,15 +328,34 @@ sub readData #Read the cache lines from L3 and save to temp file my (undef, $fname) = tempfile("tmpXXXXX", DIR => "$outDir"); - my $command = sprintf ("$vbuToolDir/p8_dump_l3 %x $numCacheLines -f $fname -b @ecmdOpt", - $addr); + my $command = ""; + if ( $opt_realmem ) + { + ## after winkle, cache-contained is disabled, and the buffers are in + ## real memory at the same address. + ## use --realmem to read them. + ## + ## @todo RTC 50233 need to modify all these routines to sense + ## cache-contained mode and do the switch automatically + $command = sprintf ("getmemdma %x %d -fb $fname -quiet", + $addr, + $size ); + ## not using cachelines, no need to seek to offset. + $offset = 0; + } + else + { + $command = sprintf ("$vbuToolDir/p8_dump_l3 %x $numCacheLines -f $fname -b @ecmdOpt", + $addr); + } if ($debug) { print "addr $addr, size $size, offset $offset\n"; print "$command\n"; } - die "ERROR: cannot read L3" if (system("$command") != 0); + + die "ERROR: cannot read memory: $command " if (system("$command") != 0); #Extract just the data requested from the cache lines read open FILE, $fname or die "ERROR: $fname not found : $!"; |

