Skip to content
Snippets Groups Projects
  1. Apr 16, 2014
  2. Apr 07, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: automatically lookup addresses when needed · 8d02f6cf
      Mitchel Humpherys authored
      Add support to RamDump.virt_to_phys for automatically looking up
      addresses of symbols when a string is passed in. This will simplify code
      that uses the RamDump.read_* routines.
      
      Old way:
      
          mydata_addr = ramdump.addr_lookup('data_var')
          mydata2_addr = ramdump.addr_lookup('data2_var')
      
          mydata = ramdump.read_word(mydata_addr)
          mydata2 = ramdump.read_word(mydata2_addr)
      
      New way:
      
          mydata = ramdump.read_word('data_var')
          mydata2 = ramdump.read_word('data2_var')
      
      Of course, the "Old way" will still work.
      
      Change-Id: I0c006f5135b48f8385d2107d9b9d2fe767a266b0
      8d02f6cf
  3. Apr 04, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: add interactive shell · c52de5a0
      Mitchel Humpherys authored
      During development, it's quite convenient to load up an interactive
      python interpreter with a RamDump instance loaded. Add some command line
      switches to launch an interactive shell with the RamDump instance that
      gets created as a result of whatever other command line options are
      passed.
      
      If IPython is installed, an IPython interpreter will be launched,
      otherwise a classic Python interpreter will be launched. The classic
      interface can also be forced with --classic-shell.
      
      Change-Id: Id59acb97a830055212de9db3eaf05f18358f757f
      c52de5a0
  4. Mar 28, 2014
  5. Mar 13, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Skip bad rodata headers · 1bc0a672
      Laura Abbott authored
      When checking for rodata differences, we scan the ELF headers of
      the vmlinux. Newer vmlinux files seem to have extra ELF headers
      with addresses outside the valid mapped range. If we encounter
      one of those headers and read an invalid address, skip it.
      
      Change-Id: I2a8af784df7216bf9d890be42eec8599fbaa7f72
      1bc0a672
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Conditionally add phys offset for socinfo · 9e570006
      Laura Abbott authored
      Commit 3d6a90bd
      (linux-ramdump-parser-v2: Don't use ram start address in socinfo)
      corrected the case for --auto-dump detection but broke the case of
      specifying ram files manually with addresses. When specifying the
      addresses manually, the addresses given are correct so the ram start
      does need to be added. Correct the code to add the offset by default
      but not add when doing autodetection.
      
      Change-Id: I50d54a932210afeace49a898dd819dc46c3e3aa1
      9e570006
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Import page_buddy for page tracking · def47c54
      Laura Abbott authored
      The page_tracking code is missing the page_buddy import. Import it.
      
      Change-Id: I0030305e51f470cdd379f8237bb15c912601e861
      def47c54
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Add basic support for 64-bit · 045b5c4c
      Laura Abbott authored
      Ram dumps are now being generated for 64-bit ramdumps. Update the
      parser to account for this.
      
      Change-Id: I54a354f39701ad96dd7b81010ec6c5989dd471ad
      045b5c4c
  6. Mar 12, 2014
  7. Mar 10, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Add support for 8916 · bbb50ad0
      Laura Abbott authored
      The 8916 board is now generating ramdumps. Add support to parse
      these dumps.
      
      Change-Id: I9920544031443ce97f95824c8927b50e0927d5c1
      bbb50ad0
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Don't use ram start address in socinfo · 3d6a90bd
      Laura Abbott authored
      When reading soc info, the ram information has not yet been fully
      plumbed into the parser (this is very early!). We should not take
      the address for the start of ram into account at this point as smem
      should only be given as an offset. Update the calculations.
      
      Change-Id: Ib02db2f118685b306457e2591e4bbc5f19f2edbc
      3d6a90bd
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Improve tracing for socinfo and other parts · 0fc5c07b
      Laura Abbott authored
      When adding a new board, it can be non-obvious what went wrong if the
      board is not immediately detected. Add an option to trace through
      socinfo addresses for a specific board to print out useful addresses
      as a debugging aid. Also clean up some error handling, mostly among
      the tracing code.
      
      Change-Id: I65f4a38b95912b81676f44cd371751abc96aae9e
      0fc5c07b
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Make the page print outs more useful · a02a2754
      Laura Abbott authored
      The pagetype info gives useful data but it's helpful to see the data
      in other formats that often involve having to do math. Make the parser
      do the math of calculating the total number of pages per migrate type
      and the total number of pages per order. Additionally, print out the
      total number of ram pages with vmstat to make it easier to determine
      just how low a system may be on memory.
      
      Change-Id: I812288fe4c25de06c7017fb0b6515e514f799134
      a02a2754
  8. Mar 04, 2014
  9. Feb 27, 2014
  10. Feb 18, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Detect corruption in rb_tree · 079cd6eb
      Laura Abbott authored
      Red/Black trees are supposed to be trees, not directed cyclic graphs.
      Sometimes trees in ramdumps may become corrupted though, resulting in
      cycles. Detect these cycles in the tree to avoid looping forever.
      
      Change-Id: I68cf018c6786b3c6947789a18c63c7a3a1f8d7bc
      079cd6eb
  11. Feb 15, 2014
  12. Feb 13, 2014
  13. Feb 11, 2014
  14. Jan 30, 2014
  15. Jan 27, 2014
  16. Jan 25, 2014
  17. Jan 03, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Initial contribution of ram parser · 9133968f
      Laura Abbott authored
      After a crash, ramdumps may be collected for analysis. The ram
      parser is a tool to aid in analysis of these dumps. The script
      extracts useful information from the dumps to help with debugging.
      Please see the README for full details.
      
      Change-Id: I7795686a96bbfe246edf47d09e3f616131688429
      9133968f
Loading