Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5829818d authored by Stephen Boyd's avatar Stephen Boyd
Browse files

msm: ramdump: Dump ELF format instead of plain memory



Ramdump devices dump memory directly, relying on the users of
the device nodes to know that the file they read may represent
non-contiguous memory segments. In addition, they must know what
addresses those segments pertain to, something that is not easily
determined with relocatable PIL.

Introduce a new API, do_elf_ramdump(), that generates an ELF core
file when you read the device node. This should allow users of
the ramdump device nodes to easily figure out what the ramdump
represents instead of relying on hard-coded knowledge. It also
allows one to use readelf on the file to determine what the
memory regions are, and simplifies loading of the binaries into
debuggers that can understand ELF formats.

Change-Id: I530f72298c7e88fe95c020c6a9b99d8160df2f4c
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 14f27b66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment