Skip to content
Snippets Groups Projects
  1. Sep 07, 2018
  2. Aug 10, 2018
    • wadesong's avatar
      lrdp-v2: Fix some symbol loading issues on ARM-32 platforms · 208182ad
      wadesong authored
      1) When lrdp-v2 is parsing RAM dumps generated on ARM-32 platforms,
         the Trace32 startup script will not contain any instructions
         to enable MMU support, which causes Linux kernel symbol loading
         failure on some newer Trace32 simulators.
      
         Add Trace32 startup instruction to set bit 0 of P15:0x1 if
         lrdp-v2 detects MMU support within the RAM dump.
      
      2) Use task.symbol.loadmod instead of data.load.elf to load all
         the kernel moduels' symbols to avoid symbol loading failures.
      
      Change-Id: Ibae79e3c80279788d7cccd28080d2cecd5432a4b
      208182ad
  3. Mar 15, 2018
    • wadesong's avatar
      lrdp-v2: Add support for linux-3.x on ARM 32-bit platforms · 8b74e9de
      wadesong authored
      Currently LRDP-v2 will only add linux.t32 and linux.men into
      the t32_startup_script.cmm script when it is parsing RAM
      dumps generated on ARM 32-bit platforms.
      
      Change the code in ramdump.py to add linux3.t32 and its
      related linux.men into t32_startup_script.cmm when it is
      determined that the kernel version is greater than 3.0.0.
      
      Change-Id: Id0ddc62cc702b0bc586bb9864ceb02177d397e13
      8b74e9de
  4. Jan 24, 2018
  5. Jan 12, 2018
    • Patrick Daly's avatar
      lrdp: debug_image: Support guest VM cpu register dump tables · d9434874
      Patrick Daly authored
      The hypervisor may populate an imem cookie with the location of
      a standard dump table, instead of using the table allocated by linux.
      Read the table location from this cookie instead of relying on the
      linux variable 'memdump'.
      On error, fall back to the old approach of reading from 'memdump'.
      
      Change-Id: Id99bb643fb7f35de79ff7308a999cc2143d7aff0
      d9434874
  6. Dec 07, 2017
    • wadesong's avatar
      lrdp-v2: Loadble module name prefixing · b61a75d7
      wadesong authored
      Currently the loadble module symbol parsing code is only decoding
      the symbol names without prefixing the module names. This will
      result in some confusion when two module's symbol names are
      identical, and things get worse espeicially when parsing RAM
      dumps where two WLAN drivers are loaded.
      
      Prefix module names to module specific symbol names when parsing
      their symbol files so user can easily tell which module is
      involved in a call stack.
      
      Change-Id: I3cf5e9527be191fb5f21830b1ba9f915d734b5d2
      b61a75d7
  7. Nov 30, 2017
    • wadesong's avatar
      lrdp-v2: Start to parse 'core_layout' since msm-4.9 · f6f2a026
      wadesong authored
      Starting from msm-4.9, a new field named 'core_layout' will be
      available to replace 'module_core' in struct module.
      
      Add code to parse the newly introduced field for loadable module
      symbol addition based on the Linux kernel version.
      
      Change-Id: I503ba6b0d4f5928bb2fea85ab3fdd4a33150b1c0
      f6f2a026
  8. Nov 11, 2017
    • wadesong's avatar
      lrdp-v2: Fix ARM 32-bit thread_info addr reading error · f16b737f
      wadesong authored
      In thread_saved_field_common_32, read_word should not be used to
      retrieve the thread_info structure's address because
      get_thread_info_addr is already doing the same.
      
      Change-Id: I422c67b98d318c0084ab32fb0ad9f180da186829
      f16b737f
  9. Nov 01, 2017
    • Soumen Ghosh's avatar
      lrdp-v2:Minidump parsing support for kernel version 4.9 · bebe9318
      Soumen Ghosh authored
              In the latest kernel version minidump_table structure got changed. Some emelments are removed.
              like smem_table, version. In those information anyhow is not being used in ramparser. So removed all those elements
      Change-Id: Ibce7ab2515737a7871c1f9df70d4eddee64bdc09
      bebe9318
  10. Sep 06, 2017
  11. Aug 16, 2017
  12. Aug 02, 2017
  13. 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
  14. Jul 12, 2017
  15. 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
  16. Jun 07, 2017
  17. 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
  18. May 08, 2017
  19. 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
  20. 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
  21. Mar 22, 2017
  22. Mar 08, 2017
  23. 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
  24. Jan 04, 2017
  25. Dec 22, 2016
  26. 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
  27. 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
  28. 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
  29. 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
  30. Sep 09, 2016
  31. Sep 02, 2016
  32. 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
  33. 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
  34. Jul 11, 2016
  35. 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
  36. 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
  37. Mar 24, 2016
  38. 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
  39. 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
Loading