Skip to content
Snippets Groups Projects
  1. Aug 16, 2018
  2. Jan 08, 2018
    • wadesong's avatar
      lrdp-v2: Gdbmi interface clean up · 91db419c
      wadesong authored
      When LRDP-v2 starts to parse RAM dumps, it will initialize pipes
      to gdb instance, but on exit, the same pipes are not closed due
      to __del__ is not invoked in ramdump.py. This will cause the
      python environment raising the following exception, which will
      not be handled by LRDP-v2 after it's unloaded:
      
      close failed in file object destructor:
      sys.excepthook is missing
      lost sys.stderr
      
      Add explicit gdbmi closure when RamDump instance is not used any
      more, to avoid the unhandled exception.
      
      Change-Id: I7cebd1418440ba56f9d7c4374286a5b088d948dc
      91db419c
  3. Jul 25, 2017
    • wadesong's avatar
      lrdp-v2: Add symbol parsing for loadable modules · 88519637
      wadesong authored
      Current Linux Ram Dump Paser scripts are only able to load kernel
      symbols by default. No loadable modules' symbols will be parsed
      at startup time, which may result in 'unknown symbols' in some
      cases, especially when checking SLAB info on dual-wifi platforms.
      
      With this change, loadable modules' symbols can be parsed on
      script startup by the following configurations:
      
      1) Put all symbols under a certain dir, such as:
      
      <dump_location>/symbols/wlan.ko
      <dump_location>/symbols/wlan_sdio.ko
      
      2) Add --sym_path when invoking the scripts, such as:
      
      python %RAM_DUMP_PARSER_PATH%\ramparse.py --sym_path
      <dump_location>/symbols
      
      With the above actions, all loadable modules' symbols will be
      parsed and stored for subsequent information dumping. Symbol
      loading commands will also be added into the Trace32 startup
      script.
      
      Change-Id: Idda9c9a08cfd24c19bf4021e80fee5187cd031b9
      88519637
  4. May 26, 2017
    • Soumen Ghosh's avatar
      lrdp-v2:minidump parsing support add in ramparser · 687e1bab
      Soumen Ghosh authored
      	A minidump supports fewer features than a full ramdump,
      	but does not require the user to save all 4GB+ of memory.
      	Instead a small subset of DDR is saved by crashscope as an elf file.
      	Currently dmesg logs, rtb logs, and the cpu context parser are supported.
      
      	Example usage: python ramparse.py --vmlinux <vmlinux> --minidump
      			--ram-elf <elf_file> --ram-file <OCIMEM.bin> --everything
      
      Change-Id: Ib689b4811d66472ac20aa7c63893fdaed915512e
      687e1bab
  5. May 08, 2017
  6. Oct 07, 2016
    • Prashanth Bhatta's avatar
      lrdp-v2: Parse WLAN module as part of parser · 0775e624
      Prashanth Bhatta authored
      Customers normally share extracted logs from RAMDUMP because of
      various reasons including security and to protect personal
      information. Add support to extract WLAN module debug details so
      that customer issues can be triaged easily.
      
      CRs-fixed: 1074311
      Change-Id: If7a3f2c6ed990d9203ea93c8e0688c5c44f13c53
      0775e624
  7. Jul 21, 2016
    • Patrick Daly's avatar
      lrdp-v2: Change board_num to a string · be9942e9
      Patrick Daly authored
      The board number is intended to be a human readable identification value.
      Allowing this to be a string is more flexible.
      
      CRs-Fixed: 1013327
      Change-Id: If523acafc54f5026680d18c95e4899fb0436599d
      be9942e9
  8. Apr 14, 2016
    • David Garibaldi's avatar
      lrdpv2: Make QDSS binary data parsing optional · d025a0db
      David Garibaldi authored
      Debug image parsing currently includes QDSS ETM and ETR binary data
      parsing by default. However, these two parsing operations can take a
      significant amount of time if either of their respective data buffers
      are very large. Furthermore, this binary data is not needed for most
      common debug image parsing use cases.
      
      Add an argument to optionally disable QDSS ETM and ETR binary data
      parsing when debug image parsing has also been selected.
      
      Change-Id: Iab25c15d00dde1bb5dfafb3149e6e55760fd6291
      d025a0db
  9. Jan 11, 2016
    • Robert Morrison's avatar
      lrdp-v2: Add KASLR support · 44655976
      Robert Morrison authored
      Add '--kaslr-offset' option.  This specifies the offset for loading symbols
      for a KASLR-enabled kernel.
      
      Change-Id: I208d964ea3ca58536a0b80a32b4e334c73aae534
      44655976
  10. Nov 17, 2015
    • Mitchel Humpherys's avatar
      lrdp-v2: Add `--eval' option · 50ae5ab0
      Mitchel Humpherys authored
      Although the `--shell' option can currently be used for ad-hoc
      debugging, it's not ideal for scripting since it prints out a bunch of
      other stuff during initialization.  Add a dedicated `--eval' option that
      executes arbitrary Python code without printing anything else.
      
      Change-Id: I9e24e6d140dd49208b850b2a17ac2f599a35657b
      50ae5ab0
  11. Sep 02, 2015
  12. Apr 23, 2015
    • Steven Cahail's avatar
      linux-ramdump-parser-v2: Integrate IPC Logging · 09615691
      Steven Cahail authored
      Integrate the IPC Logging extraction script module into
      linux-ramdump-parser-v2.
      
      Move ipc_logging.py from into the linux-ramdump-parser-v2/parsers
      directory, and create a relative symbolic link in the original location.
      Add a new file, ipc_logging_ramparse.py, which performs the actual
      integration.
      
      Change-Id: If0db4f82814a644094af7ebd0e4290dd145f94ac
      09615691
  13. Apr 20, 2015
    • Steven Cahail's avatar
      linux-ramdump-parser-v2: Pass options object to RamDump constructor · 5e7d333a
      Steven Cahail authored
      The constructor currently used in ramparse.py to initialize the RamDump
      object has a very long argument list. This list can be shortened by
      passing the options object to the constructor, rather than enumerating
      every member of the options object as a separate argument.
      
      Pass the options object to the RamDump constructor instead of passing
      each member as a separate argument.
      
      Change-Id: I7cbf173232838dd8f9fdbdad0e2b7336ad8fc07b
      5e7d333a
  14. Sep 26, 2014
  15. Jul 16, 2014
  16. Jun 22, 2014
  17. Jun 04, 2014
  18. May 12, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: provide method for flushing outfile · aed440e0
      Mitchel Humpherys authored
      Sometimes it's useful to force a flush of the global outfile. Provide a
      method to do so and use it in the main parser loop.
      
      Change-Id: I18e9a07345c852d498b131b442df5a0c95bbcf98
      aed440e0
    • Mitchel Humpherys's avatar
      lrdp-v2: add progress indicator · 9cebcb69
      Mitchel Humpherys authored
      It can be useful to know which parser is currently running and
      how long each parser takes to run. Add some progress status
      reporting to this end.
      
      Change-Id: Ifc063feb4769fee02f0622d7a2c5ddf176ae00dc
      9cebcb69
  19. May 05, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Catch parsing exceptions · a7d3bcd8
      Laura Abbott authored
      For reasons ranging from mangled dumps to bugs in code, the parser may
      generate exceptions while parsing. Rather than terminate the entire
      script, handle exceptions in a more graceful fashion.
      
      Change-Id: I883ee9c0910802b00c797380af5b21e00990dce8
      a7d3bcd8
  20. Apr 24, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: README: ramparse.py: add more help about python2.7 · fefcd717
      Mitchel Humpherys authored
      If the user has python2.7 installed but it's not the default interpreter
      on their system, they might get confused when they invoke the parser and
      get a message about needing to install 2.7 even though they already have
      it installed. Add some instructional messages about this situation to
      the 2.6 invocation warning message as well as the README.
      
      Change-Id: Ib1ee7df39199f715b236dbda2f75093ba0501648
      fefcd717
  21. Apr 23, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: improve handling of unsupported python versions · 76fe732d
      Mitchel Humpherys authored
      We don't support python3 at all and python2.6 can only be used if the
      user installs an extra package (OrderedDict [1]). Ask for python2
      explicitly in the shebang line to resolve the python3 issues and print
      some instructions to the user regarding python2.6 when that is used.
      
      If the user insists on using python2.6, provide a command line
      switch (--force-26) to skip the version check. To reduce clutter, don't
      document this switch in the --help text but inform the user about its
      existence when we error out due to the python2.6 check.
      
      In order to even print an error message in python3 we have to first
      ensure that our code is valid in python3, otherwise the interpreter
      fails to even start executing our code (so we can't print any
      messages). Use 2to3 to patch up some print statements, etc. Also fix
      inconsistent whitespace, which is a syntax error on python3.
      
      [1] https://pypi.python.org/pypi/ordereddict
      
      Change-Id: Ie2c0a200e60ec90bf6cf49789f2cc75f181fa94b
      76fe732d
  22. Apr 21, 2014
  23. Apr 16, 2014
  24. Apr 07, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: look for vmlinux in autodump dir when missing · b70d9718
      Mitchel Humpherys authored
      It's not uncommon for the vmlinux file to live in the same directory as
      the actual RAM dumps. If the users doesn't explicitly specify a vmlinux
      image to use, look for it in the autodump dir. If we still can't find it
      there, error out as usual.
      
      Change-Id: I702c5584477e26912e0857dbd03b02491bd33c6c
      b70d9718
    • Mitchel Humpherys's avatar
      lrdp-v2: better error message for bad local_settings.py · 7b181bfb
      Mitchel Humpherys authored
      When local_settings.py is missing variables we just error out when
      trying to access those attributes. Improve the error message by
      mentioning local_settings.py and pointing the user to README.txt.
      
      Change-Id: Iaa2a1ab96ca889d75972bbfa1d4e127a8bf5bec1
      7b181bfb
  25. 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
  26. Mar 13, 2014
  27. Jan 27, 2014
  28. 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