- Apr 16, 2014
-
-
Mitchel Humpherys authored
MMU.virt_to_phys currently lacks a docstring. They're useful, so add one. Change-Id: I95b0a7a8f97912f178157eb4b68c453585e547bd
-
Mitchel Humpherys authored
Some common operations include getting the parent structure of some embedded field as well as getting "sibling" fields within the parent structure. Add some convenience methods to the gdbmi module (as well as wrappers in the RamDump class) for this. Change-Id: Ic65d7e60b930af8c73384a30b6b0dd84fb55f09c
-
Mitchel Humpherys authored
Move to the new sizes module to avoid repetition. Change-Id: I5b18837bb47c0077976e84bcc3af59a30ce42614
-
Mitchel Humpherys authored
Add a convenience module with definitions for common sizes, conversions to strings, functions for working with orders, etc. Change-Id: I922d6daa0c021a0d189b53aac76ed211e8864923
-
Mitchel Humpherys authored
out_dir is not used anymore. Remove it. Change-Id: I082e0642a352e91b232ce02fe40e20a200de9fc8
-
Mitchel Humpherys authored
Currently we error out and ask the user to create the output directory if it doesn't exist. As a convenience, just create the directory for them. Change-Id: I0e9caa8294d644621bd166a06e2a70c8ca5715fc
-
- Apr 07, 2014
-
-
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
-
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
-
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
-
- Apr 05, 2014
-
-
Linux Build Service Account authored
-
- Apr 04, 2014
-
-
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
-
- Mar 28, 2014
-
-
Linux Build Service Account authored
-
Laura Abbott authored
When calculating pfn_to_page, the pfn needs to be offset before indexing into the array. Account for this. Change-Id: If207447a91537ab7670058fede65473d3ea93281
-
- Mar 15, 2014
-
-
Linux Build Service Account authored
-
- Mar 14, 2014
-
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
- Mar 13, 2014
-
-
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
-
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
-
Laura Abbott authored
The page_tracking code is missing the page_buddy import. Import it. Change-Id: I0030305e51f470cdd379f8237bb15c912601e861
-
Laura Abbott authored
Ram dumps are now being generated for 64-bit ramdumps. Update the parser to account for this. Change-Id: I54a354f39701ad96dd7b81010ec6c5989dd471ad
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
Linux Build Service Account authored
-
- Mar 12, 2014
-
-
Laura Abbott authored
array_index properly accounts for the changes in sizes of array items. Use it. Change-Id: I0dd0fb70f968a2b837a3d2aa02ae3d02ad5a578a
-
Laura Abbott authored
Several of the values used in printing the runqueues are actually ints, not words. Correct the type used. Change-Id: I1b700a679d1dee04d2de28e9ec8d8e343e03fbe4
-
Laura Abbott authored
The ramdump APIs now provide functions for accessing per CPU variables. Use those instead of writing the same code over again. Change-Id: Ia34a9b1a279e8385bdc08b2612e59fdfe0e1f958
-
Laura Abbott authored
The IRQ parsing makes some non-generic assumptions about the sizes of various fields in the structures. Update the parsing to use better types. Change-Id: I914f6104e7f914aa941b301a71c38182806e11cc
-
Laura Abbott authored
Rather than assume a text offset, use one that is already found as a symbol. Change-Id: I1ad608085984bb0b658d371858cf01e0732811a3
-
Laura Abbott authored
The socinfo code depends on fixed size types which may be different from the word size. Update the parsing accordingly. Change-Id: I7c4a23f92e13349c9ebd67aa69438d1a55aba721
-