From owner-kernprof@oss.sgi.com Sat Mar 3 00:23:28 2001 Received: by oss.sgi.com id ; Sat, 3 Mar 2001 00:23:08 -0800 Received: from Lecs.CS.UCLA.EDU ([131.179.144.100]:60421 "EHLO lecs.cs.ucla.edu") by oss.sgi.com with ESMTP id ; Sat, 3 Mar 2001 00:22:59 -0800 Received: from lecs.cs.ucla.edu (IDENT:jelson@localhost [127.0.0.1]) by lecs.cs.ucla.edu (8.9.3/8.9.3) with ESMTP id AAA27027; Sat, 3 Mar 2001 00:22:49 -0800 Message-Id: <200103030822.AAA27027@lecs.cs.ucla.edu> From: Jeremy Elson To: kernprof@oss.sgi.com cc: jelson@isi.edu Subject: acg mode causing reboots? Date: Sat, 03 Mar 2001 00:22:49 -0800 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing Hi, First off I'd like to thank you for kernprof specifically, and for all your Linux support & enthusiasm general, and even more generally for just being a cool company for many years. I'm having a problem with the 2.4.1 kernel patch of kernprof. It seems that sometimes, when I start collecting profiling samples in ACG-mode (i.e., kernprof -t acg, then kernprof -b), the machine will reboot within 10 seconds. This doesn't happen until I activate profiling: the machine runs fine with profiling support in the kernel but not active. And the machine seems to run find when kernprof is active in PC mode. One time, I did successfully collect ACG samples, but many other times I get these reboots instead. Some additional background: a) I am using the latest prerelease of GCC/EGCS (gcc version 2.95.3 20010219 (prerelease)), plus your one-line patch. b) I am using kernel 2.4.1 + kernprof patch 0.8 for 2.4.1 c) I am using kernprof userland utils v1.1 d) all 3 options for profiling are on in the kernel (frame ptrs, profiling support [not a module], and the char device) The first time I tried kernprof, the machine rebooted when collecting acg samples. I then went into /usr/src/linux, saved my .config, did "make mrproper", and tried again - and everything started working! I successfully collected call-graph data and viewed it with 'gprof'. I thought that perhaps there had been some old object files left around the first time, or an old makefile that was still omitting the frame pointer. Then, I added my new device driver to the kernel (the driver is very stable, but doesn't perform as well as I need - hence kernprof), recompiled. Once again the reboots started: I'd type "kernprof -b", and within 10 seconds I get a reset. I tried the make mrproper trick again but the reboots are still happening. Any ideas? Regards, Jeremy From owner-kernprof@oss.sgi.com Thu Mar 8 11:21:39 2001 Received: by oss.sgi.com id ; Thu, 8 Mar 2001 11:21:19 -0800 Received: from atlrel2.hp.com ([156.153.255.202]:45004 "HELO atlrel2.hp.com") by oss.sgi.com with SMTP id ; Thu, 8 Mar 2001 11:21:10 -0800 Received: from amrelay2.boi.hp.com (amrelay2.boi.hp.com [15.56.8.41]) by atlrel2.hp.com (Postfix) with ESMTP id A92A8546 for ; Thu, 8 Mar 2001 14:21:09 -0500 (EST) Received: from xpabh1.boi.hp.com (xpabh1.boi.hp.com [15.56.8.33]) by amrelay2.boi.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.02) with ESMTP id MAA08665 for ; Thu, 8 Mar 2001 12:21:08 -0700 (MST) Received: by xpabh1.boi.hp.com with Internet Mail Service (5.5.2653.19) id ; Thu, 8 Mar 2001 11:21:07 -0800 Message-ID: From: "TURPIN,GREG (HP-Loveland,ex2)" To: "'kernprof@oss.sgi.com'" Subject: Kernprof and gmon.out Date: Thu, 8 Mar 2001 11:21:04 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing Greetings! I'm interested in viewing an annotated call graph from kernprof. I called kernprof with: > kernprof -t acg -b No problems here. Then, I create a gmon.out file with: > kernprof -g Again, no problems. Now, how do I view the gmon.out file with gprof? What executable do I give gprof to read the symbol table? My kernel image doesn't work and neither does the System.map file. gprof needs an "a.out"-like executable. Maybe I'm just completely overlooking something. Any assistance in this matter would be greatly appreciated, Greg Turpin greg_turpin@hp.com From owner-kernprof@oss.sgi.com Thu Mar 8 11:51:09 2001 Received: by oss.sgi.com id ; Thu, 8 Mar 2001 11:50:59 -0800 Received: from sgi.SGI.COM ([192.48.153.1]:36434 "EHLO sgi.com") by oss.sgi.com with ESMTP id ; Thu, 8 Mar 2001 11:50:47 -0800 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id LAA00852 for ; Thu, 8 Mar 2001 11:50:47 -0800 (PST) mail_from (hawkes@engr.sgi.com) Received: from pchawkes (dhcp-163-154-20-204.engr.sgi.com [163.154.20.204]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id LAA79911; Thu, 8 Mar 2001 11:49:30 -0800 (PST) Message-ID: <005901c0a808$d1509da0$cc149aa3@engr.sgi.com> From: "John Hawkes" To: "TURPIN,GREG \(HP-Loveland,ex2\)" , References: Subject: Re: Kernprof and gmon.out Date: Thu, 8 Mar 2001 11:48:58 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing From: "TURPIN,GREG (HP-Loveland,ex2)" > Now, how do I view the gmon.out file with gprof? gprof /usr/src/linux/vmlinux should work. Does that not work for you? John Hawkes hawkes@engr.sgi.com From owner-kernprof@oss.sgi.com Thu Mar 8 11:56:20 2001 Received: by oss.sgi.com id ; Thu, 8 Mar 2001 11:56:09 -0800 Received: from columba.EUR.3Com.COM ([161.71.169.13]:19429 "EHLO columba.eur.3com.com") by oss.sgi.com with ESMTP id ; Thu, 8 Mar 2001 11:56:00 -0800 Received: from toucana.eur.3com.com (eurelay.eur.3com.com [140.204.220.50]) by columba.eur.3com.com (8.9.3/8.9.3) with ESMTP id TAA25683; Thu, 8 Mar 2001 19:53:38 GMT Received: from notesmta.eur.3com.com (eurmta1.EUR.3Com.COM [140.204.220.206]) by toucana.eur.3com.com (8.9.3/8.9.3) with SMTP id TAA20145; Thu, 8 Mar 2001 19:48:33 GMT Received: by notesmta.eur.3com.com(Lotus SMTP MTA v4.6.3 (733.2 10-16-1998)) id 80256A09.006D83C4 ; Thu, 8 Mar 2001 19:56:11 +0000 X-Lotus-FromDomain: 3COM From: "Jerome Nolan" To: "TURPIN,GREG (HP-Loveland,ex2)" cc: "'kernprof@oss.sgi.com'" Message-ID: <80256A09.006D833A.00@notesmta.eur.3com.com> Date: Thu, 8 Mar 2001 19:54:58 +0000 Subject: Re: Kernprof and gmon.out Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing gprof /usr/src/linux/vmlinux gmon.out is working fine for me BTW -b -f routine_name will use that routine as a start point and display descendent info only which gets rid of a lot of clutter From owner-kernprof@oss.sgi.com Fri Mar 9 11:37:52 2001 Received: by oss.sgi.com id ; Fri, 9 Mar 2001 11:37:32 -0800 Received: from Lecs.CS.UCLA.EDU ([131.179.144.100]:21516 "EHLO lecs.cs.ucla.edu") by oss.sgi.com with ESMTP id ; Fri, 9 Mar 2001 11:37:26 -0800 Received: from bluejay.lecs.cs.ucla.edu (bluejay.lecs.cs.ucla.edu [131.179.144.13]) by lecs.cs.ucla.edu (8.9.3/8.9.3) with ESMTP id LAA05712 for ; Fri, 9 Mar 2001 11:37:05 -0800 Received: from bluejay.lecs.cs.ucla.edu (localhost [127.0.0.1]) by bluejay.lecs.cs.ucla.edu (8.9.3/8.9.3) with ESMTP id LAA01676 for ; Fri, 9 Mar 2001 11:37:05 -0800 Message-Id: <200103091937.LAA01676@bluejay.lecs.cs.ucla.edu> To: kernprof@oss.sgi.com Subject: Re: acg mode causing reboots? In-Reply-To: Message from Jeremy Elson of "Sat, 03 Mar 2001 00:22:49 PST." <200103030822.AAA27027@lecs.cs.ucla.edu> Date: Fri, 09 Mar 2001 11:37:05 -0800 From: Jeremy Elson Sender: owner-kernprof@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;kernprof-outgoing Hi again, I tried recompiling the kernel a couple of more times and it seems that it does work sometimes, with some random combination of kernel options. The current (now working) configuration has SMP support compiled in. Are there any known issues with UP kernels + kernprof? -Jer Jeremy Elson writes: > >Hi, > >First off I'd like to thank you for kernprof specifically, and for all >your Linux support & enthusiasm general, and even more generally for >just being a cool company for many years. > >I'm having a problem with the 2.4.1 kernel patch of kernprof. It >seems that sometimes, when I start collecting profiling samples in >ACG-mode (i.e., kernprof -t acg, then kernprof -b), the machine will >reboot within 10 seconds. This doesn't happen until I activate >profiling: the machine runs fine with profiling support in the kernel >but not active. And the machine seems to run find when kernprof is >active in PC mode. One time, I did successfully collect ACG samples, >but many other times I get these reboots instead. > >Some additional background: > >a) I am using the latest prerelease of GCC/EGCS (gcc version 2.95.3 >20010219 (prerelease)), plus your one-line patch. > >b) I am using kernel 2.4.1 + kernprof patch 0.8 for 2.4.1 > >c) I am using kernprof userland utils v1.1 > >d) all 3 options for profiling are on in the kernel (frame ptrs, >profiling support [not a module], and the char device) > > >The first time I tried kernprof, the machine rebooted when collecting >acg samples. I then went into /usr/src/linux, saved my .config, did >"make mrproper", and tried again - and everything started working! I >successfully collected call-graph data and viewed it with 'gprof'. I >thought that perhaps there had been some old object files left around >the first time, or an old makefile that was still omitting the frame >pointer. > >Then, I added my new device driver to the kernel (the driver is very >stable, but doesn't perform as well as I need - hence kernprof), >recompiled. Once again the reboots started: I'd type "kernprof >-b", and within 10 seconds I get a reset. I tried the make mrproper >trick again but the reboots are still happening. > >Any ideas? > >Regards, >Jeremy From owner-kernprof@oss.sgi.com Fri Mar 23 02:38:33 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2NAcX028566 for kernprof-outgoing; Fri, 23 Mar 2001 02:38:33 -0800 Received: from mailsrv1.dlink.com.tw (mailsrv1.dlink.com.tw [210.66.49.71]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2NAcWM28563 for ; Fri, 23 Mar 2001 02:38:32 -0800 Received: from dlink.com.tw ([172.19.3.37]) by mailsrv1.dlink.com.tw (8.9.3/8.9.3) with SMTP id SAA12145 for ; Fri, 23 Mar 2001 18:57:10 +0800 From: vivid_liou@dlink.com.tw Received: by dlink.com.tw(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 48256A18.003A6B1F ; Fri, 23 Mar 2001 18:38:05 +0800 X-Lotus-FromDomain: D-LINK To: kernprof@oss.sgi.com Message-ID: <48256A18.003A651A.00@dlink.com.tw> Date: Fri, 23 Mar 2001 18:38:21 +0800 Subject: about kernprof kernel patch download Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 388 Lines: 15 Dir : I have a problem to download kernel patches . I will be appreciate if you could help me . when I click the "download " link at http://oss.sgi.com/projects/kernprof/ , the followng message show "make sure you have the permission to access the directory . 200 Types to A , 500 illeage port commmand" Does it mean that the directory is not available ? Thank you very much . From owner-kernprof@oss.sgi.com Sat Mar 24 02:31:22 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2OAVMq24239 for kernprof-outgoing; Sat, 24 Mar 2001 02:31:22 -0800 Received: from mailsrv1.dlink.com.tw (mailsrv1.dlink.com.tw [210.66.49.71]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2OAVLM24235 for ; Sat, 24 Mar 2001 02:31:21 -0800 Received: from dlink.com.tw ([172.19.3.37]) by mailsrv1.dlink.com.tw (8.9.3/8.9.3) with SMTP id SAA21399 for ; Sat, 24 Mar 2001 18:49:59 +0800 From: vivid_liou@dlink.com.tw Received: by dlink.com.tw(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 48256A19.0039BE1B ; Sat, 24 Mar 2001 18:30:42 +0800 X-Lotus-FromDomain: D-LINK To: kernprof@oss.sgi.com Message-ID: <48256A19.0039ADBA.00@dlink.com.tw> Date: Sat, 24 Mar 2001 18:34:00 +0800 Subject: how to patch 2.4. kernel Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 1065 Lines: 37 Sir : I need the the power of kernpro to help me trace the kernel code , but I failed the install the kernprof . I would be very appreciate if you could help me to solve the problem . I do the following steps . 1. cd gcc-2.95.2 patch -pl kernel priofing support "" kernel hacking ->compile with frame pointer " "kernel hacking->instrument kernel with call to mount " make bzImage 3. rebooting with the new kernel but booting process die after uncompresed kernel , I saw FAQ , and knew it may occur becuase gcc is not patched . but I did patch gcc. I am wondering if i miss some steps , so that it does't work . then i try to enable the three kernprof items , and recompile the kernel , the booting process also dies , and the following message show " idle process" then system hang . Thank you very much , I really need some help . From owner-kernprof@oss.sgi.com Mon Mar 26 09:34:49 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2QHYn628386 for kernprof-outgoing; Mon, 26 Mar 2001 09:34:49 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QHYjM28383 for ; Mon, 26 Mar 2001 09:34:45 -0800 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id JAA09921 for ; Mon, 26 Mar 2001 09:34:33 -0800 (PST) mail_from (hawkes@engr.sgi.com) Received: from pchawkes (sshgate.corp.sgi.com [169.238.216.146]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id JAA85654; Mon, 26 Mar 2001 09:33:07 -0800 (PST) Message-ID: <00eb01c0b61a$b50236c0$6501a8c0@marin1.sfba.home.com> From: "John Hawkes" To: , References: <48256A19.0039ADBA.00@dlink.com.tw> Subject: Re: how to patch 2.4. kernel Date: Mon, 26 Mar 2001 09:32:14 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 346 Lines: 17 From: > 1. cd gcc-2.95.2 > patch -pl configure > make bootstrap > make install Personally, I compile i386 kernels using gcc 2.91.66 (with that gcc-patch). I have encountered similar kernprof-profiling bootup problems using more recent compilers. John Hawkes hawkes@engr.sgi.com From owner-kernprof@oss.sgi.com Mon Mar 26 11:10:55 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2QJAtq31755 for kernprof-outgoing; Mon, 26 Mar 2001 11:10:55 -0800 Received: from pneumatic-tube.sgi.com (pneumatic-tube.sgi.com [204.94.214.22]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QJAtM31752 for ; Mon, 26 Mar 2001 11:10:55 -0800 Received: from cthulhu.engr.sgi.com (gate3-relay.engr.sgi.com [130.62.1.234]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id LAA00244 for ; Mon, 26 Mar 2001 11:20:57 -0800 (PST) mail_from (hawkes@engr.sgi.com) Received: from pchawkes (sshgate.corp.sgi.com [169.238.216.146]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id LAA41317; Mon, 26 Mar 2001 11:09:34 -0800 (PST) Message-ID: <01ba01c0b628$28dea1c0$6501a8c0@marin1.sfba.home.com> From: "John Hawkes" To: , References: <48256A19.0039ADBA.00@dlink.com.tw> Subject: Re: how to patch 2.4. kernel -- update Date: Mon, 26 Mar 2001 11:08:36 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 396 Lines: 15 From: ... > I do the following steps . > 1. cd gcc-2.95.2 > patch -pl ; Mon, 26 Mar 2001 11:45:04 -0800 Received: from concorde.cs.ucla.edu (concorde.cs.ucla.edu [131.179.144.102]) by lecs.cs.ucla.edu (8.9.3/8.9.3) with ESMTP id LAA14528; Mon, 26 Mar 2001 11:44:35 -0800 Received: from concorde.cs.ucla.edu (localhost [127.0.0.1]) by concorde.cs.ucla.edu (8.9.3/8.9.3) with ESMTP id LAA08843; Mon, 26 Mar 2001 11:44:34 -0800 Message-Id: <200103261944.LAA08843@concorde.cs.ucla.edu> From: Jeremy Elson To: "John Hawkes" cc: vivid_liou@dlink.com.tw, kernprof@oss.sgi.com Subject: Re: how to patch 2.4. kernel -- update In-Reply-To: Message from "John Hawkes" of "Mon, 26 Mar 2001 11:08:36 PST." <01ba01c0b628$28dea1c0$6501a8c0@marin1.sfba.home.com> Date: Mon, 26 Mar 2001 11:44:34 -0800 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 2763 Lines: 75 "John Hawkes" writes: >I have downloaded, patched, and built the latest gcc, version 2.95.3, >and I used that gcc to build linux-2.4.2 and linux-2.4.2+profiling >kernels. Both kernels booted, and the profiling kernel does appear to >function without crashing the system. I had a similar problem. I reported it on the list a couple of weeks ago, but it might have gotten lost (I didn't see a response). Here's my post again... From: Jeremy Elson To: kernprof@oss.sgi.com Subj: acg mode causing reboots? Date: Sat, 03 Mar 2001 00:22:49 -0800 ----------------- Hi, First off I'd like to thank you for kernprof specifically, and for all your Linux support & enthusiasm general, and even more generally for just being a cool company for many years. I'm having a problem with the 2.4.1 kernel patch of kernprof. It seems that sometimes, when I start collecting profiling samples in ACG-mode (i.e., kernprof -t acg, then kernprof -b), the machine will reboot within 10 seconds. This doesn't happen until I activate profiling: the machine runs fine with profiling support in the kernel but not active. And the machine seems to run find when kernprof is active in PC mode. One time, I did successfully collect ACG samples, but many other times I get these reboots instead. Some additional background: a) I am using the latest prerelease of GCC/EGCS (gcc version 2.95.3 20010219 (prerelease)), plus your one-line patch. b) I am using kernel 2.4.1 + kernprof patch 0.8 for 2.4.1 c) I am using kernprof userland utils v1.1 d) all 3 options for profiling are on in the kernel (frame ptrs, profiling support [not a module], and the char device) The first time I tried kernprof, the machine rebooted when collecting acg samples. I then went into /usr/src/linux, saved my .config, did "make mrproper", and tried again - and everything started working! I successfully collected call-graph data and viewed it with 'gprof'. I thought that perhaps there had been some old object files left around the first time, or an old makefile that was still omitting the frame pointer. Then, I added my new device driver to the kernel (the driver is very stable, but doesn't perform as well as I need - hence kernprof), recompiled. Once again the reboots started: I'd type "kernprof -b", and within 10 seconds I get a reset. I tried the make mrproper trick again but the reboots are still happening. Any ideas? Regards, Jeremy [ and a few days later...] Hi again, I tried recompiling the kernel a couple of more times and it seems that it does work sometimes, with some random combination of kernel options. The current (now working) configuration has SMP support compiled in. Are there any known issues with UP kernels + kernprof? -Jer From owner-kernprof@oss.sgi.com Mon Mar 26 12:36:33 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2QKaXp02927 for kernprof-outgoing; Mon, 26 Mar 2001 12:36:33 -0800 Received: from sgi.com (sgi.SGI.COM [192.48.153.1]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QKaWM02921 for ; Mon, 26 Mar 2001 12:36:32 -0800 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id MAA01934 for ; Mon, 26 Mar 2001 12:36:30 -0800 (PST) mail_from (hawkes@engr.sgi.com) Received: from pchawkes (sshgate.corp.sgi.com [169.238.216.146]) by cthulhu.engr.sgi.com (SGI-8.9.3/8.9.3) with SMTP id MAA26710; Mon, 26 Mar 2001 12:35:10 -0800 (PST) Message-ID: <03de01c0b634$104cd800$6501a8c0@marin1.sfba.home.com> From: "John Hawkes" To: "Jeremy Elson" Cc: , References: <200103261944.LAA08843@concorde.cs.ucla.edu> Subject: Re: how to patch 2.4. kernel -- update Date: Mon, 26 Mar 2001 12:33:48 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 901 Lines: 21 From: "Jeremy Elson" > I had a similar problem. I reported it on the list a couple of weeks > ago, but it might have gotten lost (I didn't see a response). I'm sorry I (speaking as the SGI "owner" of kernprof) didn't respond right away, but I didn't have anything useful to say. I still don't know if my gcc 2.95.3 experience is lengthy enough, or varied enough, to provide much more than a single point of positive information. I have no personal experience with uniprocessor kernels on UP hardware, nor do I have a clear "Aha!" understanding about what got fixed, if anything, between 2.95.2 and 2.95.3 insofar as the kernprof-profiling problems are concerned. All I can say is that I observe is that my SMP 2.4.2 kernel, built by 2.95.3 (with the kernprof patch), does seem to boot and to run acg profiling on a 2-CPU HP Kayak (Pentium-II). John Hawkes hawkes@engr.sgi.com From owner-kernprof@oss.sgi.com Mon Mar 26 23:26:07 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2R7Q7K19321 for kernprof-outgoing; Mon, 26 Mar 2001 23:26:07 -0800 Received: from mailsrv1.dlink.com.tw (mailsrv1.dlink.com.tw [210.66.49.71]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2R7Q5M19318 for ; Mon, 26 Mar 2001 23:26:05 -0800 Received: from dlink.com.tw ([172.19.3.37]) by mailsrv1.dlink.com.tw (8.9.3/8.9.3) with SMTP id PAA12157 for ; Tue, 27 Mar 2001 15:44:26 +0800 From: vivid_liou@dlink.com.tw Received: by dlink.com.tw(Lotus SMTP MTA v4.6.4 (830.2 3-23-1999)) id 48256A1C.0028C9B3 ; Tue, 27 Mar 2001 15:25:30 +0800 X-Lotus-FromDomain: D-LINK To: kernprof@oss.sgi.com Message-ID: <48256A1C.0028BDFA.00@dlink.com.tw> Date: Tue, 27 Mar 2001 15:28:49 +0800 Subject: how to patch linux kernel Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-kernprof@oss.sgi.com Precedence: bulk Content-Length: 295 Lines: 13 Hi , All I have a problem with patch command. At many ftp site , I see linux kernel and patch , but there are not documents explained how to patch kernel . which one is correct ? is it "patch -p0 < kernel-patch " or "patch -p1< kernel-patch" Is it common sense ? thanks you very much .