diff options
author | Patrick Williams <iawillia@us.ibm.com> | 2013-06-24 12:35:57 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-07-10 16:29:19 -0500 |
commit | b649b6d8ad62262517b7e0da90fbfd81283f4764 (patch) | |
tree | 25c868da431cc42dd201512df8b4a1b0048915f3 /src/build/simics/hb-simdebug.py | |
parent | 8e6af8d1488285d670754de8f34ffba9ce57db92 (diff) | |
download | talos-hostboot-b649b6d8ad62262517b7e0da90fbfd81283f4764.tar.gz talos-hostboot-b649b6d8ad62262517b7e0da90fbfd81283f4764.zip |
Enhance hb-dump to support full memory extraction.
Change-Id: I74823572a4935d3c8c4d7999d8c00c0286de1523
RTC: 50233
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/5170
Tested-by: Jenkins Server
Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/simics/hb-simdebug.py')
-rwxr-xr-x | src/build/simics/hb-simdebug.py | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/src/build/simics/hb-simdebug.py b/src/build/simics/hb-simdebug.py index 048546b46..28c8f9588 100755 --- a/src/build/simics/hb-simdebug.py +++ b/src/build/simics/hb-simdebug.py @@ -29,39 +29,6 @@ import datetime import commands ## getoutput, getstatusoutput import random -#------------------------------------------------------------------------------ -# Function to dump L3 -#------------------------------------------------------------------------------ -def dumpL3(): - - # "constants" - L3_SIZE = 0x800000 - FULL_MEM_SIZE = 32*1024*1024 # 32 MB - - print - - # Get a timestamp on when dump was collected - t = datetime.datetime.now().strftime("%Y%m%d%H%M%S") - - # Get memory object. - mem = conf.system_cmp0.phys_mem.map[0][1]; - if 'l3_cache_ram' in mem.name: - offset = 0 - size = L3_SIZE - else: - offset = getHRMOR() - size = FULL_MEM_SIZE - - #dump L3 to hbdump.<timestamp> - string = "(system_cmp0.phys_mem)->map[0][1]->image.save hbdump.%s 0x%x 0x%x"%(t, offset, size) - #print string - result = run_command(string) - #print result - - print "HostBoot dump saved to %s/hbdump.%s"%(os.getcwd(),t) - - return - #=============================================================================== # HOSTBOOT Commands #=============================================================================== @@ -117,17 +84,13 @@ Examples: \n #------------------------------------------------ #------------------------------------------------ -def hb_dump(): - dumpL3() - return None - new_command("hb-dump", - hb_dump, + lambda: run_hb_debug_framework("Dump", outputFile = "hb-dump.output"), #alias = "hbt", type = ["hostboot-commands"], #see_also = ["hb-trace"], see_also = [ ], - short = "Dumps L3 to hbdump.<timestamp>", + short = "Dumps HB memory to hbdump.<timestamp>", doc = """ Parameters: \n |