about last_kmsg and tombstone files

2,186 views
Skip to first unread message

claire

unread,
Jul 13, 2011, 3:34:31 AM7/13/11
to Android Linux Kernel Development
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 ^^

Alexander Golec

unread,
Jul 13, 2011, 1:30:36 PM7/13/11
to android...@googlegroups.com
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

> --
> unsubscribe: android-kerne...@googlegroups.com
> website: http://groups.google.com/group/android-kernel

Reply all
Reply to author
Forward
0 new messages