diff options
author | Thi Tran <thi@us.ibm.com> | 2012-05-09 15:29:44 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-05-11 08:49:06 -0500 |
commit | b8ce91454366ae12a4cd510c26f1e87a6629b185 (patch) | |
tree | bbef088e1feab87e1abcb29ee97977525c404609 /src/build/vpo/hb-virtdebug.pl | |
parent | 3d4b593321870fb646be9d86880a19bcc2d3453e (diff) | |
download | talos-hostboot-b8ce91454366ae12a4cd510c26f1e87a6629b185.tar.gz talos-hostboot-b8ce91454366ae12a4cd510c26f1e87a6629b185.zip |
Update VPO scripts to improve VPO performance and using new HW tools
Update from review comments
RTC: 41721
Change-Id: I39954c7415dfc4a6833b9003a0403fc5878778cd
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1046
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/vpo/hb-virtdebug.pl')
-rw-r--r--[-rwxr-xr-x] | src/build/vpo/hb-virtdebug.pl | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/src/build/vpo/hb-virtdebug.pl b/src/build/vpo/hb-virtdebug.pl index 4a2ee750e..ed751dfb8 100755..100644 --- a/src/build/vpo/hb-virtdebug.pl +++ b/src/build/vpo/hb-virtdebug.pl @@ -27,8 +27,16 @@ # relevant data such as the code version, kernel printk buffer & component traces. # # Author: CamVan Nguyen -# Last Updated: 07/19/2011 + +################################################################################## +# +# Version 1.1 05-09-2012 Start version history +# - Use HB_VBUTOOLS env if set +# - Use proc_thread_control_wrap in place of +# p8_ins_stop/start/query # +# +################################################################################## #------------------------------------------------------------------------------ # Specify perl modules to use @@ -93,6 +101,16 @@ my $core = "3"; #Default is core 3 my @threadState = (); #Array to store the thread states my $vbuToolDir = "/gsa/ausgsa/projects/h/hostboot/vbutools/latest"; +# Use HB_VBUTOOLS if it's set; otherwise, try to use the latest tool directory +my $vbuToolDir = $ENV{'HB_VBUTOOLS'}; +if (defined ($vbuToolDir)) +{ + unless ($vbuToolDir ne "") + { + $vbuToolDir = "/gsa/ausgsa/projects/h/hostboot/vbutools/latest"; + } +} + my $hbDir = $ENV{'HB_IMGDIR'}; if (defined ($hbDir)) { @@ -587,7 +605,7 @@ sub stopInstructions my $thread = shift; #Stopping all threads - my $command = "$vbuToolDir/proc_thread_control.x86"; + my $command = "$vbuToolDir/proc_thread_control_wrap.x86"; $command .= " @ecmdOpt -stop -t$thread -quiet"; die "ERROR: cannot stop instructions" if (system("$command") != 0); } @@ -600,7 +618,7 @@ sub startInstructions my $thread = shift; #Starting all threads - my $command = "$vbuToolDir/proc_thread_control.x86"; + my $command = "$vbuToolDir/proc_thread_control_wrap.x86"; $command .= " @ecmdOpt -start -t$thread -quiet"; die "ERROR: cannot start instructions" if (system("$command") != 0); } @@ -614,7 +632,7 @@ sub queryThreadState my $thread = shift; #print "thread $thread\n"; - my $command = "$vbuToolDir/proc_thread_control.x86 @ecmdOpt -query -t$thread"; + my $command = "$vbuToolDir/proc_thread_control_wrap.x86 @ecmdOpt -query -t$thread"; my $result = `$command`; #print "result:\n $result"; if ($result =~ m/Quiesced/) |