Skip to content
Snippets Groups Projects
  1. Nov 17, 2015
  2. 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
  3. 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
  4. 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
  5. Aug 20, 2015
    • Sarangdhar Joshi's avatar
      lrdpv2: Fix an issue with unwinding stack for NON HLOS · c1f67ce5
      Sarangdhar Joshi authored
      Ram dump parser does not support unwinding the stack for NON
      HLOS images. In certain cases, we get below exception when
      parser tries to dump the context for NON HLOS address. Check
      for NON HLOS address and return from the function without
      unwinding the frame pointer.
      
      Exception: Invalid stage 1 first- or second-level translation
      descriptor: (value: 0x0 {dtype[1:0]=>0x0})
      addr: (value: 0x21812010 {base[47:12]=>0x21812, offset[11:3]=>0x2})
      
      Change-Id: I6cacec18574737d0e8261ba1f39dfe2b9b302304
      c1f67ce5
  6. Jul 11, 2015
  7. Jun 25, 2015
  8. Jun 19, 2015
  9. 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
  10. 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
  11. Mar 25, 2015
  12. Mar 11, 2015
    • Aditya Degwekar's avatar
      linux-ramdump-parser-v2: Parse socinfo only if needed · 7b0aaff3
      Aditya Degwekar authored
      If user specified --force-hardware, then skip the socinfo parsing to
      determine the hardware/board information. The user is warned about
      using the force-hardware option any way.
      
      Checking for valid swapper_pg_dir in the vmlinux also ensures that
      the parsing doesn't trip over when --force-hardware is used along with
      a bad or stripped vmlinux.
      
      Change-Id: Icce1556b39a7533418668a7f38af30f4463c32e5
      7b0aaff3
  13. Nov 26, 2014
    • David Keitel's avatar
      linux-ramdump-parser-v2: add support for cpr-info · 085c329a
      David Keitel authored
      Add a parser which parses relevant CPR regulator information
      such as target quotient, enable flag and most recent voltage for
      each registered cpr regulator.
      
      Change-Id: I15432179a0cfd76575236be9c276f83a8ef7124e
      085c329a
  14. Oct 14, 2014
    • David Garibaldi's avatar
      lrdpv2: Update t32 session window titlebars with current RAM dump path · 9cc9d8c6
      David Garibaldi authored
      T32 simulator sessions currently launched from lrdp shortcuts do not
      contain anything that allows separate sessions to be distinguished
      from one another. Add a line that updates the titlebar of any launched
      t32 simulator session with the full path to the RAM dumps being loaded
      in the session.
      
      Change-Id: I4273b4f000c96ed13af897dd23c0cd19b36c9a80
      9cc9d8c6
    • Mitchel Humpherys's avatar
      lrdpv2: ramdump: return a string from `hexdump' · 2f22e97c
      Mitchel Humpherys authored
      hexdump currently prints to stdout.  Although that's convenient for
      interactive debugging it's not very useful for re-use in other parts of
      the parser.  Return a string instead of printing to stdout.
      
      Also add a usage example.
      
      Change-Id: I18535f5339be85ffc5661e51430bba9a55fe665d
      2f22e97c
  15. Sep 26, 2014
  16. Sep 19, 2014
    • Mitchel Humpherys's avatar
      lrdpv2: randomize t32 intercom port · ca6744c7
      Mitchel Humpherys authored
      Currently our generated t32 launcher script always uses port 20,000 for
      intercom. This prevents end users from launching two instances of t32
      without hacking up the config file by hand. Randomize the port number to
      avoid this (there will still be a chance of collision, but it should be
      negligible).
      
      Change-Id: Ia6f63a69e0ed315ac08c58d9903c2d1ef34b6c69
      ca6744c7
  17. Aug 14, 2014
  18. Jul 18, 2014
  19. Jul 16, 2014
  20. Jun 22, 2014
  21. Jun 13, 2014
  22. Jun 11, 2014
  23. Jun 04, 2014
  24. May 23, 2014
  25. May 05, 2014
  26. Apr 21, 2014
    • Laura Abbott's avatar
      linux-ramdump-parser-v2: Add read_u64 function · 075c0a75
      Laura Abbott authored
      Reading 64 bits of data is needed at times. Add a dedicated function
      
      Change-Id: Ibef3777a574fb4ea87af51ab8230af7d4402c4f9
      075c0a75
    • Mitchel Humpherys's avatar
      lrdp-v2: add support for parsing LPAE IOMMU page table · 9de5aebd
      Mitchel Humpherys authored
      The IOMMU parser currently only supports short-descriptor format page
      tables but hardware supports long-descriptor format page tables. Add
      support for the long-descriptor format. Most of the existing LPAE MMU
      code can be re-used for this, although it must be refactored a bit.
      
      Change-Id: I464d7edeb8818c0be9de1e1a8224bc9b478eac37
      9de5aebd
  27. Apr 16, 2014
    • Mitchel Humpherys's avatar
      lrdp-v2: add hexdump functions · 97cff249
      Mitchel Humpherys authored
      It's useful to be able to dump regions of memory a la `xxd'. Add some
      machinery to parser_util and RamDump to do this.
      
      Example:
      
          $ ramparse.py -a . -o parsed --shell
          >>> dump.hexdump(0, 100, virtual=False)
          00000000: fffe ffde 0200 0000 ffff b7bf adf5 a5ff  ................
          00000010: e7bf edfe c6fe edf6 fefa fffe befa fefe  ................
          00000020: bfbe ffef aebd a5ef ffff 7f7e fefe 5afb  ...........~..Z.
          00000030: 1b00 2000 3300 4300 1c00 2100 3400 4800  .. .3.C...!.4.H.
          00000040: ffff ff7f fafe ffdb effd a5af adf5 a5bf  ................
          00000050: 4444 4444 4444 4444 4444 4444 4444 4444  DDDDDDDDDDDDDDDD
          00000060: 5fff ffff                                _...
          >>> dump.hexdump(0xc0000000, 100, virtual=True)
          c0000000: fffe ffde 0200 0000 ffff b7bf adf5 a5ff  ................
          c0000010: e7bf edfe c6fe edf6 fefa fffe befa fefe  ................
          c0000020: bfbe ffef aebd a5ef ffff 7f7e fefe 5afb  ...........~..Z.
          c0000030: 1b00 2000 3300 4300 1c00 2100 3400 4800  .. .3.C...!.4.H.
          c0000040: ffff ff7f fafe ffdb effd a5af adf5 a5bf  ................
          c0000050: 4444 4444 4444 4444 4444 4444 4444 4444  DDDDDDDDDDDDDDDD
          c0000060: 5fff ffff                                _...
          >>> dump.hexdump(dump.addr_lookup('linux_banner'), 144, virtual=True)
          c0b0006a: 4c69 6e75 7820 7665 7273 696f 6e20 332e  Linux version 3.
          c0b0007a: 3130 2e32 382d 6765 3232 3362 6632 3830  10.28-ge223bf280
          c0b0008a: 662d 6469 7274 7920 286d 6974 6368 656c  f-dirty (mitchel
          c0b0009a: 6840 6d69 7463 6865 6c68 2d6c 696e 7578  h@mitchelh-linux
          c0b000aa: 2920 2867 6363 2076 6572 7369 6f6e 2034  ) (gcc version 4
          c0b000ba: 2e37 2028 4743 4329 2029 2023 3720 534d  .7 (GCC) ) #7 SM
          c0b000ca: 5020 5052 4545 4d50 5420 5475 6520 4170  P PREEMPT Tue Ap
          c0b000da: 7220 3820 3134 3a32 303a 3132 2050 4454  r 8 14:20:12 PDT
          c0b000ea: 2032 3031 340a 007c 2f2d 5c00 0000 0000   2014..|/-\.....
      
      Change-Id: Iecaf80f72845f052085a60eadedd2bb24743224c
      97cff249
    • Mitchel Humpherys's avatar
      lrdp-v2: refactor Armv7LPAEMMU code · 4f8207f7
      Mitchel Humpherys authored
      The LPAE MMU code can be re-used for other modules that need page table
      parsing (like the LPAE IOMMU page tables). Refactor the code a bit so
      that it can be easily re-used later.
      
      Change-Id: I0deb80a69f2fca83c3ddcc78867fa2e5f5d18bb2
      4f8207f7
Loading