Files
mckernel/tools/crash
Balazs Gerofi ad3ee26d36 Fix various issues in McKernel crash extension.
Determine V2PHYS_OFFSET dynamically.
Fix x86 hole handling in 64 bit address space.
Fix ARM64 virtual address handling and support separate user-space
and kernel-space translation tables (i.e., TTRB0 and TTRB1).
Fix page table walker's lookup functionality.

Change-Id: I6b281693cdc88bd1b8fe3f4b8f40a6af3ca95cc0
2019-04-09 01:52:49 +00:00
..
2019-03-29 07:55:28 +00:00
2018-11-21 07:40:00 +00:00

crash extension for mckernel

== BUILD ==

You can build it by installing the crash-devel package, or putting
the files here in the extensions directory of the crash sources, and
running `make -f mckernel.mk`

== USAGE ==

Either run 'extend path/to/mckernel.so' from within crash or run crash
with `CRASH_EXTENSIONS=path/to/dir crash -x`
You then need to tell crash about mckernel symbol with the `mcsymbols`
command:

  crash> mcsymbols path/to/mckernel.img
  Loading symbols from path/to/mckernel.img... OK.

If your mckernel.img is always at the same place, you can put the command
in a crashrc file and load everything automatically with -i, such as:

  CRASH_EXTENSIONS=.../crash/extensions crash -x -i .../crashrc


At this point, you can use the various mckernel commands, as well as
regular linux crash commands:

  crash> help | xargs -n 1 | grep -E '^mc'
  mcmem
  mcps
  mcsymbols
  mcvtop
  mckmsg

Refer to the inline help of each command for their usage and examples.