Please note that User Registration has been temporarily disabled due to a recent increase in automated registrations. If anyone needs an account, please request one here: RequestAccount. Thanks for your patience!--Wmat (talk)
Please email User:Wmat if you experience any issues with the Request Account form.

Difference between revisions of "Exception Analysis tools"

From eLinux.org
Jump to: navigation, search
(Created page with "There are lots of tools for Linux for analyzing and debugging exceptions in both the kernel and user-space programs. == Outline == * capturing information ** information emitted...")
 
(add link to ksymoops man page)
 
(7 intermediate revisions by 2 users not shown)
Line 8: Line 8:
 
** process exceptions
 
** process exceptions
 
*** android tombstones (exception summaries)
 
*** android tombstones (exception summaries)
 +
**** see http://kobablog.wordpress.com/2011/05/12/debuggerd-of-android/
 
*** Sony exception monitor log
 
*** Sony exception monitor log
 
*** coredumps (full process image)
 
*** coredumps (full process image)
Line 14: Line 15:
 
**** see [http://events.linuxfoundation.org/slides/2011/linuxcon-japan/lcj2011_wang.pdf Kernel crash logging and core dump] - Kong Wang, Redhat, at LinuxCon Japan 2011
 
**** see [http://events.linuxfoundation.org/slides/2011/linuxcon-japan/lcj2011_wang.pdf Kernel crash logging and core dump] - Kong Wang, Redhat, at LinuxCon Japan 2011
 
* parsing information
 
* parsing information
** oops analysis: http://madwifi-project.org/wiki/DevDocs/KernelOops
+
** There are many tutorials on analyzing a kernel Oops.  One of the best is the following:
 +
*** oops analysis: http://madwifi-project.org/wiki/DevDocs/KernelOops
 +
** [http://manpages.unixforum.co.uk/man-pages/linux/opensuse-10.2/8/ksymoops-man-page.html ksymoops] is used to convert addresses in an oops document to symbols
 
** [[GDB]] is used with coredump files
 
** [[GDB]] is used with coredump files
 
*** see [[GDB#Core_dump]]
 
*** see [[GDB#Core_dump]]
 +
** For Sony's EM log: emlogconv, em-log-process
 +
** debuggerd analysis
 +
*** see http://kobablog.wordpress.com/2011/05/14/how-to-read-crash-dump-of-android/
 +
* interactive analysis
 +
** Sony exception monitor
 +
 +
== Debugging the kernel ==
 +
(this section is only here temporarily)
 +
* target agents:
 +
** connectors:
 +
*** adb
 +
*** what do WR, MV and others use to set up or connect the debugger to the process?
 +
** debug agents
 +
*** gdbserver
 +
*** kgdb
 +
* host agents:
 +
** adb server
 +
* debuggers:
 +
** gdb
 +
** kdb (local interactive kernel debugging)
 +
 +
* See http://kernel.org/pub/linux/kernel/people/jwessel/dbg_webinar/State_Of_kernel_debugging_LinuxCon2010.pdf
 +
** Jason Wessel description of kernel debugging status at LinuxCon 2010.
 +
*** Notes:
 +
**** kgdboe = kgdb over ethernet - is unreliable and not going to be mainlined in current form
 +
**** kgdboc = kgdb over console? - slow but preferred
 +
**** kdb over EHCI = USB dongle for high-speed
 +
 +
[[Category:Development Tools]]

Latest revision as of 20:04, 8 December 2011

There are lots of tools for Linux for analyzing and debugging exceptions in both the kernel and user-space programs.

Outline

Debugging the kernel

(this section is only here temporarily)

  • target agents:
    • connectors:
      • adb
      • what do WR, MV and others use to set up or connect the debugger to the process?
    • debug agents
      • gdbserver
      • kgdb
  • host agents:
    • adb server
  • debuggers:
    • gdb
    • kdb (local interactive kernel debugging)