From purejack.tw@yahoo.com.tw Mon May 29 09:58:48 2006 Received: with ECARTIS (v1.0.0; list kernprof); Mon, 29 May 2006 09:58:58 -0700 (PDT) Received: from web17506.mail.tpe.yahoo.com (web17506.mail.tpe.yahoo.com [202.43.200.186]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with SMTP id k4TGwkeZ003998 for ; Mon, 29 May 2006 09:58:47 -0700 Received: (qmail 90818 invoked by uid 60001); 29 May 2006 15:50:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.tw; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dLalNJqDqVXePY2nsHS044BpyEBeCOeeeHaaBNvVlfjfd+H8pUf558bqm0u7hEloLbj80alX4Mrg8Bn4C71jvdD9METys6SQFv27pBLxiEV+I/fLXP+QmsLfKcs3f05n5J05U751RjrIeZBoa82tQd91oO1ehEWqt86HdW0DWng= ; Message-ID: <20060529155020.90816.qmail@web17506.mail.tpe.yahoo.com> Received: from [203.67.106.234] by web17506.mail.tpe.yahoo.com via HTTP; Mon, 29 May 2006 23:50:20 CST Date: Mon, 29 May 2006 23:50:20 +0800 (CST) From: Jack Subject: How to patch the 2.6.15 kernel? To: kernprof@oss.sgi.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-26017412-1148917820=:83027" Content-Transfer-Encoding: 8bit X-archive-position: 344 X-ecartis-version: Ecartis v1.0.0 Sender: kernprof-bounce@oss.sgi.com Errors-to: kernprof-bounce@oss.sgi.com X-original-sender: purejack.tw@yahoo.com.tw Precedence: bulk X-list: kernprof --0-26017412-1148917820=:83027 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit Is there any instructions for building 2.6.15 kernel with kernprof patch? I've tried to build it using GCC 2.95.3 with gcc-patch and GCC 4.1.0 without patch(since the gcc-patch is not apply to 4.1.0) But the error message comes up make 2.6.15 kernel using GCC 2.95.3 with gcc-patch LD .tmp_vmlinux1 init/built-in.o(.text+0x14): In function `rest_init': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x44): In function `do_pre_smp_initcalls': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x65): In function `run_init_process': /usr/src/linux-2.6.15/init/main.c:636: undefined reference to `mcount' init/built-in.o(.text+0xa7): In function `init': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x1d4): In function `__check_printsym_format': /usr/src/linux-2.6.15/init/main.c:49: undefined reference to `mcount' init/built-in.o(.text+0x1fa):/usr/src/linux-2.6.15/init/do_mounts.c: more undefined references to `mcount' follow make: *** [.tmp_vmlinux1] Error 1 make 2.6.15 kernel with GCC 4.1.0 LD .tmp_vmlinux1 init/built-in.o(.text+0x4): In function `rest_init': init/main.c:393: undefined reference to `mcount' init/built-in.o(.text+0x29): In function `do_pre_smp_initcalls': init/main.c:624: undefined reference to `mcount' init/built-in.o(.text+0x3e): In function `run_init_process': init/main.c:636: undefined reference to `mcount' init/built-in.o(.text+0x6f): In function `init': init/main.c:660: undefined reference to `mcount' init/built-in.o(.text+0x18a): In function `try_name': init/do_mounts.c:56: undefined reference to `mcount' init/built-in.o(.text+0x30e):init/do_mounts.c:138: more undefined references to `mcount' follow make: *** [.tmp_vmlinux1] Error 1 Hope someone could help me. Thanks!! Jack ___________________________________________________ 最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打! http://messenger.yahoo.com.tw/ --0-26017412-1148917820=:83027 Content-Type: text/html; charset=big5 Content-Transfer-Encoding: 8bit
Is there any instructions for building 2.6.15 kernel with kernprof patch?
I've tried to build it using GCC 2.95.3 with gcc-patch and GCC 4.1.0 without patch(since the gcc-patch is not apply to 4.1.0)
But the error message comes up
 
make 2.6.15 kernel using GCC 2.95.3 with gcc-patch
 
  LD      .tmp_vmlinux1
init/built-in.o(.text+0x14): In function `rest_init':
/usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount'
init/built-in.o(.text+0x44): In function `do_pre_smp_initcalls':
/usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount'
init/built-in.o(.text+0x65): In function `run_init_process':
/usr/src/linux-2.6.15/init/main.c:636: undefined reference to `mcount'
init/built-in.o(.text+0xa7): In function `init':
/usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount'
init/built-in.o(.text+0x1d4): In function `__check_printsym_format':
/usr/src/linux-2.6.15/init/main.c:49: undefined reference to `mcount'
init/built-in.o(.text+0x1fa):/usr/src/linux-2.6.15/init/do_mounts.c: more undefined references to `mcount' follow
make: *** [.tmp_vmlinux1] Error 1
 
make 2.6.15 kernel with GCC 4.1.0
 
  LD      .tmp_vmlinux1
init/built-in.o(.text+0x4): In function `rest_init':
init/main.c:393: undefined reference to `mcount'
init/built-in.o(.text+0x29): In function `do_pre_smp_initcalls':
init/main.c:624: undefined reference to `mcount'
init/built-in.o(.text+0x3e): In function `run_init_process':
init/main.c:636: undefined reference to `mcount'
init/built-in.o(.text+0x6f): In function `init':
init/main.c:660: undefined reference to `mcount'
init/built-in.o(.text+0x18a): In function `try_name':
init/do_mounts.c:56: undefined reference to `mcount'
init/built-in.o(.text+0x30e):init/do_mounts.c:138: more undefined references to
`mcount' follow
make: *** [.tmp_vmlinux1] Error 1
 
Hope someone could help me. Thanks!!
 
Jack

___________________________________________________ 最新版 Yahoo!奇摩即時通訊 7.0,免費網路電話任你打! http://messenger.yahoo.com.tw/ --0-26017412-1148917820=:83027-- From hawkes@sgi.com Mon May 29 12:19:33 2006 Received: with ECARTIS (v1.0.0; list kernprof); Mon, 29 May 2006 12:19:39 -0700 (PDT) Received: from omx1.americas.sgi.com (omx1.americas.sgi.com [198.149.16.13]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id k4TJJWeZ024594 for ; Mon, 29 May 2006 12:19:33 -0700 Received: from omx2.sgi.com ([198.149.32.25]) by omx1.americas.sgi.com (8.12.10/8.12.9/linux-outbound_gateway-1.1) with ESMTP id k4TI90nx015137 for ; Mon, 29 May 2006 13:09:00 -0500 Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by omx2.sgi.com (8.12.11/8.12.9/linux-outbound_gateway-1.1) with ESMTP id k4TKSM4k020370 for ; Mon, 29 May 2006 13:28:22 -0700 Received: from wrlarun (sshgate.corp.sgi.com [198.149.36.12]) by cthulhu.engr.sgi.com (SGI-8.12.5/8.12.5) with SMTP id k4TI8v4128588404; Mon, 29 May 2006 11:08:58 -0700 (PDT) Message-ID: <001f01c6834a$a51b82e0$6f00a8c0@comcast.net> From: "John Hawkes" To: "Jack" , References: <20060529155020.90816.qmail@web17506.mail.tpe.yahoo.com> Subject: Re: How to patch the 2.6.15 kernel? Date: Mon, 29 May 2006 11:06:44 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001C_01C6830F.F86B7DA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-archive-position: 345 X-ecartis-version: Ecartis v1.0.0 Sender: kernprof-bounce@oss.sgi.com Errors-to: kernprof-bounce@oss.sgi.com X-original-sender: hawkes@sgi.com Precedence: bulk X-list: kernprof This is a multi-part message in MIME format. ------=_NextPart_000_001C_01C6830F.F86B7DA0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Did you enable CONFIG_MCOUNT and CONFIG_FRAME_POINTER? John Hawkes Is there any instructions for building 2.6.15 kernel with kernprof = patch? I've tried to build it using GCC 2.95.3 with gcc-patch and GCC 4.1.0 = without patch(since the gcc-patch is not apply to 4.1.0) But the error message comes up =20 make 2.6.15 kernel using GCC 2.95.3 with gcc-patch =20 LD .tmp_vmlinux1 init/built-in.o(.text+0x14): In function `rest_init': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x44): In function `do_pre_smp_initcalls': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x65): In function `run_init_process': /usr/src/linux-2.6.15/init/main.c:636: undefined reference to `mcount' init/built-in.o(.text+0xa7): In function `init': /usr/src/linux-2.6.15/init/main.c: undefined reference to `mcount' init/built-in.o(.text+0x1d4): In function `__check_printsym_format': /usr/src/linux-2.6.15/init/main.c:49: undefined reference to `mcount' init/built-in.o(.text+0x1fa):/usr/src/linux-2.6.15/init/do_mounts.c: = more undefined references to `mcount' follow make: *** [.tmp_vmlinux1] Error 1 =20 make 2.6.15 kernel with GCC 4.1.0 =20 LD .tmp_vmlinux1 init/built-in.o(.text+0x4): In function `rest_init': init/main.c:393: undefined reference to `mcount' init/built-in.o(.text+0x29): In function `do_pre_smp_initcalls': init/main.c:624: undefined reference to `mcount' init/built-in.o(.text+0x3e): In function `run_init_process': init/main.c:636: undefined reference to `mcount' init/built-in.o(.text+0x6f): In function `init': init/main.c:660: undefined reference to `mcount' init/built-in.o(.text+0x18a): In function `try_name': init/do_mounts.c:56: undefined reference to `mcount' init/built-in.o(.text+0x30e):init/do_mounts.c:138: more undefined = references to `mcount' follow make: *** [.tmp_vmlinux1] Error 1 =20 Hope someone could help me. Thanks!! =20 Jack ___________________________________________________ =B3=CC=B7s=AA=A9 = Yahoo!=A9_=BC=AF=A7Y=AE=C9=B3q=B0T = 7.0=A1A=A7K=B6O=BA=F4=B8=F4=B9q=B8=DC=A5=F4=A7A=A5=B4=A1I = http://messenger.yahoo.com.tw/ ------=_NextPart_000_001C_01C6830F.F86B7DA0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable

