From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24878 invoked by alias); 12 Dec 2011 11:13:39 -0000 Received: (qmail 24866 invoked by uid 22791); 12 Dec 2011 11:13:38 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_SV X-Spam-Check-By: sourceware.org Received: from mail-ee0-f41.google.com (HELO mail-ee0-f41.google.com) (74.125.83.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Dec 2011 11:13:21 +0000 Received: by eekc41 with SMTP id c41so2997245eek.0 for ; Mon, 12 Dec 2011 03:13:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.14.18.94 with SMTP id k70mr2530712eek.228.1323688400227; Mon, 12 Dec 2011 03:13:20 -0800 (PST) Received: by 10.213.106.20 with HTTP; Mon, 12 Dec 2011 03:13:20 -0800 (PST) In-Reply-To: References: Date: Mon, 12 Dec 2011 11:13:00 -0000 Message-ID: Subject: Re: KGTP (Linux Kernel debugger and tracer) 20111111 release (Android support OK) From: Geunsik Lim To: Hui Zhu Cc: linux-kernel@vger.kernel.org, "gdb@sourceware.org" , kgtp , Marc Khouzam , Thiago Jung Bauermann , Steven , colyli@gmail.com, Christoph Hellwig , Steven Rostedt , Randy Dunlap Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 2011-12/txt/msg00016.txt.bz2 On Mon, Nov 14, 2011 at 2:15 PM, Hui Zhu wrote: > KGTP is a realtime and lightweight Linux Kernel GDB debugger and tracer. > > 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 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. > Now, it supports X86-32, X86-64, MIPS and ARM. > > Now, KGTP 20111111 release. > > The change of this release is: > Add a doc for use KGTP with Android in > https://code.google.com/p/kgtp/wiki/HowToUseKGTPinAndroid > post_handler will make kprobes-optimization cannot be used. So make > gtp_kp_post_handler be call only when tpe->step is true. > Make rdtsc_current to x86 special. > Register easy Kprobe handler to speed up it when no tracepoint access > $cooked_clock, $cooked_rdtsc or "pc_pe" tvariable. > Fix a bug of ARM build. > To get other change info please goto https://code.google.com/p/kgtp/wiki/= UPDATE > > According to the comments of Christoph. =C2=A0I make a patch for Linux > Kernel and make it looks OK with checkpatch.pl. =C2=A0The file gtp.patch = is > include in the source of KGTP code. Dear Hui Zhu, Recently, I synchronized KGTP kernel source with svn 838 to test built-in kernel after adjusting recent bug-fix. I still had a compilation error. Please, adjust the below patch content to support X86/ARM architecture normally. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =46rom 39d58cc7dab8df5e57fa106e8e7f00e562b45212 Mon Sep 17 00:00:00 2001 From: Geunsik Lim Date: Mon, 10 Dec 2011 18:08:03 +0900 Subject: [PATCH] Modify perf related func interface. Signed-off-by: Geunsik Lim Signed-off-by: Kyungmin Park --- lib/gtp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/gtp.c b/lib/gtp.c index 9bdf82c..9a2670e 100644 --- a/lib/gtp.c +++ b/lib/gtp.c @@ -4480,7 +4480,7 @@ restart: tve->pts->event =3D perf_event_create_kernel_counter(&(tve->pts->attr), tve->pts->cpu, - NULL, NULL, NULL); + NULL, NULL); if (IS_ERR(tve->pts->event)) { int ret =3D PTR_ERR(tve->pts->event); --=20 1.7.3.4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thank you for your contribution for embedded kernel debugging > > Thanks, > Hui > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at =C2=A0http://vger.kernel.org/majordomo-info.html > Please read the FAQ at =C2=A0http://www.tux.org/lkml/ --=20 Best regards, Geunsik Lim ( Samsung Electronics ) Blog : http://blog.naver.com/invain/ Homepage: http://leemgs.fedorapeople.org -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at=C2=A0 http://vger.kernel.org/majordomo-info.html Please read the FAQ at=C2=A0 http://www.tux.org/lkml/