diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2011-11-18 13:55:25 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2011-11-18 17:02:48 -0600 |
commit | 7d5abe294c66c7e02dbe10f6d78f74a919399665 (patch) | |
tree | a8b0aecbddaf54ab36f9583e2acc607373032592 /src/build | |
parent | 975268f021775b9d4ae68f3d63e2b70cca9a6062 (diff) | |
download | talos-hostboot-7d5abe294c66c7e02dbe10f6d78f74a919399665.tar.gz talos-hostboot-7d5abe294c66c7e02dbe10f6d78f74a919399665.zip |
Make trace filename an option to Trace.pm
Change-Id: I5b7247a7ed858ff84256314faa8daf05e1e733c1
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/505
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build')
-rwxr-xr-x | src/build/debug/Hostboot/Trace.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/build/debug/Hostboot/Trace.pm b/src/build/debug/Hostboot/Trace.pm index 42722c09f..adc043984 100755 --- a/src/build/debug/Hostboot/Trace.pm +++ b/src/build/debug/Hostboot/Trace.pm @@ -44,6 +44,12 @@ sub main $args->{"fsp-trace"} = "fsp-trace"; } + my $fsptrace_options = ""; + if (defined $args->{"with-file-names"}) + { + $fsptrace_options = $fsptrace_options."-f "; + } + my $traceBuffers = $args->{"components"}; my ($symAddr, $symSize) = ::findSymbolAddress("TRACE::g_desc_array"); @@ -74,7 +80,7 @@ sub main if ($foundBuffer) { open TRACE, ($args->{"fsp-trace"}." -s ". - ::getImgPath()."hbotStringFile -f $fname |"); + ::getImgPath()."hbotStringFile $fsptrace_options $fname |"); while (my $line = <TRACE>) { ::userDisplay $line; @@ -97,4 +103,6 @@ sub help "fsp-trace utility.\n"; ::userDisplay "\tcomponents=<list> - Comma separated list of components\n". "\t to display trace buffers for.\n"; + ::userDisplay "\twith-file-names - Trace statements will include file\n". + "\t name of place the trace was defined.\n"; } |