From johnpw@TwinPeakSoft.com Wed Dec 21 20:08:15 2005 Received: with ECARTIS (v1.0.0; list kdb); Wed, 21 Dec 2005 20:08:26 -0800 (PST) Received: from TwinPeakSoft.com (adsl-69-227-249-30.dsl.pltn13.pacbell.net [69.227.249.30]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBM48A8n001662 for ; Wed, 21 Dec 2005 20:08:15 -0800 Received: from Twingates ([192.168.1.3]) by TwinPeakSoft.com (8.11.6/8.11.6) with SMTP id jBM48tJ15338; Wed, 21 Dec 2005 20:08:55 -0800 Message-Id: <200512220408.jBM48tJ15338@TwinPeakSoft.com> Date: Wed, 21 Dec 2005 20:04:07 -0800 (PST) From: johnpw Reply-To: johnpw Subject: Re: Problem with patching Kernel 2.4.20-8 To: kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-MD5: Juq9qQ72Dyp9wmgGN9bCRw== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.3_06 SunOS 5.9 sun4u sparc Content-Transfer-Encoding: 8bit X-archive-position: 1145 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: johnpw@TwinPeakSoft.com Precedence: bulk X-list: kdb Greetings, We finished debugging our kernel module with Kdb. We are having some problems when running the same kernel module on Red Hat's WS 3 release. There is no kdb available on Red Hat's Release, only gdb. I'd apppeciate any advice and pointer on how to debug kernel module with gdb. Thanks, John W. >Date: Wed, 14 Sep 2005 09:20:51 -0700 (PDT) >From: johnpw >Subject: Re: Problem with patching Kernel 2.4.20-8 >To: lims@connectone.com, raybry@mpdtxmail.amd.com >Cc: kdb@oss.sgi.com > >Limor, > >I had similar problem before. It seems to me that the kernel >source distributed by Redhat is not compatible with kdb patch. > >I then downloaded the kernel source from kernel.org and patch it >with kdb patch. The new kernel with kdb in it run fine on Redhat's >Linux. The kernel version is 2.4.21. > >John W. > > > >>X-Server-Uuid: 5FC0E2DF-CD44-48CD-883A-0ED95B391E89 >>From: "Ray Bryant" >>To: "limor" >>Subject: Re: Problem with patching Kernel 2.4.20-8 >>Date: Wed, 14 Sep 2005 09:02:26 -0500 >>User-Agent: KMail/1.8 >>cc: kdb@oss.sgi.com >>X-WSS-ID: 6F36F2E609S167350-01-01 >>Content-Disposition: inline >>X-archive-position: 1109 >>X-ecartis-version: Ecartis v1.0.0 >>X-original-sender: raybry@mpdtxmail.amd.com >>X-list: kdb >>X-Virus-Scanned: ClamAV 0.83/1023/Mon Aug 15 13:15:08 2005 on oss.sgi.com >>X-Virus-Status: Clean >> >>On Wednesday 14 September 2005 09:02, limor wrote: >>> I am new the Linux, but since I need to be able to debug a driver module, >>> I tried to patch a 2.4.20-8 kernel to add kdb. >>> >>> I started with the command - >>> >>> "patch -b -p1>> >>> but after it patched 3 files, I got the following - >>> >>> "Patching file kernel/ksyms.c >>> Reversed (or previously applied) patch detected! Assume -R? [n]" >>> >>> Is that because my kernel comes from a RedHat distribution? and anyway - >>> what do I now? >>> >> >>The kernel patch for 2.4.20 will likely only correctly apply to 2.4.20. If >>you are trying to apply it to some other kernel, you will need to look at the >>various patch failures and fix them up somehow. In the case of 2.4.20-8, you >>may find some things that were ported (by RedHat) into 2.4.20 that make the >>patch fail. >> >>Try something like this: >> >>patch --backup < kdb-v4.3-2.4.20-common-1 >> >>Then compare the .c, .bak and .reject files and figure out what to do. >> >>Good luck. >> >>> (I know someone asked the exact same question on the list more than a year >>> ago, >>> but the only reply I saw was a couple of questions - "Which kernel were you >>> patching? >>> Which patch were you applying?") >>> >>> Thanks, >>> Limor >>> >>> >>> --------------------------- >>> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. >> >>-- >>Ray Bryant >>AMD Performance Labs Austin, Tx >>512-602-0038 (o) 512-507-7807 (c) >> >>--------------------------- >>Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. > --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@kao2.melbourne.sgi.com Wed Dec 21 22:36:22 2005 Received: with ECARTIS (v1.0.0; list kdb); Wed, 21 Dec 2005 22:36:33 -0800 (PST) Received: from kao2.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBM6aL8n027848 for ; Wed, 21 Dec 2005 22:36:22 -0800 Received: from kao2.melbourne.sgi.com (localhost [127.0.0.1]) by kao2.melbourne.sgi.com (Postfix) with ESMTP id 19DAC21BA; Thu, 22 Dec 2005 17:32:30 +1100 (EST) X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.1 From: Keith Owens To: johnpw cc: kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com Subject: Re: Problem with patching Kernel 2.4.20-8 In-reply-to: Your message of "Wed, 21 Dec 2005 20:04:07 -0800." <200512220408.jBM48tJ15338@TwinPeakSoft.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Thu, 22 Dec 2005 17:32:30 +1100 Message-ID: <9100.1135233150@kao2.melbourne.sgi.com> Content-Transfer-Encoding: 8bit X-archive-position: 1146 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Wed, 21 Dec 2005 20:04:07 -0800 (PST), johnpw wrote: >Greetings, > >We finished debugging our kernel module with Kdb. > >We are having some problems when running the same kernel >module on Red Hat's WS 3 release. > >There is no kdb available on Red Hat's Release, only gdb. > >I'd apppeciate any advice and pointer on how to debug >kernel module with gdb. Thanks, RedHat include lots of kernel patches and refuse to include the kdb patch. Please ask RedHat how you debug problems with their patched kernel. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From johnpw@TwinPeakSoft.com Fri Dec 23 10:44:04 2005 Received: with ECARTIS (v1.0.0; list kdb); Fri, 23 Dec 2005 10:44:13 -0800 (PST) Received: from TwinPeakSoft.com (adsl-69-227-249-30.dsl.pltn13.pacbell.net [69.227.249.30]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBNIhx8n026761 for ; Fri, 23 Dec 2005 10:44:04 -0800 Received: from Twingates ([192.168.1.3]) by TwinPeakSoft.com (8.11.6/8.11.6) with SMTP id jBNIihJ26146; Fri, 23 Dec 2005 10:44:43 -0800 Message-Id: <200512231844.jBNIihJ26146@TwinPeakSoft.com> Date: Fri, 23 Dec 2005 10:39:40 -0800 (PST) From: johnpw Reply-To: johnpw Subject: Re: Problem with patching Kernel 2.4.20-8 To: kaos@sgi.com, kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-MD5: ghhFU0PtngdGJP3C9qdolw== X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.5.3_06 SunOS 5.9 sun4u sparc Content-Transfer-Encoding: 8bit X-archive-position: 1147 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: johnpw@TwinPeakSoft.com Precedence: bulk X-list: kdb Keith, I can't get a straight answer from Red Hat about how to debug their kernel. What is the proper way to patch kdb into Red Hat's patched kernel? John W. >From: Keith Owens >To: johnpw >cc: kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com >Subject: Re: Problem with patching Kernel 2.4.20-8 >Date: Thu, 22 Dec 2005 17:32:30 +1100 >X-archive-position: 1146 >X-ecartis-version: Ecartis v1.0.0 >X-original-sender: kaos@sgi.com >X-list: kdb >X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on oss.sgi.com >X-Virus-Status: Clean > >On Wed, 21 Dec 2005 20:04:07 -0800 (PST), >johnpw wrote: >>Greetings, >> >>We finished debugging our kernel module with Kdb. >> >>We are having some problems when running the same kernel >>module on Red Hat's WS 3 release. >> >>There is no kdb available on Red Hat's Release, only gdb. >> >>I'd apppeciate any advice and pointer on how to debug >>kernel module with gdb. Thanks, > >RedHat include lots of kernel patches and refuse to include the kdb >patch. Please ask RedHat how you debug problems with their patched >kernel. > >--------------------------- >Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From Scott.Lurndal@3leafnetworks.com Fri Dec 23 12:03:19 2005 Received: with ECARTIS (v1.0.0; list kdb); Fri, 23 Dec 2005 12:03:26 -0800 (PST) Received: from chronus.3leafnetworks.com (chronus.3leafnetworks.com [71.129.195.180]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBNK3I8n007879 for ; Fri, 23 Dec 2005 12:03:19 -0800 Received: from chronus.3leafnetworks.corp (chronus.3leafnetworks.corp [192.168.100.17]) by chronus.3leafnetworks.com (Postfix) with ESMTP id 308DC786344 for ; Fri, 23 Dec 2005 11:59:35 -0800 (PST) Received: from pendragon.3leafnetworks.com ([192.168.100.51]) by chronus.3leafnetworks.corp with Microsoft SMTPSVC(6.0.3790.1830); Fri, 23 Dec 2005 11:59:33 -0800 Received: from pendragon.3leafnetworks.com (localhost [127.0.0.1]) by pendragon.3leafnetworks.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id jBNJxW93018306; Fri, 23 Dec 2005 11:59:32 -0800 Received: (from slurndal@localhost) by pendragon.3leafnetworks.com (8.12.10/8.12.10/Submit) id jBNJxWm0018305; Fri, 23 Dec 2005 11:59:32 -0800 Date: Fri, 23 Dec 2005 11:59:32 -0800 From: Scott Lurndal To: johnpw Cc: kaos@sgi.com, kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com Subject: Re: Problem with patching Kernel 2.4.20-8 Message-ID: <20051223195932.GA17995@pendragon.3leafnetworks.com> References: <200512231844.jBNIihJ26146@TwinPeakSoft.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512231844.jBNIihJ26146@TwinPeakSoft.com> User-Agent: Mutt/1.5.6i X-OriginalArrivalTime: 23 Dec 2005 19:59:33.0897 (UTC) FILETIME=[64FA9F90:01C607FB] Content-Transfer-Encoding: 8bit X-archive-position: 1148 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: scott.lurndal@3leafnetworks.com Precedence: bulk X-list: kdb On Fri, Dec 23, 2005 at 10:39:40AM -0800, johnpw wrote: > Keith, > > I can't get a straight answer from Red Hat about how to debug > their kernel. > What is the proper way to patch kdb into Red Hat's patched kernel? - Load the redhat kernel sources (see redhat release notes) (load the kernel*.src.rpm, cd to /usr/src/redhat/SPECS; rpmbuild -bp kernel.spec; the resulting patched tree will be under /usr/src/redhat/BUILD). - Apply the kdb patch. - Resolve any conflicts. [ This is the difficult part ] - Build kernel - try kernel scott > > John W. > > >From: Keith Owens > >To: johnpw > >cc: kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com > >Subject: Re: Problem with patching Kernel 2.4.20-8 > >Date: Thu, 22 Dec 2005 17:32:30 +1100 > >X-archive-position: 1146 > >X-ecartis-version: Ecartis v1.0.0 > >X-original-sender: kaos@sgi.com > >X-list: kdb > >X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on > oss.sgi.com > >X-Virus-Status: Clean > > > >On Wed, 21 Dec 2005 20:04:07 -0800 (PST), > >johnpw wrote: > >>Greetings, > >> > >>We finished debugging our kernel module with Kdb. > >> > >>We are having some problems when running the same kernel > >>module on Red Hat's WS 3 release. > >> > >>There is no kdb available on Red Hat's Release, only gdb. > >> > >>I'd apppeciate any advice and pointer on how to debug > >>kernel module with gdb. Thanks, > > > >RedHat include lots of kernel patches and refuse to include the kdb > >patch. Please ask RedHat how you debug problems with their patched > >kernel. > > > >--------------------------- > >Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@ocs3.ocs.com.au.sgi.com Fri Dec 23 23:57:26 2005 Received: with ECARTIS (v1.0.0; list kdb); Fri, 23 Dec 2005 23:57:37 -0800 (PST) Received: from larry.melbourne.sgi.com (mverd138.asia.info.net [61.14.31.138]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id jBO7vL8n015924 for ; Fri, 23 Dec 2005 23:57:22 -0800 Received: from mail.ocs.com.au (kao1.melbourne.sgi.com [134.14.55.179]) by larry.melbourne.sgi.com (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id SAA15335 for ; Sat, 24 Dec 2005 18:53:25 +1100 Received: from ocs3.ocs.com.au (ocs3.ocs.com.au [192.168.255.3]) by mail.ocs.com.au (Postfix) with ESMTP id 113B8125; Sat, 24 Dec 2005 18:53:14 +1100 (EST) X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.1 From: Keith Owens To: Scott Lurndal Cc: johnpw , kdb@oss.sgi.com, lims@connectone.com, raybry@mpdtxmail.amd.com Subject: Re: Problem with patching Kernel 2.4.20-8 In-reply-to: Your message of "Fri, 23 Dec 2005 11:59:32 -0800." <20051223195932.GA17995@pendragon.3leafnetworks.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Sat, 24 Dec 2005 18:53:14 +1100 Message-ID: <17021.1135410794@ocs3.ocs.com.au> Content-Transfer-Encoding: 8bit X-archive-position: 1149 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@sgi.com Precedence: bulk X-list: kdb On Fri, 23 Dec 2005 11:59:32 -0800, Scott Lurndal wrote: >On Fri, Dec 23, 2005 at 10:39:40AM -0800, johnpw wrote: >> Keith, >> >> I can't get a straight answer from Red Hat about how to debug >> their kernel. >> What is the proper way to patch kdb into Red Hat's patched kernel? There isn't one. RedHat do not want a kernel debugger and SGI cannot afford to maintain kdb against the heavily patched RedHat kernel. Your only options are to ask RedHat to help, to use a standard kernel instead of a RH patched one or to switch to another distribution. SuSE like to have kernel debuggers and include them in their distribution. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.