Skip to content
Snippets Groups Projects
  1. Jun 22, 2017
    • Soumen Ghosh's avatar
      lrdp-v2:read DCC from KMISC section for minidump · dcb33d0a
      Soumen Ghosh authored
              As DCC is not going to be enabled on secure device,
              SDI would dump required registers in standard dcc dumping format.
              So extend ramparser’s DCC parsing support for <address><value> format.
              The KMISC section would contain all registers address value pair as mentioned below.
              Parse the data and generate the “dcc_captured_data.xml” and it should be same as actual dcc dump parsed xml.
      
      Change-Id: Ib042ebc6895f0594f5784600174087a979e8709f
      dcb33d0a
  2. Jun 07, 2017
  3. 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
  4. May 08, 2017
  5. Mar 29, 2017
    • Patrick Daly's avatar
      lrdp-v2: Fix read_structure_field crash · 55b060c7
      Patrick Daly authored
      When calling read_structure_field with an undefined symbol, the
      desired behavior is to return None rather than crash.
      
      Change-Id: Iaf172a038779cf767b55c47ec37b8e90e194aa0f
      55b060c7
  6. Mar 27, 2017
    • Patrick Daly's avatar
      lrdp-v2: Introduce read_s64 · deb67d8f
      Patrick Daly authored
      Add a function for reading a signed 64 bit value from a ramdump.
      
      Change-Id: Ic7e5a8a7cb9d5fd551ffb2c3add2499a25aff540
      deb67d8f
  7. Mar 22, 2017
  8. Mar 08, 2017
  9. Jan 24, 2017
    • Kyle Yan's avatar
      ldrp-v2: Add new method of finding number of CPUs as of kernel 4.5 · 38976141
      Kyle Yan authored
      As of commit c4c54dd1 (kernel/cpu.c: change type of cpu_possible_bits
      and friends), cpu_present_bits no longer exists. Add new method of finding
      number of cpus and also change other functions to use the get_num_cpus
      API instead of defining it again.
      
      Change-Id: I6d38d505ba7674b94e8481e6679226803eba977e
      38976141
  10. Jan 04, 2017
  11. Dec 22, 2016
  12. Dec 17, 2016
    • Runmin Wang's avatar
      lrdp-v2: Add support for kaslr · b64ed70b
      Runmin Wang authored
      When kernel address space layout randomization is enabled by kernel,
      a new kaslr_offset will be added to the kimage_vaddress. This patch
      adds this offset to get the correct kimage_vaddress.
      
      Change-Id: Ia19c5b4d47674e2753ba167e5a50295902720457
      b64ed70b
  13. Dec 12, 2016
    • Olav Haugan's avatar
      lrdp_v2: Fix generated startup script for use with Linux · 8a928c8f
      Olav Haugan authored
      The startup scripts used with T32 is not generated properly for use with
      Linux. Fix this:
      
      * Make T32 use absolute paths on both Windows and Linux
      * Update T32 config scripts to work with Linux
      
      Change-Id: If96dd762d8cb5a9419d149d370ae21cf222ed93b
      8a928c8f
  14. Oct 20, 2016
    • Patrick Daly's avatar
      lrdpv2: Fix path issues with autodump · 08cfef61
      Patrick Daly authored
      the paths used by the T32 launcher used the incorrect directory when the
      autodump option was passed.
      
      Additionally, fix an issue where not all of the files detected by autodump
      are printed out.
      
      Change-Id: Id96500e6a59961aa1d06af515560b367a42f2e5b
      08cfef61
  15. 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
  16. Sep 09, 2016
  17. Sep 02, 2016
  18. 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
  19. Jul 19, 2016
    • Patrick Daly's avatar
      lrdp-v2: Use 'rb' mode when opening DDR files · 8362a3f3
      Patrick Daly authored
      Calling read_byte() on windows may return the empty string '' prior
      to the end of the file without opening the file in 'rb' mode.
      
      The 'rb' mode was removed by
      commit 5743b613
      ("lrdp-v2: ramdump: Fix autoparse for some targets.")
      
      Change-Id: Ibea608112400c06a9adc6f1fd3b4842a87717846
      8362a3f3
  20. Jul 11, 2016
  21. Jul 06, 2016
    • Jonathan Avila's avatar
      lrdp-v2: ramdump: Fix autoparse for some targets. · 5743b613
      Jonathan Avila authored
      Add support for parsing dump_info.txt and load.cmm to properly set phys
      offset and find the base addresses of memory files.
      
      This change fixed autoparse on a few targets, though may not apply to all
      platforms and situations.
      
      Changes based heavily on those made from a prior change.
      See Change-Id: I4be54a48a659ac1e6346d9178d19a8b40e2e1b6d
      
      CRs-Fixed: 1038185
      Change-Id: If98a4073e9afc98fd3903e606539b9e4e9ca2c51
      5743b613
  22. 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
  23. Mar 24, 2016
  24. Feb 13, 2016
    • Mitchel Humpherys's avatar
      lrdp-v2: ramdump: Handle equals signs in config values · 63f85b54
      Mitchel Humpherys authored
      Currently we split each config line on the equals sign, assuming that
      there's only one equals sign there.  This isn't a valid assumption for
      cases like:
      
          CONFIG_CMDLINE="console=ttyAMA0"
      
      Fix this by splitting at the first equals sign, rather than splitting
      at *all* equals signs.
      
      Change-Id: I01e44fe2e9a0f09a8bebdd76715002f6b12cf0b5
      63f85b54
  25. 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
  26. Dec 17, 2015
    • Mitchel Humpherys's avatar
      lrdp-v2: docs: Improve existing documentation · 0b529cc6
      Mitchel Humpherys authored
      Some of our module documentation is a bit lacking.  Fix this by filling
      in some docstrings and add then adding some pointers to existing
      modules/functions in the docs.
      
      Change-Id: Ibf714225f1fc185be916e514861540fd98cb2de5
      0b529cc6
  27. Nov 17, 2015
  28. Nov 10, 2015
    • Mitchel Humpherys's avatar
      lrdp-v2: Add accessor for pointer variables · fb5e7dda
      Mitchel Humpherys authored
      Pointers can be either 32-bits or 64-bits, depending on the
      architecture.  Add an accessor function to abstract this away.
      
      Change-Id: I64e2c18c85ec3d9ca7304163dc5a42edc83f1443
      fb5e7dda
    • Mitchel Humpherys's avatar
      lrdp-v2: Make sure address is a number before offset'ing · db867b09
      Mitchel Humpherys authored
      A few reader functions currently assume that a virtual address (a
      number) was passed in, but those functions also support reading variable
      names.  Resolve the address or name to a virtual address before doing
      arithmetic on it.
      
      Change-Id: I55aa649ff203926565f8eaf3cb234677ef6b6104
      db867b09
    • Mitchel Humpherys's avatar
      lrdp-v2: Simplify some returns in the memory accessor code · ce13475e
      Mitchel Humpherys authored
      Some of the return sequences in the memory accessor code are
      unnecessarily complex.  Simplify them.
      
      Change-Id: Iefe489b3ce4a4591574a2cc8d51aa23ce425b2b1
      ce13475e
    • Mitchel Humpherys's avatar
      lrdp-v2: Remove trace prints · 7c04d080
      Mitchel Humpherys authored
      Currently there are "trace" print statements scattered throughout the
      code.  These make the code harder to follow and aren't terribly useful.
      Remove them in favor of on-demand instrumentation or more sophisticated
      debugging methods (like a debugger).
      
      Change-Id: I70a91b8dca34566d48ed1f4902cba5b9f9b4de40
      7c04d080
    • Mitchel Humpherys's avatar
      lrdp-v2: Improve some {self-,}documentation · b73c27a3
      Mitchel Humpherys authored
      The memory accessor functions that have documentation are using comments
      rather than docstrings.  Fix this.  Also rename some variables for
      improved self-documentation.
      
      Change-Id: I6a196ff27665c5b0c96b3c5095b39690015b07e1
      b73c27a3
    • Mitchel Humpherys's avatar
      lrdp-v2: ramdump: Save config values in a dictionary · 75e18b5e
      Mitchel Humpherys authored
      It can be useful to look up the values of config items.  Store a
      dictionary mapping config options to their values.
      
      Change-Id: I99f7615b2c5926558dfba100fa0c45b6e29ecdb5
      75e18b5e
  29. Sep 01, 2015
    • Amey Telawane's avatar
      lrdp-v2: Add option to parse DDR base address · 3c292b97
      Amey Telawane authored
      Presently auto-dump option finds DDR base addresses from
      statically defined per target meta data in boards.py. This
      leads to auto-dump feature fail on different targets, say
      with different DDR base and size.
      
      Add support to parse DDR base addresses from load.cmm,
      dump_info.txt or ramdump_msg.txt which ever is available in
      that order. Fall-back to conventional static populated data
      in boards.py if none of them is available.
      
      Change-Id: Ie4ac4f281e92c9b527de17fa665c9cd6c3d5d384
      3c292b97
  30. Aug 31, 2015
    • Sarangdhar Joshi's avatar
      lrdpv2: Fix list vs tuple comparison · 9ad7f414
      Sarangdhar Joshi authored
      The ram_dump.kernel_version variable is defined as a list and
      incorrectly compared with tuple. This comparison always fails.
      Fix it by changing ram_dump.kernel_version variable to tuple.
      
      Change-Id: I12d4556693101fccfad795e5ea737b42e96acac7
      9ad7f414
Loading