last_kmsg is a dump of the printk statements from the kernel before the 
operating system itself crashed. Tombstones are miniature core dumps generated 
by the operating system when a userspace Android application crashes. 

I suggest you look into the panic() function in an LXR for the second question. 

Alex


On Jul 13, 2011, at 3:34 AM, claire wrote:

> hello i'm writing this letter because i have some questions about
> kernel log.
> 
> 1. The difference between last_kmsg and tombstones?
> 
> i heard last_kmsg is created by kernel panic but i also heard
> tombstones is created in same case.
> but when kernel panic happened, i just only got last_kmsg ...
> 
> so i wanna know how and when can i get that files and what is the
> difference of meaning between last_kmsg and tombstones?
> 
> 2. how to create last_kmsg?
> 
> when the phone is terminated(or reboot) because of kernel panic,
> maybe a certain flag is changed.
> when the flag is 1(or 0), it creates last_kmsg file.  (it's just my
> guess)
> 
> what i wonder is how can the phone knows whether the kernel panic is
> happened or unhappened.
> and where (which file) can i see that codes?
> - when kernel boots, check something in ram_console.c but i can't
> understand
> so please explain process of creating last_kmsg
> 
> thank you for your reading ^^
> 
> -- 
> unsubscribe: android-kernel+unsubscr...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to