summaryrefslogtreecommitdiffstats
path: root/src/build/debug/Hostboot
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2016-09-11 20:49:30 -0500
committerMatthew A. Ploetz <maploetz@us.ibm.com>2016-09-14 10:45:46 -0400
commitc9284c4c8811430bab31c7fe381c8c9dc3958231 (patch)
treed7d35caddea5294b08e0e99e613b240c14cc9552 /src/build/debug/Hostboot
parent434dd272a8c30944bb19965dfb8a0291a423f29d (diff)
downloadtalos-hostboot-c9284c4c8811430bab31c7fe381c8c9dc3958231.tar.gz
talos-hostboot-c9284c4c8811430bab31c7fe381c8c9dc3958231.zip
Sort traces in debug tools
Change-Id: I836cc42746c8b5369b469534cce713b44885e93c Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29468 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Corey V. Swenson <cswenson@us.ibm.com> Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Diffstat (limited to 'src/build/debug/Hostboot')
-rwxr-xr-xsrc/build/debug/Hostboot/Trace.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/build/debug/Hostboot/Trace.pm b/src/build/debug/Hostboot/Trace.pm
index 7b1d02927..23286b48c 100755
--- a/src/build/debug/Hostboot/Trace.pm
+++ b/src/build/debug/Hostboot/Trace.pm
@@ -6,7 +6,7 @@
#
# OpenPOWER HostBoot Project
#
-# Contributors Listed Below - COPYRIGHT 2011,2015
+# Contributors Listed Below - COPYRIGHT 2011,2016
# [+] International Business Machines Corp.
#
#
@@ -163,8 +163,11 @@ sub main
if ($foundBuffer)
{
+ # Note: 'sort -s -k 1,1' restricts the sort to only act on the first
+ # column (i.e. the timestamp) to avoid reordering traces that have
+ # identical timestamps
open TRACE, ($args->{"fsp-trace"}." $tmpdir -s ".
- ::getImgPath()."hbotStringFile $fsptrace_options |");
+ ::getImgPath()."hbotStringFile $fsptrace_options | sort -s -k 1,1 |");
while (my $line = <TRACE>)
{
::userDisplay $line;
OpenPOWER on IntegriCloud