How to turn on JIT debug traces without rebuilding?

84 views
Skip to first unread message

Tomei

unread,
Oct 7, 2010, 2:37:21 AM10/7/10
to android-platform
Hello,

We have a consistent SIGILL crash when using a certain built-in app on
our test devices. Is it possible to instrument the JIT to dump all
generated code for a given process? We are suspecting cache coherence
issues. If the JIT dump shows a valid instruction at the faulting PC
that would confirm our suspicion.

We want to do this without rebuilding the platform, since that would
be a hassle when we are testing many platform variants .....

Thanks!

Ben Cheng

unread,
Oct 7, 2010, 2:49:59 AM10/7/10
to android-...@googlegroups.com
There is a debugging utility called gdbjithelper under dalvik/tools, where you can read README.txt and the inline comments in gdbjithelper.c. The idea is to paste the dumped memory content from the bug report into the data array and piggy back gdb to disassemble the bytes. That should help you decode the instructions around the crash site without turning on the verbose mode globally (lots of stuff in the log and often overflows the log buffer).

-Ben 


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Reply all
Reply to author
Forward
0 new messages