You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.