Did you enable CONFIG_MCOUNT and=20 CONFIG_FRAME_POINTER?
 
John Hawkes
 
Is there any instructions for building 2.6.15 = kernel with=20 kernprof patch?
I've tried to build it using GCC 2.95.3 with = gcc-patch=20 and GCC 4.1.0 without patch(since the gcc-patch is not apply to=20 4.1.0)
But the error message comes up
 
make 2.6.15 kernel using GCC 2.95.3 with=20 gcc-patch
 
  LD     =20 .tmp_vmlinux1
init/built-in.o(.text+0x14): In function=20 `rest_init':
/usr/src/linux-2.6.15/init/main.c: undefined reference = to=20 `mcount'
init/built-in.o(.text+0x44): In function=20 `do_pre_smp_initcalls':
/usr/src/linux-2.6.15/init/main.c: = undefined=20 reference to `mcount'
init/built-in.o(.text+0x65): In function=20 `run_init_process':
/usr/src/linux-2.6.15/init/main.c:636: = undefined=20 reference to `mcount'
init/built-in.o(.text+0xa7): In function=20 `init':
/usr/src/linux-2.6.15/init/main.c: undefined reference to=20 `mcount'
init/built-in.o(.text+0x1d4): In function=20 `__check_printsym_format':
/usr/src/linux-2.6.15/init/main.c:49: = undefined=20 reference to=20 = `mcount'
init/built-in.o(.text+0x1fa):/usr/src/linux-2.6.15/init/do_mo= unts.c:=20 more undefined references to `mcount' follow
make: *** = [.tmp_vmlinux1]=20 Error 1
 
make 2.6.15 kernel with GCC 4.1.0
 
  LD     =20 .tmp_vmlinux1
init/built-in.o(.text+0x4): In function=20 `rest_init':
init/main.c:393: undefined reference to=20 `mcount'
init/built-in.o(.text+0x29): In function=20 `do_pre_smp_initcalls':
init/main.c:624: undefined reference to=20 `mcount'
init/built-in.o(.text+0x3e): In function=20 `run_init_process':
init/main.c:636: undefined reference to=20 `mcount'
init/built-in.o(.text+0x6f): In function=20 `init':
init/main.c:660: undefined reference to=20 `mcount'
init/built-in.o(.text+0x18a): In function=20 `try_name':
init/do_mounts.c:56: undefined reference to=20 `mcount'
init/built-in.o(.text+0x30e):init/do_mounts.c:138: more = undefined=20 references to
`mcount' follow
make: *** [.tmp_vmlinux1] Error=20 1
 
Hope someone could help me. Thanks!!
 
Jack

___________________________________________________ = =B3=CC=B7s=AA=A9=20 Yahoo!=A9_=BC=AF=A7Y=AE=C9=B3q=B0T = 7.0=A1A=A7K=B6O=BA=F4=B8=F4=B9q=B8=DC=A5=F4=A7A=A5=B4=A1I=20 http://messenger.yahoo.com.tw/

------=_NextPart_000_001C_01C6830F.F86B7DA0--