Skip to contentSkip to conversation

memory dump

DISCUSSION Marc Leeman 2 participants 2 messages May 24, 2004

lore
Share & tools
lore
#0 lore raw

A quick question:

Can I obtain the memory location of kernel variables based on the System.map file in such a way that I can dump them with a BDI probe.

dump 0xabcdef 0x10000 dump.txt

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

Can I obtain the memory location of kernel variables based on the System.map file in such a way that I can dump them with a BDI probe.

Yes. Just "grep" for the symbol in System.map and subtract KERNELLOAD resp. CONFIG_KERNEL_START (0xC0000000); for example:

	-> grep log_buf System.map
	c017c754 b log_buf

Use: "dump 0x0017c754" to dump the contents of the log buffer.

See also http://www.denx.de/twiki/bin/view/DULG/LinuxPostMortemAnalysis

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "The glory of creation is in its infinite diversity." "And in the way our differences combine to create meaning and beauty."

	-- Dr. Miranda Jones and Spock, "Is There in Truth No Beauty?",
	   stardate 5630.8

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/