LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-27-2004, 07:54 PM   #1
shogun1234
Member
 
Registered: May 2004
Posts: 226

Rep: Reputation: 15
kprobes


Hi, mavens:
I'm a commoner who're interested in learning linux kernel. Lately I followed the article on ibm (... l-kprobes.html) to learn how to use kprobe to debug kernel, but I encountered a probelm after 'patch'ing files to kernel source. I downloaded files first from ibm Kernel Probes project (... kprobes-dprobes-2.6.8-rc1-full.patch.bz2).
And then patch it to my kernel source version 2.6.8, previously downloaded from kernel.org.
Then I tried to compile kernel, but it issued error as followed:
[BTW, when I patch kernel source, there's messenges appearing like "can't patch to the kernel .... in put line xxx", seemly looks like it(kernel and patch version) doesn't match with each other]
==========error printed on console==========BEG
arch/i386/kernel/traps.c:29: linux/kprobes.h:No such files or directory
arch/i386/kernel/traps.c:46: asm/kwatch.h:No such files or directory
arch/i386/kernel/traps.c:29: In function "do_general_protection"
...
==========error printed on console==========END
seemly I miss lots of files after typing command "make". Where did I do it wrong? Is it because the patch version incorrect? For I found out that the kprobes patch file I download from ibm website, seemly it's for kernel version 2.6.8-rc1 [from the file name I suppose]; however, I can't find any rc1 version on kernel.org. What should I do in order to enable this option? Or are there any better suggestion?
I appreciate it, sincerely.
Jason
p.s: sorry, the messenge tell me that I can't post the url, therefore, I only left page and file name as keywords.
 
Old 10-28-2004, 12:03 AM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
must be that patch is designated rc1
that is it's for 2.6.8-rc1
which is the first release cantidate (cvs snapshot) from the 2.6.8 line
this would be quite a bit different from the final release 2.6.8
trouble is i have no idea where you can get these releases
(it was most likely a patch to 2.6.7)
i see on the board
Linux 2.6.8-rc1
From: Linus Torvalds
Date: Sun Jul 11 2004 - 13:34:27 EST
hope you can find that
 
Old 11-08-2004, 04:20 AM   #3
shogun1234
Member
 
Registered: May 2004
Posts: 226

Original Poster
Rep: Reputation: 15
after several check, i got a reply from ibm, now that i can use kernel version 2.6.9 to use kprobe.
thanks your help, sincerely. [p.s.,:i tried to get from kernel.org for version 2.6.8rc1 with patch from ibm kprobe, but it still failed! Therefore, I replace 2.6.8 with version 2.6.9, and now it works.]

Quote:
Originally posted by foo_bar_foo
must be that patch is designated rc1
that is it's for 2.6.8-rc1
which is the first release cantidate (cvs snapshot) from the 2.6.8 line
this would be quite a bit different from the final release 2.6.8
trouble is i have no idea where you can get these releases
(it was most likely a patch to 2.6.7)
i see on the board
Linux 2.6.8-rc1
From: Linus Torvalds
Date: Sun Jul 11 2004 - 13:34:27 EST
hope you can find that
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kprobes prgramming problem shogun1234 Linux - Software 4 11-09-2004 04:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration