From 1bb0f18f747e2e1a4ede9df16eac2ca340c72552 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Thu, 30 Apr 2015 08:09:01 -0500 Subject: Add parm to specify location of errl executable for debug tools Change-Id: I44ec7b2ae03259351cccd67b50a41c3cd8a6a190 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/17543 Tested-by: Jenkins Server Reviewed-by: Brian H. Horton Reviewed-by: MATTHEW A. PLOETZ Reviewed-by: A. Patrick Williams III --- src/build/debug/Hostboot/Errl.pm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/build/debug/Hostboot/Errl.pm') diff --git a/src/build/debug/Hostboot/Errl.pm b/src/build/debug/Hostboot/Errl.pm index 88f407f8c..e3484555c 100755 --- a/src/build/debug/Hostboot/Errl.pm +++ b/src/build/debug/Hostboot/Errl.pm @@ -6,7 +6,9 @@ # # OpenPOWER HostBoot Project # -# COPYRIGHT International Business Machines Corp. 2011,2014 +# Contributors Listed Below - COPYRIGHT 2011,2015 +# [+] International Business Machines Corp. +# # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -48,6 +50,7 @@ sub main my $listArg = " -l "; # default action is to list my $displayArg = ""; # for -d my $traceArg = ""; # for the name of the hbot string file + my $errlpathArg = ""; # path to errl exe my %hashh = %{(shift)}; my $temp; @@ -66,6 +69,10 @@ sub main { $traceArg = " -t ".$hashh{$temp}; } + elsif( $temp eq "errl" ) + { + $errlpathArg = " -e ".$hashh{$temp}; + } elsif( length($temp) eq 0 ) { ; # apparently $temp can be empty @@ -128,7 +135,7 @@ sub main my $cmdLine; - $cmdLine = "$errlParser $tempFile $displayArg $traceArg $listArg"; + $cmdLine = "$errlParser $tempFile $displayArg $traceArg $listArg $errlpathArg"; # ::userDisplay "$cmdLine\n"; open ERRLPARSER, "$cmdLine |"; while (my $line = ) @@ -151,6 +158,8 @@ sub helpInfo options => { "display=|all" => [" - Display a specific error log by id.", "all - Display all error logs in the repository."], + "trace=" => ["Path to hbotStringFile"], + "errl=" => ["Path to errl executable"], }, notes => ["The default behavior is to list all the committed error logs unless", "requested to display a specific error log or all error logs."] -- cgit v1.2.1