From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 768 invoked by alias); 7 Apr 2012 12:23:27 -0000 Received: (qmail 757 invoked by uid 22791); 7 Apr 2012 12:23:26 -0000 X-SWARE-Spam-Status: No, hits=-3.9 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-wi0-f177.google.com (HELO mail-wi0-f177.google.com) (209.85.212.177) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 07 Apr 2012 12:23:13 +0000 Received: by wibhj13 with SMTP id hj13so925794wib.12 for ; Sat, 07 Apr 2012 05:23:11 -0700 (PDT) Received: by 10.180.104.230 with SMTP id gh6mr2793353wib.22.1333801389118; Sat, 07 Apr 2012 05:23:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.15.2 with HTTP; Sat, 7 Apr 2012 05:22:28 -0700 (PDT) From: Hui Zhu Date: Sat, 07 Apr 2012 12:23:00 -0000 Message-ID: Subject: KGTP (Linux Kernel debugger and tracer) 20120406 release(hotcode analyzer hotcode.py can output html) To: linux-kernel@vger.kernel.org, "gdb@sourceware.org" , kgtp 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-04/txt/msg00059.txt.bz2 KGTP is a realtime and lightweight Linux Kernel debugger and tracer. It makes Linux Kernel supply a GDB remote debug interface. Then GDB in current machine or remote machine (see https://code.google.com/p/kgtp/wiki/HOWTO#Make_GDB_connect_to_gtp) can debug and trace Linux through GDB tracepoint 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 https://code.google.com/p/kgtp/wiki/HOWTO#Offline_debug). And it can work with Android (See https://code.google.com/p/kgtp/wiki/HowToUseKGTPinAndroid). Now, it supports X86-32, X86-64, MIPS and ARM. Now, KGTP 20120406 release. You can get the package for it from http://kgtp.googlecode.com/files/kgtp_20120406.tar.bz2 or svn co https://kgtp.googlecode.com/svn/tags/20120406 In the 20120319 release, KGTP include a add-ons hotcode.py that can show the hotest code line in the Kernel or user space program without interrupt them through parse and record the pc address in the irq handler. But it just can show the hotcode info to terminal. Now, it can save the hotcode info to a html file. Then you can get more clear info from hotcode.py. You can get a example in http://teawater.users.sourceforge.net/hotcode/normal.html And I wrote a doc "an example to use KGTP analyze application performance bottleneck" to show hot to use it increase the performance in http://code.google.com/p/kgtp/wiki/hotcode The other change of this release is: Fix build error with Linux kernel that older than 2.6.34 in ARM. Thanks report and help from Adam Huang. Update howto.txt (http://code.google.com/p/kgtp/wiki/HOWTO) to make it more clear. Update the GDB in http://code.google.com/p/gdbt/ (add static binary and change the source of code) to make people use it easily. Fix bug of add-ons/hotcode.py when it use with user space task. getmod.py auto call "set pagination off". To get other change info please goto https://code.google.com/p/kgtp/wiki/UPDATE The other change of this release is: Fix bug with GDB RSP package sum check. Increase the speed of access to trace state variables. Increase the speed of agent code execution. Remove the current agent code "printf" support because GDB will support new format of agent code "printf". Fix bug about access $current_task_pid. Add new debug switch GTP_DEBUG_V (just for developer). To get other change info please goto https://code.google.com/p/kgtp/wiki/UPDATE According to the comments of Christoph. I make a patch for Linux Kernel and make it looks OK with checkpatch.pl. I will post the patch for review to linux-kernel@vger.kernel.org in a separate mail. Thanks, Hui