https://github.com/teawater/kgtp | |
What is KGTP? |
|
KGTP is a comprehensive dynamic
tracer for analysing Linux kernel and application (including Android)
problems on production systems in real time. To use it, you don't need patch or rebuild the Linux kernel. Just build KGTP module and insmod it is OK. It makes Linux Kernel supply a GDB remote debug interface. Then GDB in current machine or remote machine can debug and trace Linux kernel and user space program through GDB tracepoint and some other functions without stopping the Linux Kernel. And even if the board doesn't have GDB on it and doesn't have interface for remote debug. It can debug the Linux Kernel using offline debug (See /sys/kernel/debug/gtpframe and offline debug). KGTP supports X86-32, X86-64, MIPS and ARM. KGTP supports most versions of the kernel (from 2.6.18 to upstream). http://www.youtube.com/watch?v=7nfGAbNsEZY or http://www.tudou.com/programs/view/fPu_koiKo38/ is the video that introduced KGTP in English. http://www.infoq.com/cn/presentations/gdb-sharp-knife-kgtp-linux-kernel is the video that introduced KGTP in Chinese. |
|
How to use KGTP? |
|
Please goto KGTP (English) or KGTPCN (Chinese) to get howto use KGTP. Or download the pdf version: kgtp.pdf (English) kgtpcn.pdf (Chinese). Please see Table of different between GDB debug normal program and KGTP get the different between GDB debug normal program and KGTP if you have experience using GDB debug normal program. |
|
Please go to https://github.com/teawater/kgtp/blob/master/UPDATE
to get more info about KGTP update. http://www.freelists.org/list/kgtp is the maillist of KGTP. 317654748 is the QQ group of KGTP. If KGTP help you, please donate its development. Thanks! |