From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20434 invoked by alias); 5 Jun 2012 09:14:46 -0000 Received: (qmail 20415 invoked by uid 22791); 5 Jun 2012 09:14:44 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_SV X-Spam-Check-By: sourceware.org Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jun 2012 09:14:28 +0000 Received: by wgbdr1 with SMTP id dr1so3911574wgb.12 for ; Tue, 05 Jun 2012 02:14:26 -0700 (PDT) Received: by 10.216.194.195 with SMTP id m45mr14243197wen.8.1338887666521; Tue, 05 Jun 2012 02:14:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.122.193 with HTTP; Tue, 5 Jun 2012 02:13:44 -0700 (PDT) From: Hui Zhu Date: Tue, 05 Jun 2012 09:14:00 -0000 Message-ID: Subject: KGTP (Linux Kernel debugger and tracer) 20120605 release(user task memory access and user task stack dump available now) To: linux-kernel@vger.kernel.org, "gdb@sourceware.org" , kgtp Cc: Marc Khouzam , Thiago Jung Bauermann , Steven , colyli@gmail.com, Christoph Hellwig , Geoff Levand , Steven Rostedt , Randy Dunlap , Geunsik Lim , Andi Kleen , Tao Ma Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00025.txt.bz2 KGTP is a realtime and lightweight Linux debugger and tracer. 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 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 HOWTO#/sys/kernel/debug/gtpframe_and_offline_debug). KGTP supports X86-32, X86-64, MIPS and ARM. KGTP is tested on Linux kernel 2.6.18 to upstream. And it can work with Android (See http://code.google.com/p/kgtp/wiki/HowToUseKGTPinAndroid). Please go to http://code.google.com/p/kgtp/wiki/HOWTO or http://code.google.com/p/kgtp/wiki/HOWTO (Chinese) to get more info about howto use KGTP. Now, KGTP 20120605 release. You can get the package for it from http://kgtp.googlecode.com/files/kgtp_20120605.tar.bz2 or svn co https://kgtp.googlecode.com/svn/tags/20120605 The main change of this release is: Add new function "Read memory of user space program directly". And use this function will not interrupt this task. Please goto http://code.google.com/p/kgtp/wiki/HOWTO#Read_memory_of_user_space_program_directly to get more info about it. Add new function "collect stack (for backtrace) of user space program in tracepoint". With this function, you can get the stack dump of an user task from user space to Kernel space. Please goto http://code.google.com/p/kgtp/wiki/HOWTO#collect_stack_(for_backtrace)_of_user_space_program_in_tracepoin to get more info about it. Please goto http://code.google.com/p/kgtp/wiki/UPDATE get more info about this release. According to the comments of Christoph, Geoff and Andi. I make lite patch for review. Please goto https://lkml.org/lkml/2012/5/9/90 to see it. Thanks, Hui